Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 8ff3e9330457826f5f202412344bc44e8680934e..1209372ef17f53e03de7efc944804d6e4614c841 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -2659,7 +2659,7 @@ void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
context()->PrepareTest(&materialize_true, &materialize_false, |
&if_true, &if_false, &fall_through); |
- if (generate_debug_code_) __ AbortIfSmi(r0); |
+ __ AssertNotSmi(r0); |
__ ldr(r1, FieldMemOperand(r0, HeapObject::kMapOffset)); |
__ ldrb(ip, FieldMemOperand(r1, Map::kBitField2Offset)); |
@@ -3534,8 +3534,7 @@ void FullCodeGenerator::EmitGetCachedArrayIndex(CallRuntime* expr) { |
ASSERT(args->length() == 1); |
VisitForAccumulatorValue(args->at(0)); |
- __ AbortIfNotString(r0); |
- |
+ __ AssertString(r0); |
__ ldr(r0, FieldMemOperand(r0, String::kHashFieldOffset)); |
__ IndexFromHash(r0, r0); |