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

Unified Diff: src/isolate.h

Issue 1052253003: Revert of Revert of Protect the emptiness of Array prototype elements with a PropertyCell. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/hydrogen.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
diff --git a/src/isolate.h b/src/isolate.h
index a434edd440c68c4b9d48d93c07a2a16aa9ec344d..cbe30dc14e5ce14490f68eaf635451f1204d835a 100644
--- a/src/isolate.h
+++ b/src/isolate.h
@@ -1015,6 +1015,21 @@
Map* get_initial_js_array_map(ElementsKind kind);
bool IsFastArrayConstructorPrototypeChainIntact();
+
+ // On intent to set an element in object, make sure that appropriate
+ // notifications occur if the set is on the elements of the array or
+ // object prototype. Also ensure that changes to prototype chain between
+ // Array and Object fire notifications.
+ void UpdateArrayProtectorOnSetElement(Handle<JSObject> object);
+ void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) {
+ UpdateArrayProtectorOnSetElement(object);
+ }
+ void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) {
+ UpdateArrayProtectorOnSetElement(object);
+ }
+
+ // Returns true if array is the initial array prototype in any native context.
+ bool IsAnyInitialArrayPrototype(Handle<JSArray> array);
CallInterfaceDescriptorData* call_descriptor_data(int index);
« no previous file with comments | « src/hydrogen.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698