@@ -290,8 +290,7 @@ Value* AotCallSpecializer::PrepareStaticOpInput(Value* input,
290290 if (input->Type ()->ToNullableCid () == kSmiCid ) {
291291 conversion = new (Z) SmiToDoubleInstr (input, call->source ());
292292 } else if (FlowGraphCompiler::CanConvertInt64ToDouble ()) {
293- conversion = new (Z) Int64ToDoubleInstr (input, DeoptId::kNone ,
294- Instruction::kNotSpeculative );
293+ conversion = new (Z) Int64ToDoubleInstr (input, DeoptId::kNone );
295294 } else {
296295 UNREACHABLE ();
297296 }
@@ -443,9 +442,8 @@ Definition* AotCallSpecializer::TryOptimizeDivisionOperation(
443442 if (magnitude == 1 ) return right_definition;
444443 InsertBefore (instr, right_definition, /* env=*/ nullptr , FlowGraph::kValue );
445444 right_value = new (Z) Value (right_definition);
446- return new (Z)
447- BinaryInt64OpInstr (Token::kBIT_AND , left_value, right_value,
448- DeoptId::kNone , Instruction::kNotSpeculative );
445+ return new (Z) BinaryInt64OpInstr (Token::kBIT_AND , left_value, right_value,
446+ DeoptId::kNone );
449447 } else {
450448 ASSERT_EQUAL (op_kind, Token::kTRUNCDIV );
451449#if !defined(TARGET_ARCH_IS_32_BIT)
@@ -484,16 +482,14 @@ Definition* AotCallSpecializer::TryOptimizeDivisionOperation(
484482 auto * rounding_adjustment = unboxed_constant (magnitude - 1 );
485483 InsertBefore (instr, rounding_adjustment, /* env=*/ nullptr ,
486484 FlowGraph::kValue );
487- rounding_adjustment = new (Z)
488- BinaryInt64OpInstr (Token::kBIT_AND , new (Z) Value (sign_bit_extended),
489- new (Z) Value (rounding_adjustment), DeoptId::kNone ,
490- Instruction::kNotSpeculative );
485+ rounding_adjustment = new (Z) BinaryInt64OpInstr (
486+ Token::kBIT_AND , new (Z) Value (sign_bit_extended),
487+ new (Z) Value (rounding_adjustment), DeoptId::kNone );
491488 InsertBefore (instr, rounding_adjustment, /* env=*/ nullptr ,
492489 FlowGraph::kValue );
493- auto * const left_definition = new (Z)
494- BinaryInt64OpInstr (Token::kADD , left_value->CopyWithType (Z),
495- new (Z) Value (rounding_adjustment), DeoptId::kNone ,
496- Instruction::kNotSpeculative );
490+ auto * const left_definition = new (Z) BinaryInt64OpInstr (
491+ Token::kADD , left_value->CopyWithType (Z),
492+ new (Z) Value (rounding_adjustment), DeoptId::kNone );
497493 InsertBefore (instr, left_definition, /* env=*/ nullptr , FlowGraph::kValue );
498494 left_value = new (Z) Value (left_definition);
499495 auto * const right_definition =
@@ -553,7 +549,7 @@ bool AotCallSpecializer::TryOptimizeIntegerOperation(TemplateDartCall<0>* instr,
553549 replacement = new (Z) EqualityCompareInstr (
554550 instr->source (), op_kind, left_value->CopyWithType (Z),
555551 right_value->CopyWithType (Z), kMintCid , DeoptId::kNone ,
556- /* null_aware=*/ either_can_be_null, Instruction:: kNotSpeculative );
552+ /* null_aware=*/ either_can_be_null);
557553 break ;
558554 }
559555 case Token::kLT :
@@ -562,9 +558,9 @@ bool AotCallSpecializer::TryOptimizeIntegerOperation(TemplateDartCall<0>* instr,
562558 case Token::kGTE :
563559 left_value = PrepareStaticOpInput (left_value, kMintCid , instr);
564560 right_value = PrepareStaticOpInput (right_value, kMintCid , instr);
565- replacement = new (Z) RelationalOpInstr (
566- instr->source (), op_kind, left_value, right_value, kMintCid ,
567- DeoptId:: kNone , Instruction:: kNotSpeculative );
561+ replacement =
562+ new (Z) RelationalOpInstr ( instr->source (), op_kind, left_value,
563+ right_value, kMintCid , DeoptId:: kNone );
568564 break ;
569565 case Token::kMOD :
570566 case Token::kTRUNCDIV :
@@ -605,9 +601,8 @@ bool AotCallSpecializer::TryOptimizeIntegerOperation(TemplateDartCall<0>* instr,
605601 } else {
606602 left_value = PrepareStaticOpInput (left_value, kMintCid , instr);
607603 right_value = PrepareStaticOpInput (right_value, kMintCid , instr);
608- replacement = new (Z)
609- BinaryInt64OpInstr (op_kind, left_value, right_value,
610- DeoptId::kNone , Instruction::kNotSpeculative );
604+ replacement = new (Z) BinaryInt64OpInstr (op_kind, left_value,
605+ right_value, DeoptId::kNone );
611606 }
612607 break ;
613608 }
@@ -626,8 +621,8 @@ bool AotCallSpecializer::TryOptimizeIntegerOperation(TemplateDartCall<0>* instr,
626621
627622 if (op_kind == Token::kNEGATE || op_kind == Token::kBIT_NOT ) {
628623 left_value = PrepareStaticOpInput (left_value, kMintCid , instr);
629- replacement = new (Z) UnaryInt64OpInstr (
630- op_kind, left_value, DeoptId::kNone , Instruction:: kNotSpeculative );
624+ replacement =
625+ new (Z) UnaryInt64OpInstr ( op_kind, left_value, DeoptId::kNone );
631626 }
632627 }
633628
@@ -679,8 +674,7 @@ bool AotCallSpecializer::TryOptimizeDoubleOperation(TemplateDartCall<0>* instr,
679674 right_value = PrepareStaticOpInput (right_value, kDoubleCid , instr);
680675 replacement = new (Z) EqualityCompareInstr (
681676 instr->source (), op_kind, left_value, right_value, kDoubleCid ,
682- DeoptId::kNone , /* null_aware=*/ false ,
683- Instruction::kNotSpeculative );
677+ DeoptId::kNone , /* null_aware=*/ false );
684678 break ;
685679 }
686680 break ;
@@ -694,9 +688,9 @@ bool AotCallSpecializer::TryOptimizeDoubleOperation(TemplateDartCall<0>* instr,
694688 case Token::kGTE : {
695689 left_value = PrepareStaticOpInput (left_value, kDoubleCid , instr);
696690 right_value = PrepareStaticOpInput (right_value, kDoubleCid , instr);
697- replacement = new (Z) RelationalOpInstr (
698- instr->source (), op_kind, left_value, right_value, kDoubleCid ,
699- DeoptId:: kNone , Instruction:: kNotSpeculative );
691+ replacement =
692+ new (Z) RelationalOpInstr ( instr->source (), op_kind, left_value,
693+ right_value, kDoubleCid , DeoptId:: kNone );
700694 break ;
701695 }
702696 case Token::kADD :
@@ -709,8 +703,7 @@ bool AotCallSpecializer::TryOptimizeDoubleOperation(TemplateDartCall<0>* instr,
709703 left_value = PrepareStaticOpInput (left_value, kDoubleCid , instr);
710704 right_value = PrepareStaticOpInput (right_value, kDoubleCid , instr);
711705 replacement = new (Z) BinaryDoubleOpInstr (
712- op_kind, left_value, right_value, DeoptId::kNone , instr->source (),
713- Instruction::kNotSpeculative );
706+ op_kind, left_value, right_value, DeoptId::kNone , instr->source ());
714707 break ;
715708 }
716709
@@ -739,8 +732,7 @@ bool AotCallSpecializer::TryOptimizeDoubleOperation(TemplateDartCall<0>* instr,
739732 if (op_kind == Token::kNEGATE ) {
740733 left_value = PrepareStaticOpInput (left_value, kDoubleCid , instr);
741734 replacement = new (Z)
742- UnaryDoubleOpInstr (Token::kNEGATE , left_value, instr->deopt_id (),
743- Instruction::kNotSpeculative );
735+ UnaryDoubleOpInstr (Token::kNEGATE , left_value, instr->deopt_id ());
744736 }
745737 }
746738
@@ -1139,10 +1131,10 @@ bool AotCallSpecializer::TryReplaceInstanceOfWithRangeCheck(
11391131 if (lower_limit == upper_limit) {
11401132 ConstantInstr* cid_constant = flow_graph ()->GetConstant (
11411133 Smi::Handle (Z, Smi::New (lower_limit)), kUnboxedUword );
1142- check_range = new (Z) EqualityCompareInstr (
1143- call->source (), Token::kEQ , new Value (load_cid),
1144- new Value (cid_constant), kIntegerCid , DeoptId:: kNone , false ,
1145- Instruction:: kNotSpeculative );
1134+ check_range = new (Z)
1135+ EqualityCompareInstr ( call->source (), Token::kEQ , new Value (load_cid),
1136+ new Value (cid_constant), kIntegerCid ,
1137+ DeoptId:: kNone , /* null_aware= */ false );
11461138 } else {
11471139 check_range =
11481140 new (Z) TestRangeInstr (call->source (), new (Z) Value (load_cid),
0 commit comments