| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index be7d73f50906edcf0343d326e592520b71195285..f75fe65a57a4600170343eb2bb397a2c9ada31a2 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -656,6 +656,14 @@ bool V8::IsGlobalIndependent(i::Object** obj) {
|
| }
|
|
|
|
|
| +bool V8::IsGlobalIndependent(i::Isolate* isolate, i::Object** obj) {
|
| + ASSERT(isolate == i::Isolate::Current());
|
| + LOG_API(isolate, "IsGlobalIndependent");
|
| + if (!isolate->IsInitialized()) return false;
|
| + return i::GlobalHandles::IsIndependent(obj);
|
| +}
|
| +
|
| +
|
| bool V8::IsGlobalNearDeath(i::Object** obj) {
|
| i::Isolate* isolate = i::Isolate::Current();
|
| LOG_API(isolate, "IsGlobalNearDeath");
|
|
|