Skip to content

Conversation

@rerobika
Copy link
Member

@rerobika rerobika commented Mar 3, 2020

Changes:

  • Use the pre-scanner to provide information for the parser about the existence of the class constructor
  • The allocation of the super declarative environment is no longer needed
  • The VM frame context holds the information about the this binding status
  • Reduce the number of class related VM/CBC instructions

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]

@rerobika rerobika added the ES2015 Related to ES2015 features label Mar 3, 2020
@rerobika rerobika force-pushed the rework_class branch 2 times, most recently from 2f2fac0 to 3a3cc01 Compare March 5, 2020 10:40
@rerobika rerobika marked this pull request as ready for review March 5, 2020 10:46
@rerobika rerobika force-pushed the rework_class branch 2 times, most recently from 3a64615 to c8a34a7 Compare March 5, 2020 16:45
@rerobika rerobika added the enhancement An improvement label Mar 11, 2020
@rerobika rerobika force-pushed the rework_class branch 4 times, most recently from 98d60de to 9e8b52b Compare March 12, 2020 15:25
Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

Good patch!

Changes:
 - Use the pre-scanner to provide information for the parser about the existence of the class constructor
 - The allocation of the super declarative environment is no longer needed
 - The VM frame context holds the information about the this binding status
 - Reduce the number of class related VM/CBC instructions
 - Improve ecma_op_function_{construct, call} to property set new.target

JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik [email protected]
@rerobika
Copy link
Member Author

@zherczeg @ossy-szeged Thanks for the reviews, I've updated the PR according to them.

Copy link
Member

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@dbatyai dbatyai left a comment

Choose a reason for hiding this comment

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

LGTM

@dbatyai dbatyai merged commit bfd2639 into jerryscript-project:master Mar 16, 2020
@rerobika rerobika deleted the rework_class branch June 16, 2020 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An improvement ES2015 Related to ES2015 features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants