Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try our best to prevent deopt #124

Merged
merged 1 commit into from
Dec 18, 2014

Conversation

stefanpenner
Copy link
Collaborator

[fixes #123]

return method.call(target);
} else {
var args = new Array(length - 2);
for (var i =0, l = length - 2; i < l; i++) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess slicing here would deopt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slicing on arguments does... :(
v8 is starting to fix this, but mobile devices don't update fast enough. Hopefully someday we can remove these hacks

@igorT
Copy link
Collaborator

igorT commented Dec 18, 2014

makes sense to me

stefanpenner added a commit that referenced this pull request Dec 18, 2014
try our best to prevent deopt
@stefanpenner stefanpenner merged commit 1dc9027 into BackburnerJS:master Dec 18, 2014
@stefanpenner stefanpenner deleted the fix-deopt branch December 18, 2014 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

join needs to be cleaned up
2 participants