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

Unified Diff: runtime/vm/flow_graph.h

Issue 850183005: Introduce simple Thread class to support gradual refactoring of interfaces. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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/bit_vector.h ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph.h
===================================================================
--- runtime/vm/flow_graph.h (revision 43047)
+++ runtime/vm/flow_graph.h (working copy)
@@ -10,6 +10,7 @@
#include "vm/hash_map.h"
#include "vm/intermediate_language.h"
#include "vm/parser.h"
+#include "vm/thread.h"
namespace dart {
@@ -149,7 +150,9 @@
return current_ssa_temp_index();
}
- Isolate* isolate() const { return isolate_; }
+ Thread* thread() const { return thread_; }
+ Zone* zone() const { return thread()->zone(); }
+ Isolate* isolate() const { return thread()->isolate(); }
intptr_t max_block_id() const { return max_block_id_; }
void set_max_block_id(intptr_t id) { max_block_id_ = id; }
@@ -325,7 +328,7 @@
// indicates membership in the loop.
BitVector* FindLoop(BlockEntryInstr* m, BlockEntryInstr* n) const;
- Isolate* isolate_;
+ Thread* thread_;
// DiscoverBlocks computes parent_ and assigned_vars_ which are then used
// if/when computing SSA.
@@ -411,9 +414,9 @@
// for blocks until they stop changing.
void ComputeLiveInAndLiveOutSets();
- Isolate* isolate() const { return isolate_; }
+ Zone* zone() const { return zone_; }
- Isolate* isolate_;
+ Zone* zone_;
const intptr_t variable_count_;
@@ -469,7 +472,7 @@
intptr_t initial_capacity)
: defs_(initial_capacity),
contains_vector_(
- new BitVector(flow_graph->isolate(),
+ new BitVector(flow_graph->zone(),
flow_graph->current_ssa_temp_index())) {
}
« no previous file with comments | « runtime/vm/bit_vector.h ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698