DescriptionDelivery logic for Object.observe
This CL has two parts: the first is the logic itself, whereby each observer callback is assigned
a "priority" number the first time it's passed as an observer to Object.observe(), and that
priority is used to determine the order of delivery.
The second part invokes the above logic as part of the API, when the JS stack winds down to
zero.
Added several tests via the API, as the delivery logic isn't testable from a JS test
(it runs after such a test would exit).
Committed: https://code.google.com/p/v8/source/detail?r=12902
Patch Set 1 #Patch Set 2 : Merged with per-isolate #Patch Set 3 : Added end-of-microtask delivery and test #Patch Set 4 : Remove unneeded testing hook #Patch Set 5 : Merged #Patch Set 6 : More tests #Patch Set 7 : Rebased against newest per-isolate patch #
Total comments: 14
Patch Set 8 : Move clearing of has_active_observers to the end of DeliverChangeRecords #Patch Set 9 : Responded to rossberg comments #Patch Set 10 : Renamed and added comment #
Messages
Total messages: 9 (0 generated)
|