DescriptionChange LookupForWrite to always do a full lookup and check the result.
If we find a property in the prototype-chain that we can overwrite, and
we have a transition, keep the holder in the lookup-result as the actual
holder. We will need it for the consistency-check in GenerateStoreField.
By directly checking the entire chain we avoid having to lazily bail out
to a copy of the miss stub while generating the Field Store IC.
Currently this CL disallows a normal non-receiver holder, given that
that would require a positive lookup + details verification to ensure
the property did not become read-only. This fixes the regressions in the
attached tests.
Committed: https://code.google.com/p/v8/source/detail?r=14061
Patch Set 1 #Patch Set 2 : Check callbacks in the prototype chain before looking for transitions. Fix !IsReadOnly #
Total comments: 10
Patch Set 3 : Addressed comments #
Total comments: 4
Patch Set 4 : Negative lookup test on last prototype if in slow mode #
Total comments: 2
Patch Set 5 : Addressed comments #
Messages
Total messages: 6 (0 generated)
|