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

Unified Diff: runtime/vm/growable_array.h

Issue 1016973002: Move CHA state keeping from Isolate to Thread. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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_type_propagator.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/growable_array.h
===================================================================
--- runtime/vm/growable_array.h (revision 44544)
+++ runtime/vm/growable_array.h (working copy)
@@ -146,9 +146,9 @@
template<typename T>
class GrowableArray : public BaseGrowableArray<T, ValueObject> {
public:
- GrowableArray(Isolate* isolate, intptr_t initial_capacity)
+ GrowableArray(Zone* zone, intptr_t initial_capacity)
: BaseGrowableArray<T, ValueObject>(
- initial_capacity, ASSERT_NOTNULL(isolate->current_zone())) {}
+ initial_capacity, ASSERT_NOTNULL(zone)) {}
explicit GrowableArray(intptr_t initial_capacity)
: BaseGrowableArray<T, ValueObject>(
initial_capacity,
@@ -162,9 +162,9 @@
template<typename T>
class ZoneGrowableArray : public BaseGrowableArray<T, ZoneAllocated> {
public:
- ZoneGrowableArray(Isolate* isolate, intptr_t initial_capacity)
+ ZoneGrowableArray(Zone* zone, intptr_t initial_capacity)
: BaseGrowableArray<T, ZoneAllocated>(
- initial_capacity, ASSERT_NOTNULL(isolate->current_zone())) {}
+ initial_capacity, ASSERT_NOTNULL(zone)) {}
explicit ZoneGrowableArray(intptr_t initial_capacity)
: BaseGrowableArray<T, ZoneAllocated>(
initial_capacity,
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698