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

Unified Diff: runtime/vm/object.h

Issue 1302623002: Only test optimizing compilation in helper thread compilation test. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add extra precondition check. Created 5 years, 4 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 | « runtime/vm/compiler_test.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 6a993101f83e86fcad90d60d473d21e68af83111..0f8b23e90b38554acab7d79a581a32e4cd9b3130 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -338,7 +338,7 @@ class Object {
}
static Object& Handle() {
- return Handle(Isolate::Current(), null_);
+ return Handle(Thread::Current()->zone(), null_);
}
static Object& Handle(Zone* zone) {
@@ -350,7 +350,7 @@ class Object {
}
static Object& Handle(RawObject* raw_ptr) {
- return Handle(Isolate::Current(), raw_ptr);
+ return Handle(Thread::Current()->zone(), raw_ptr);
}
static Object& ZoneHandle(Zone* zone, RawObject* raw_ptr) {
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698