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

Unified Diff: test/cctest/cctest.h

Issue 142693005: A64: Synchronize with r16918. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months 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 | « src/x64/lithium-x64.h ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/cctest.h
diff --git a/test/cctest/cctest.h b/test/cctest/cctest.h
index 122d36d5b8383fb30abbcb4fbb359f22ebfc21fb..bc800399abb656997748c8d92a66a8f2f9ac5be6 100644
--- a/test/cctest/cctest.h
+++ b/test/cctest/cctest.h
@@ -93,6 +93,7 @@ class CcTest {
bool enabled() { return enabled_; }
static v8::Isolate* isolate() {
+ CHECK(isolate_ != NULL);
isolate_used_ = true;
return isolate_;
}
@@ -105,6 +106,10 @@ class CcTest {
return i_isolate()->heap();
}
+ static v8::Local<v8::Object> global() {
+ return isolate()->GetCurrentContext()->Global();
+ }
+
// TODO(dcarney): Remove.
// This must be called first in a test.
static void InitializeVM() {
@@ -115,6 +120,9 @@ class CcTest {
v8::Context::New(CcTest::isolate())->Enter();
}
+ // Only for UNINITIALIZED_TESTs
+ static void DisableAutomaticDispose();
+
// Helper function to configure a context.
// Must be in a HandleScope.
static v8::Local<v8::Context> NewContext(
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698