Index: runtime/vm/flow_graph.h |
=================================================================== |
--- runtime/vm/flow_graph.h (revision 36573) |
+++ runtime/vm/flow_graph.h (working copy) |
@@ -102,6 +102,8 @@ |
return current_ssa_temp_index(); |
} |
+ Isolate* isolate() const { return isolate_; } |
+ |
intptr_t max_block_id() const { return max_block_id_; } |
void set_max_block_id(intptr_t id) { max_block_id_ = id; } |
intptr_t allocate_block_id() { return ++max_block_id_; } |
@@ -174,7 +176,7 @@ |
// have to keep deoptimization environment at gotos for LICM purposes. |
void CopyDeoptTarget(Instruction* to, Instruction* from) { |
if (is_licm_allowed()) { |
- to->InheritDeoptTarget(from); |
+ to->InheritDeoptTarget(isolate(), from); |
} |
} |
@@ -266,6 +268,8 @@ |
// body blocks for each loop header. |
ZoneGrowableArray<BlockEntryInstr*>* ComputeLoops(); |
+ Isolate* isolate_; |
+ |
// DiscoverBlocks computes parent_ and assigned_vars_ which are then used |
// if/when computing SSA. |
GrowableArray<intptr_t> parent_; |