Chromium Code Reviews| 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..0192c94adfbbad100e8de96bd370c92848b0b132 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); |
|
Michael Starzinger
2012/10/12 11:00:22
Indentation is off.
Sven Panne
2012/10/12 11:05:36
Done.
|
| __ SmiUntag(r0); |
| __ StoreToSafepointRegisterSlot(r0, result); |
| } |