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

Unified Diff: runtime/vm/tags.cc

Issue 1389353004: Remove isolate argument from handle allocation: Part II (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: c Created 5 years, 2 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/symbols.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/tags.cc
diff --git a/runtime/vm/tags.cc b/runtime/vm/tags.cc
index 4349844158ebd48805d515954a224a2f2760c8d1..0a82be3b7b8e134e482ffedc56a1972f45fc74d0 100644
--- a/runtime/vm/tags.cc
+++ b/runtime/vm/tags.cc
@@ -145,11 +145,11 @@ void VMTagCounters::PrintToJSONObject(JSONObject* obj) {
const char* UserTags::TagName(uword tag_id) {
ASSERT(tag_id >= kUserTagIdOffset);
ASSERT(tag_id < kUserTagIdOffset + kMaxUserTags);
- Isolate* isolate = Isolate::Current();
+ Zone* zone = Thread::Current()->zone();
const UserTag& tag =
- UserTag::Handle(isolate, UserTag::FindTagById(tag_id));
+ UserTag::Handle(zone, UserTag::FindTagById(tag_id));
ASSERT(!tag.IsNull());
- const String& label = String::Handle(isolate, tag.label());
+ const String& label = String::Handle(zone, tag.label());
return label.ToCString();
}
« no previous file with comments | « runtime/vm/symbols.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698