| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index b5a0f9af31919d948e1ec2fa0fc6f77e47c5013f..a8a2facf2bbffc9cfa07956e868cebb07b025272 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -2295,7 +2295,7 @@ void LCodeGen::DoGetCachedArrayIndex(LGetCachedArrayIndex* instr) {
|
| Register input = ToRegister(instr->value());
|
| Register result = ToRegister(instr->result());
|
|
|
| - __ AbortIfNotString(input);
|
| + __ AssertString(input);
|
|
|
| __ ldr(result, FieldMemOperand(input, String::kHashFieldOffset));
|
| __ IndexFromHash(result, result);
|
| @@ -4274,9 +4274,7 @@ void LCodeGen::DoDeferredStringCharCodeAt(LStringCharCodeAt* instr) {
|
| __ push(index);
|
| }
|
| CallRuntimeFromDeferred(Runtime::kStringCharCodeAt, 2, instr);
|
| - if (FLAG_debug_code) {
|
| - __ AbortIfNotSmi(r0);
|
| - }
|
| + __ AssertSmi(r0);
|
| __ SmiUntag(r0);
|
| __ StoreToSafepointRegisterSlot(r0, result);
|
| }
|
|
|