Skip to content

Add literal property to the byte code list. #2397

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

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

zherczeg
Copy link
Member

Initalizing a property with a constant is frequent in object initializers.

Initalizing a property with a constant is frequent in object initializers.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg [email protected]
@zherczeg zherczeg force-pushed the set_lteral_property branch from 5a818a8 to bc6ef2f Compare June 18, 2018 06:35
@rerobika
Copy link
Member

LGTM (informally)

Copy link
Contributor

@LaszloLango LaszloLango 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

@akosthekiss akosthekiss left a comment

Choose a reason for hiding this comment

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

I see the addition in the byte code list and the change in the JS parser. But I don't see changes in the VM. What am I missing?

@zherczeg
Copy link
Member Author

This is a new variant of an existing CBC_SET_PROPERTY opcode and uses the same VM_OC_SET_PROPERTY vm opcode.

Copy link
Member

@akosthekiss akosthekiss left a comment

Choose a reason for hiding this comment

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

Nice. Thanks for the explanation. LGTM.

@zherczeg zherczeg merged commit acdbbf2 into jerryscript-project:master Jun 20, 2018
@zherczeg zherczeg deleted the set_lteral_property branch June 20, 2018 07:07
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