Skip to content

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 zherczeg.u-szeged@partner.samsung.com
@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