Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: src/api.cc

Issue 11368053: Implement IsIndependent(Isolate*) (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« no previous file with comments | « include/v8.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698