https://codereview.chromium.org/1241883002/diff/1/src/objects.cc
File src/objects.cc (right):

https://codereview.chromium.org/1241883002/diff/1/src/objects.cc#newcode5536
src/objects.cc:5536: length == 0 ?
isolate->factory()->empty_slow_element_dictionary()
On 2015/07/15 14:58:06, Igor Sheludko wrote:
Probably it would be better if GetNormalizedElementDictionary() could
return a
proper empty dictionary when length is zero.

It, unfortunately, cannot. The empty dictionary isn't exactly empty, and
we're only guaranteed that nobody will add elements to it if the
receiver holding it is prevented from being extended. Otherwise we'll
end up with shared elements between objects that reuse this "empty"
dictionary. We've had that before ...

https://codereview.chromium.org/1241883002/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to