Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index d79f4eaf9776de65242fd6a71c9048262db222d0..833179981d85f208118a53b0dbebccd914869a27 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2308,6 +2308,10 @@ class JSObject: public JSReceiver { |
static void MigrateToMap(Handle<JSObject> object, Handle<Map> new_map, |
int expected_additional_properties = 0); |
+ // Forces a prototype without any of the checks that the regular SetPrototype |
+ // would do. |
+ static void ForceSetPrototype(Handle<JSObject> object, Handle<Object> proto); |
+ |
// Convert the object to use the canonical dictionary |
// representation. If the object is expected to have additional properties |
// added this number can be indicated to have the backing store allocated to |