| Index: src/handles.cc
|
| diff --git a/src/handles.cc b/src/handles.cc
|
| index 033fdab3dc6652534e76bd9d4fae19eebeb08289..b3704df698970eb140f939f5e2a759112ac26833 100644
|
| --- a/src/handles.cc
|
| +++ b/src/handles.cc
|
| @@ -294,6 +294,21 @@ Handle<String> SubString(Handle<String> str,
|
| }
|
|
|
|
|
| +Handle<JSObject> Copy(Handle<JSObject> obj) {
|
| + Isolate* isolate = obj->GetIsolate();
|
| + CALL_HEAP_FUNCTION(isolate,
|
| + isolate->heap()->CopyJSObject(*obj), JSObject);
|
| +}
|
| +
|
| +
|
| +Handle<JSObject> DeepCopy(Handle<JSObject> obj) {
|
| + Isolate* isolate = obj->GetIsolate();
|
| + CALL_HEAP_FUNCTION(isolate,
|
| + obj->DeepCopy(isolate),
|
| + JSObject);
|
| +}
|
| +
|
| +
|
| // Wrappers for scripts are kept alive and cached in weak global
|
| // handles referred from foreign objects held by the scripts as long as
|
| // they are used. When they are not used anymore, the garbage
|
|
|