Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1763)

Unified Diff: src/objects.h

Issue 15504002: Array.observe emit splices for array length change and update index >= length (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: missed header files (JSArray) Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/contexts.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 34d05330f32943dbf9dbb6dda93dd30cd7c93e59..a903f7482886803163c818e5be488a42fa0598ff 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2399,6 +2399,17 @@ class JSObject: public JSReceiver {
Handle<Name> name,
Handle<Object> old_value);
+ // Enqueue "splice" change record for Object.observe. May cause GC.
+ static void EnqueueSpliceRecord(Handle<JSArray> object,
adamk 2013/05/24 00:15:30 Is there any need to expose these as part of the J
rafaelw 2013/05/24 19:11:43 Done.
+ uint32_t index,
+ Handle<JSArray> deleted,
+ uint32_t delete_count,
+ uint32_t add_count);
+
+ // Object.getNotifier(this).performChange('splice'). May cause GC.
+ static void BeginPerformSplice(Handle<JSArray> object);
+ static void EndPerformSplice(Handle<JSArray> object);
+
// Deliver change records to observers. May cause GC.
static void DeliverChangeRecords(Isolate* isolate);
« no previous file with comments | « src/contexts.h ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698