Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index 3fab8de82fe3a50b7b089810a734b6f4e7369bf0..64a687c2f29f65dacf22c4412edbad3ec43cf6a5 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -5781,6 +5781,27 @@ void V8::AddObjectGroup(Isolate* exported_isolate, |
| } |
| +void V8::SetObjectGroupId(Isolate* exported_isolate, |
| + const Persistent<Value>& object, |
| + void* id) { |
| + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(exported_isolate); |
| + ASSERT(isolate == i::Isolate::Current()); |
| + if (IsDeadCheck(isolate, "v8::V8::SetObjectGroupId()")) return; |
|
Sven Panne
2013/04/10 08:45:22
Remove the ASSERT and the IsDeadCheck, these are o
marja
2013/04/10 09:31:07
Done.
|
| + isolate->global_handles()->SetObjectGroupId( |
| + reinterpret_cast<i::Object**>(*object), id); |
| +} |
| + |
| + |
| +void V8::SetRetainedObjectInfo(Isolate* exported_isolate, |
| + void* id, |
| + RetainedObjectInfo* info = NULL) { |
| + i::Isolate* isolate = reinterpret_cast<i::Isolate*>(exported_isolate); |
| + ASSERT(isolate == i::Isolate::Current()); |
| + if (IsDeadCheck(isolate, "v8::V8::SetRetainedObjectInfo()")) return; |
|
Sven Panne
2013/04/10 08:45:22
Remove ASSERT/IsDeadCheck here, too.
marja
2013/04/10 09:31:07
Done.
|
| + isolate->global_handles()->SetRetainedObjectInfo(id, info); |
| +} |
| + |
| + |
| void V8::AddImplicitReferences(Persistent<Object> parent, |
| Persistent<Value>* children, |
| size_t length) { |