Index: runtime/vm/intermediate_language_arm.cc |
diff --git a/runtime/vm/intermediate_language_arm.cc b/runtime/vm/intermediate_language_arm.cc |
index a86906adeb1865d69aed1b6941a5c5b94c76ae85..c1a1acdc1123cd2c38e2a9ca37a186ca5a602db3 100644 |
--- a/runtime/vm/intermediate_language_arm.cc |
+++ b/runtime/vm/intermediate_language_arm.cc |
@@ -6069,27 +6069,6 @@ void CheckArrayBoundInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
} |
-static void EmitJavascriptIntOverflowCheck(FlowGraphCompiler* compiler, |
- Label* overflow, |
- Register result_lo, |
- Register result_hi) { |
- // Compare upper half. |
- Label check_lower; |
- __ CompareImmediate(result_hi, 0x00200000); |
- __ b(overflow, GT); |
- __ b(&check_lower, NE); |
- |
- __ CompareImmediate(result_lo, 0); |
- __ b(overflow, HI); |
- |
- __ Bind(&check_lower); |
- __ CompareImmediate(result_hi, -0x00200000); |
- __ b(overflow, LT); |
- // Anything in the lower part would make the number bigger than the lower |
- // bound, so we are done. |
-} |
- |
- |
LocationSummary* BinaryMintOpInstr::MakeLocationSummary(Zone* zone, |
bool opt) const { |
const intptr_t kNumInputs = 2; |
@@ -6167,9 +6146,6 @@ void BinaryMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
default: |
UNREACHABLE(); |
} |
- if (FLAG_throw_on_javascript_int_overflow) { |
- EmitJavascriptIntOverflowCheck(compiler, deopt, out_lo, out_hi); |
- } |
} |
@@ -6315,10 +6291,6 @@ void ShiftMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
UNREACHABLE(); |
} |
} |
- |
- if (FLAG_throw_on_javascript_int_overflow) { |
- EmitJavascriptIntOverflowCheck(compiler, deopt, out_lo, out_hi); |
- } |
} |
@@ -6345,17 +6317,8 @@ void UnaryMintOpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
PairLocation* out_pair = locs()->out(0).AsPairLocation(); |
Register out_lo = out_pair->At(0).reg(); |
Register out_hi = out_pair->At(1).reg(); |
- |
- Label* deopt = NULL; |
- |
- if (FLAG_throw_on_javascript_int_overflow) { |
- deopt = compiler->AddDeoptStub(deopt_id(), ICData::kDeoptUnaryMintOp); |
- } |
__ mvn(out_lo, Operand(left_lo)); |
__ mvn(out_hi, Operand(left_hi)); |
- if (FLAG_throw_on_javascript_int_overflow) { |
- EmitJavascriptIntOverflowCheck(compiler, deopt, out_lo, out_hi); |
- } |
} |