| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index f11044d3867655046da28bbcded4fffe9f1a9d59..4be6d264a8f69d16cebe90c1a986703e2ccb0615 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -1597,11 +1597,10 @@ void LCodeGen::DoDateField(LDateField* instr) {
|
| ASSERT(!scratch.is(scratch0()));
|
| ASSERT(!scratch.is(object));
|
|
|
| -#ifdef DEBUG
|
| - __ AbortIfSmi(object);
|
| + __ tst(object, Operand(kSmiTagMask));
|
| + DeoptimizeIf(eq, instr->environment());
|
| __ CompareObjectType(object, scratch, scratch, JS_DATE_TYPE);
|
| - __ Assert(eq, "Trying to get date field from non-date.");
|
| -#endif
|
| + DeoptimizeIf(ne, instr->environment());
|
|
|
| if (index->value() == 0) {
|
| __ ldr(result, FieldMemOperand(object, JSDate::kValueOffset));
|
| @@ -2237,9 +2236,7 @@ void LCodeGen::DoGetCachedArrayIndex(LGetCachedArrayIndex* instr) {
|
| Register input = ToRegister(instr->InputAt(0));
|
| Register result = ToRegister(instr->result());
|
|
|
| - if (FLAG_debug_code) {
|
| - __ AbortIfNotString(input);
|
| - }
|
| + __ AbortIfNotString(input);
|
|
|
| __ ldr(result, FieldMemOperand(input, String::kHashFieldOffset));
|
| __ IndexFromHash(result, result);
|
|
|