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

Unified Diff: runtime/vm/allocation.cc

Issue 1220193009: Migrate most uses of Isolate::current_zone to Thread::zone. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | runtime/vm/assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation.cc
diff --git a/runtime/vm/allocation.cc b/runtime/vm/allocation.cc
index b8f9cb12ae3fdbc46d2952e666e29683ccc93a65..b6ca73e10ff4c731729644ebfa673d682c6eafd8 100644
--- a/runtime/vm/allocation.cc
+++ b/runtime/vm/allocation.cc
@@ -20,12 +20,12 @@ static void* Allocate(uword size, Zone* zone) {
void* ZoneAllocated::operator new(uword size) {
- return Allocate(size, Isolate::Current()->current_zone());
+ return Allocate(size, Thread::Current()->zone());
}
void* ZoneAllocated::operator new(uword size, Zone* zone) {
- ASSERT(zone == Isolate::Current()->current_zone());
+ ASSERT(zone == Thread::Current()->zone());
return Allocate(size, zone);
}
« no previous file with comments | « no previous file | runtime/vm/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698