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