| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index da17e297637f01656e5f7708be1aebf376ff2bfb..296fa324bedb1e077a3a50a2eadcb28c9936ee13 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -2109,7 +2109,7 @@ void LCodeGen::DoGetCachedArrayIndex(LGetCachedArrayIndex* instr) {
|
| Register input = ToRegister(instr->value());
|
| Register result = ToRegister(instr->result());
|
|
|
| - __ AbortIfNotString(input);
|
| + __ AssertString(input);
|
|
|
| __ mov(result, FieldOperand(input, String::kHashFieldOffset));
|
| __ IndexFromHash(result, result);
|
| @@ -4045,9 +4045,7 @@ void LCodeGen::DoDeferredStringCharCodeAt(LStringCharCodeAt* instr) {
|
| }
|
| CallRuntimeFromDeferred(Runtime::kStringCharCodeAt, 2,
|
| instr, instr->context());
|
| - if (FLAG_debug_code) {
|
| - __ AbortIfNotSmi(eax);
|
| - }
|
| + __ AssertSmi(eax);
|
| __ SmiUntag(eax);
|
| __ StoreToSafepointRegisterSlot(result, eax);
|
| }
|
| @@ -4301,9 +4299,7 @@ void LCodeGen::DoSmiUntag(LSmiUntag* instr) {
|
| __ test(ToRegister(input), Immediate(kSmiTagMask));
|
| DeoptimizeIf(not_zero, instr->environment());
|
| } else {
|
| - if (FLAG_debug_code) {
|
| - __ AbortIfNotSmi(ToRegister(input));
|
| - }
|
| + __ AssertSmi(ToRegister(input));
|
| }
|
| __ SmiUntag(ToRegister(input));
|
| }
|
| @@ -4836,7 +4832,7 @@ void LCodeGen::DoAllocateObject(LAllocateObject* instr) {
|
| __ mov(map, FieldOperand(scratch, JSFunction::kPrototypeOrInitialMapOffset));
|
|
|
| if (FLAG_debug_code) {
|
| - __ AbortIfSmi(map);
|
| + __ AssertNotSmi(map);
|
| __ cmpb(FieldOperand(map, Map::kInstanceSizeOffset),
|
| instance_size >> kPointerSizeLog2);
|
| __ Assert(equal, "Unexpected instance size");
|
|
|