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

Unified Diff: runtime/vm/growable_array.h

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/flow_graph_range_analysis.cc ('k') | runtime/vm/hash_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/growable_array.h
diff --git a/runtime/vm/growable_array.h b/runtime/vm/growable_array.h
index ba6f80756bea9ba1b45b2423d0bfaf08cfaa413d..045c3e52cf2dd35bd1a0129c2284589ac17c1e39 100644
--- a/runtime/vm/growable_array.h
+++ b/runtime/vm/growable_array.h
@@ -161,10 +161,10 @@ class GrowableArray : public BaseGrowableArray<T, ValueObject> {
explicit GrowableArray(intptr_t initial_capacity)
: BaseGrowableArray<T, ValueObject>(
initial_capacity,
- ASSERT_NOTNULL(Isolate::Current()->current_zone())) {}
+ ASSERT_NOTNULL(Thread::Current()->zone())) {}
GrowableArray()
: BaseGrowableArray<T, ValueObject>(
- ASSERT_NOTNULL(Isolate::Current()->current_zone())) {}
+ ASSERT_NOTNULL(Thread::Current()->zone())) {}
};
@@ -177,10 +177,10 @@ class ZoneGrowableArray : public BaseGrowableArray<T, ZoneAllocated> {
explicit ZoneGrowableArray(intptr_t initial_capacity)
: BaseGrowableArray<T, ZoneAllocated>(
initial_capacity,
- ASSERT_NOTNULL(Isolate::Current()->current_zone())) {}
+ ASSERT_NOTNULL(Thread::Current()->zone())) {}
ZoneGrowableArray()
: BaseGrowableArray<T, ZoneAllocated>(
- ASSERT_NOTNULL(Isolate::Current()->current_zone())) {}
+ ASSERT_NOTNULL(Thread::Current()->zone())) {}
};
« no previous file with comments | « runtime/vm/flow_graph_range_analysis.cc ('k') | runtime/vm/hash_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698