DescriptionMake the runtime entry for setting/changing accessors "atomic".
Previously, there were 1 or 2 calls to the runtime when accessors were changed
or set. This doesn't really work well with property attributes, leading to some
hacks and complicates things even further when trying to share maps in presence
of accessors. Therefore, the runtime entry now takes the full triple (getter,
setter, attributes), where the getter and/or the setter can be null in case they
shouldn't be changed.
For now, we do basically the same on the native side as we did before on the
JavaScript side, but this will change in future CLs, the current CL is already
large enough.
Note that object literals with a getter and a setter for the same property still
do 2 calls, but this is a little bit more tricky to fix and will be handled in a
separate CL.
Committed: https://code.google.com/p/v8/source/detail?r=10956
Patch Set 1 #Patch Set 2 : Whitespace and comment fixes. #Patch Set 3 : Rebased #
Total comments: 8
Patch Set 4 : Incorporated review comments. #
Messages
Total messages: 3 (0 generated)
|