Skip to content

Remove this.__nextSuper#12062

Merged
rwjblue merged 1 commit intomasterfrom
remove-next-super
Aug 14, 2015
Merged

Remove this.__nextSuper#12062
rwjblue merged 1 commit intomasterfrom
remove-next-super

Conversation

@krisselden
Copy link
Copy Markdown
Contributor

This just ensures that the superFunction is wrapped with a terminal _super instead of relying on this.__nextSuper = null while invoked to prevent recursion. Allows wrapped functions not to have to go through 2 argument applies, makes debugging a lot easier and performs better.

This just ensures that the superFunction is wrapped with a terminal _super instead of relying on this.__nextSuper = null while invoked to prevent recursion. Allows wrapped functions not to have to go through 2 argument applies, makes debugging a lot easier and performs better.
@rwjblue
Copy link
Copy Markdown
Member

rwjblue commented Aug 12, 2015

Seems good to me.

@stefanpenner / @mixonic - Y'all would probably be better reviewers here...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

__nextSuper is gone, but __hasSuper will be present and enumerable when there is a _super call in a function correct?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The paranoid me wants to suggest leaving __nextSuper and the enumerable: false and using that instead of a new property. I know you probably want to drop the defineProperty, but it does not seem to be a change core to what you've done in this PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@rwjblue reviews my code review and find it's lack of attention disturbing.

He points out __hasSuper is on the function. Inception level 3 achieved! Love it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That code was just moved up from mixin

@mixonic
Copy link
Copy Markdown
Member

mixonic commented Aug 12, 2015

Very cool.

@stefanpenner
Copy link
Copy Markdown
Member

Nice, this is more similar to what I did in core-object. The only thing is the super call with the apply arguments likely needs to build the array as it did before. Do to a bug in v8, although it should be fixed for desktop versions, I believe it is still common on most mobile variants

@stefanpenner
Copy link
Copy Markdown
Member

we should get this in, @krisselden feels confident this doesn't regress the deopt.

If it does we can fix, this ultimately the right direction.

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.

4 participants