Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index ae3ba6db3ea581bd2cb1cec74fa37d60532904ac..5558e6738359a70e2ef9b716b09b65b6100f8d9c 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2147,6 +2147,10 @@ class JSReceiver: public HeapObject { |
// Forward declaration for JSObject::GetOrCreateHiddenPropertiesHashTable. |
class ObjectHashTable; |
+// Forward declaration for JSObject::Copy. |
+class AllocationSite; |
+ |
+ |
// The JSObject describes real heap allocated JavaScript objects with |
// properties. |
// Note that the map of JSObject changes during execution to enable inline |
@@ -2655,6 +2659,8 @@ class JSObject: public JSReceiver { |
kObjectIsShallowArray = 1 |
}; |
+ static Handle<JSObject> Copy(Handle<JSObject> object, |
+ Handle<AllocationSite> site); |
static Handle<JSObject> Copy(Handle<JSObject> object); |
static Handle<JSObject> DeepCopy(Handle<JSObject> object, |
AllocationSiteUsageContext* site_context, |