Index: runtime/vm/assembler_arm64_test.cc |
diff --git a/runtime/vm/assembler_arm64_test.cc b/runtime/vm/assembler_arm64_test.cc |
index 7c7a62013bbbd36a1f2898eac9d9403afa1e4e45..329466a8523108d408b8081eebf6a68883bd69ea 100644 |
--- a/runtime/vm/assembler_arm64_test.cc |
+++ b/runtime/vm/assembler_arm64_test.cc |
@@ -3634,68 +3634,6 @@ ASSEMBLER_TEST_GENERATE(StoreIntoObject, assembler) { |
__ ret(); |
} |
- |
-ASSEMBLER_TEST_GENERATE(ComputeRange, assembler) { |
- __ SetupDartSP(); |
- EnterTestFrame(assembler); |
- Label miss, done; |
- __ ComputeRange(R0, R2, R3, &miss); |
- __ b(&done); |
- |
- __ Bind(&miss); |
- __ LoadImmediate(R0, -1); |
- |
- __ Bind(&done); |
- LeaveTestFrame(assembler); |
- __ RestoreCSP(); |
- __ ret(); |
-} |
- |
- |
-ASSEMBLER_TEST_RUN(ComputeRange, test) { |
-#define RANGE_OF(arg_type, v) \ |
- test->InvokeWithCodeAndThread<intptr_t, arg_type>(v) |
- |
- EXPECT_EQ(ICData::kInt32RangeBit, RANGE_OF(RawSmi*, Smi::New(0))); |
- EXPECT_EQ(ICData::kInt32RangeBit, RANGE_OF(RawSmi*, Smi::New(1))); |
- EXPECT_EQ(ICData::kInt32RangeBit, RANGE_OF(RawSmi*, Smi::New(kMaxInt32))); |
- EXPECT_EQ(ICData::kInt32RangeBit | ICData::kSignedRangeBit, |
- RANGE_OF(RawSmi*, Smi::New(-1))); |
- EXPECT_EQ(ICData::kInt32RangeBit | ICData::kSignedRangeBit, |
- RANGE_OF(RawSmi*, Smi::New(kMinInt32))); |
- |
- EXPECT_EQ(ICData::kUint32RangeBit, |
- RANGE_OF(RawSmi*, Smi::New(static_cast<int64_t>(kMaxInt32) + 1))); |
- EXPECT_EQ(ICData::kUint32RangeBit, |
- RANGE_OF(RawSmi*, Smi::New(kMaxUint32))); |
- |
- // On 64-bit platforms we don't track the sign of the smis outside of |
- // int32 range because it is not needed to distinguish kInt32Range from |
- // kUint32Range. |
- EXPECT_EQ(ICData::kSignedRangeBit, |
- RANGE_OF(RawSmi*, Smi::New(static_cast<int64_t>(kMinInt32) - 1))); |
- EXPECT_EQ(ICData::kSignedRangeBit, |
- RANGE_OF(RawSmi*, Smi::New(static_cast<int64_t>(kMaxUint32) + 1))); |
- EXPECT_EQ(ICData::kSignedRangeBit, |
- RANGE_OF(RawSmi*, Smi::New(Smi::kMaxValue))); |
- EXPECT_EQ(ICData::kSignedRangeBit, RANGE_OF(RawSmi*, |
- Smi::New(Smi::kMinValue))); |
- |
- EXPECT_EQ(ICData::kInt64RangeBit, |
- RANGE_OF(RawInteger*, Integer::New(Smi::kMaxValue + 1))); |
- EXPECT_EQ(ICData::kInt64RangeBit, |
- RANGE_OF(RawInteger*, Integer::New(Smi::kMinValue - 1))); |
- EXPECT_EQ(ICData::kInt64RangeBit, |
- RANGE_OF(RawInteger*, Integer::New(kMaxInt64))); |
- EXPECT_EQ(ICData::kInt64RangeBit, |
- RANGE_OF(RawInteger*, Integer::New(kMinInt64))); |
- |
- EXPECT_EQ(-1, RANGE_OF(RawBool*, Bool::True().raw())); |
- |
-#undef RANGE_OF |
-} |
- |
- |
} // namespace dart |
#endif // defined(TARGET_ARCH_ARM64) |