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

Unified Diff: runtime/vm/il_printer.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 | « runtime/vm/hash_map.h ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.cc
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
index 0d7914989d70d1d02cecba67442a02efd41b9142..6a5ce9073112af1c3382df29d7b16352b888d2af 100644
--- a/runtime/vm/il_printer.cc
+++ b/runtime/vm/il_printer.cc
@@ -180,7 +180,7 @@ const char* CompileType::ToCString() const {
char buffer[1024];
BufferFormatter f(buffer, sizeof(buffer));
PrintTo(&f);
- return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
+ return Thread::Current()->zone()->MakeCopyOfString(buffer);
}
@@ -247,7 +247,7 @@ const char* Instruction::ToCString() const {
char buffer[1024];
BufferFormatter f(buffer, sizeof(buffer));
PrintTo(&f);
- return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
+ return Thread::Current()->zone()->MakeCopyOfString(buffer);
}
@@ -321,7 +321,7 @@ void ConstantInstr::PrintOperandsTo(BufferFormatter* f) const {
f->Print("#%s", cstr);
} else {
const intptr_t pos = new_line - cstr;
- char* buffer = Isolate::Current()->current_zone()->Alloc<char>(pos + 1);
+ char* buffer = Thread::Current()->zone()->Alloc<char>(pos + 1);
strncpy(buffer, cstr, pos);
buffer[pos] = '\0';
f->Print("#%s\\n...", buffer);
@@ -351,7 +351,7 @@ const char* Range::ToCString(const Range* range) {
char buffer[256];
BufferFormatter f(buffer, sizeof(buffer));
range->PrintTo(&f);
- return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
+ return Thread::Current()->zone()->MakeCopyOfString(buffer);
}
@@ -382,7 +382,7 @@ const char* RangeBoundary::ToCString() const {
char buffer[256];
BufferFormatter f(buffer, sizeof(buffer));
PrintTo(&f);
- return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
+ return Thread::Current()->zone()->MakeCopyOfString(buffer);
}
@@ -1210,7 +1210,7 @@ const char* Environment::ToCString() const {
char buffer[1024];
BufferFormatter bf(buffer, 1024);
PrintTo(&bf);
- return Isolate::Current()->current_zone()->MakeCopyOfString(buffer);
+ return Thread::Current()->zone()->MakeCopyOfString(buffer);
}
} // namespace dart
« no previous file with comments | « runtime/vm/hash_map.h ('k') | runtime/vm/json_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698