Chromium Code Reviews| Index: src/api.cc |
| diff --git a/src/api.cc b/src/api.cc |
| index be7d73f50906edcf0343d326e592520b71195285..f80e202f2ffa8810313a252b36d3c6dde9a6dce2 100644 |
| --- a/src/api.cc |
| +++ b/src/api.cc |
| @@ -656,6 +656,13 @@ bool V8::IsGlobalIndependent(i::Object** obj) { |
| } |
| +bool V8::IsGlobalIndependent(i::Isolate* isolate, i::Object** obj) { |
|
Michael Starzinger
2012/11/05 11:03:21
Add "ASSERT(isolate == i::Isolate::Current())" at
haraken
2012/11/05 11:57:45
Done.
|
| + 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"); |