@@ -65,8 +65,8 @@ JoinEntryInstr* BranchSimplifier::ToJoinEntry(Zone* zone,
65
65
// Convert a target block into a join block. Branches will be duplicated
66
66
// so the former true and false targets become joins of the control flows
67
67
// from all the duplicated branches.
68
- JoinEntryInstr* join =
69
- new (zone) JoinEntryInstr ( target->block_id (), target->try_index ());
68
+ JoinEntryInstr* join = new (zone) JoinEntryInstr (
69
+ target->block_id (), target->try_index (), Thread:: kNoDeoptId );
70
70
join->InheritDeoptTarget (zone, target);
71
71
join->LinkTo (target->next ());
72
72
join->set_last_instruction (target->last_instruction ());
@@ -82,7 +82,8 @@ BranchInstr* BranchSimplifier::CloneBranch(Zone* zone,
82
82
ComparisonInstr* comparison = branch->comparison ();
83
83
ComparisonInstr* new_comparison =
84
84
comparison->CopyWithNewOperands (new_left, new_right);
85
- BranchInstr* new_branch = new (zone) BranchInstr (new_comparison);
85
+ BranchInstr* new_branch =
86
+ new (zone) BranchInstr (new_comparison, Thread::kNoDeoptId );
86
87
return new_branch;
87
88
}
88
89
@@ -183,20 +184,24 @@ void BranchSimplifier::Simplify(FlowGraph* flow_graph) {
183
184
184
185
// Connect the branch to the true and false joins, via empty target
185
186
// blocks.
186
- TargetEntryInstr* true_target = new (zone) TargetEntryInstr (
187
- flow_graph->max_block_id () + 1 , block->try_index ());
187
+ TargetEntryInstr* true_target =
188
+ new (zone) TargetEntryInstr (flow_graph->max_block_id () + 1 ,
189
+ block->try_index (), Thread::kNoDeoptId );
188
190
true_target->InheritDeoptTarget (zone, join_true);
189
- TargetEntryInstr* false_target = new (zone) TargetEntryInstr (
190
- flow_graph->max_block_id () + 2 , block->try_index ());
191
+ TargetEntryInstr* false_target =
192
+ new (zone) TargetEntryInstr (flow_graph->max_block_id () + 2 ,
193
+ block->try_index (), Thread::kNoDeoptId );
191
194
false_target->InheritDeoptTarget (zone, join_false);
192
195
flow_graph->set_max_block_id (flow_graph->max_block_id () + 2 );
193
196
*new_branch->true_successor_address () = true_target;
194
197
*new_branch->false_successor_address () = false_target;
195
- GotoInstr* goto_true = new (zone) GotoInstr (join_true);
198
+ GotoInstr* goto_true =
199
+ new (zone) GotoInstr (join_true, Thread::kNoDeoptId );
196
200
goto_true->InheritDeoptTarget (zone, join_true);
197
201
true_target->LinkTo (goto_true);
198
202
true_target->set_last_instruction (goto_true);
199
- GotoInstr* goto_false = new (zone) GotoInstr (join_false);
203
+ GotoInstr* goto_false =
204
+ new (zone) GotoInstr (join_false, Thread::kNoDeoptId );
200
205
goto_false->InheritDeoptTarget (zone, join_false);
201
206
false_target->LinkTo (goto_false);
202
207
false_target->set_last_instruction (goto_false);
@@ -295,8 +300,9 @@ void IfConverter::Simplify(FlowGraph* flow_graph) {
295
300
296
301
ComparisonInstr* new_comparison = comparison->CopyWithNewOperands (
297
302
comparison->left ()->Copy (zone), comparison->right ()->Copy (zone));
298
- IfThenElseInstr* if_then_else = new (zone) IfThenElseInstr (
299
- new_comparison, if_true->Copy (zone), if_false->Copy (zone));
303
+ IfThenElseInstr* if_then_else = new (zone)
304
+ IfThenElseInstr (new_comparison, if_true->Copy (zone),
305
+ if_false->Copy (zone), Thread::kNoDeoptId );
300
306
flow_graph->InsertBefore (branch, if_then_else, NULL ,
301
307
FlowGraph::kValue );
302
308
0 commit comments