DescriptionMinor Object.observe optimizations
This patch includes the follow two minor optimizations:
1) When Object.unobserve-ing, instead of deleting from changeObservers, set the index position to null, and null-check when iterating elsewhere
2) Isolate creation of null-proto objects inside a utility function
These former (deleting) was clearly showing up in d8 --prof traces and the later was preventing optimization of containing functions because of non-standard literal. Combined, on MDV construction/teardown benchmark, saves about 10%.
Note that this patch also cleans up retrieving objectInfo inside a utility function.
R=rossberg@chromium.org, rossberg
BUG=
Committed: https://code.google.com/p/v8/source/detail?r=18501
Patch Set 1 #
Total comments: 5
Patch Set 2 : cr changes #Messages
Total messages: 6 (0 generated)
|