@@ -65,8 +65,8 @@ JoinEntryInstr* BranchSimplifier::ToJoinEntry(Zone* zone,
6565 // Convert a target block into a join block. Branches will be duplicated
6666 // so the former true and false targets become joins of the control flows
6767 // 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 ());
7070 join->InheritDeoptTarget (zone, target);
7171 join->LinkTo (target->next ());
7272 join->set_last_instruction (target->last_instruction ());
@@ -82,8 +82,7 @@ BranchInstr* BranchSimplifier::CloneBranch(Zone* zone,
8282 ComparisonInstr* comparison = branch->comparison ();
8383 ComparisonInstr* new_comparison =
8484 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);
8786 return new_branch;
8887}
8988
@@ -184,24 +183,20 @@ void BranchSimplifier::Simplify(FlowGraph* flow_graph) {
184183
185184 // Connect the branch to the true and false joins, via empty target
186185 // 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 ());
190188 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 ());
194191 false_target->InheritDeoptTarget (zone, join_false);
195192 flow_graph->set_max_block_id (flow_graph->max_block_id () + 2 );
196193 *new_branch->true_successor_address () = true_target;
197194 *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);
200196 goto_true->InheritDeoptTarget (zone, join_true);
201197 true_target->LinkTo (goto_true);
202198 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);
205200 goto_false->InheritDeoptTarget (zone, join_false);
206201 false_target->LinkTo (goto_false);
207202 false_target->set_last_instruction (goto_false);
@@ -300,9 +295,8 @@ void IfConverter::Simplify(FlowGraph* flow_graph) {
300295
301296 ComparisonInstr* new_comparison = comparison->CopyWithNewOperands (
302297 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));
306300 flow_graph->InsertBefore (branch, if_then_else, NULL ,
307301 FlowGraph::kValue );
308302
0 commit comments