| Index: src/ia32/code-stubs-ia32.cc
|
| diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc
|
| index 142abb5fd7babaf4529bb6e9dee821ec2310048b..3b6987e6f4f0b195a44439e4a92c136e1ee49432 100644
|
| --- a/src/ia32/code-stubs-ia32.cc
|
| +++ b/src/ia32/code-stubs-ia32.cc
|
| @@ -5732,7 +5732,7 @@ void StringAddStub::Generate(MacroAssembler* masm) {
|
| __ AllocateAsciiConsString(ecx, edi, no_reg, &call_runtime);
|
| __ bind(&allocated);
|
| // Fill the fields of the cons string.
|
| - if (FLAG_debug_code) __ AbortIfNotSmi(ebx);
|
| + __ AssertSmi(ebx);
|
| __ mov(FieldOperand(ecx, ConsString::kLengthOffset), ebx);
|
| __ mov(FieldOperand(ecx, ConsString::kHashFieldOffset),
|
| Immediate(String::kEmptyHashField));
|
| @@ -6981,8 +6981,7 @@ void StringDictionaryLookupStub::GeneratePositiveLookup(MacroAssembler* masm,
|
| ASSERT(!name.is(r0));
|
| ASSERT(!name.is(r1));
|
|
|
| - // Assert that name contains a string.
|
| - if (FLAG_debug_code) __ AbortIfNotString(name);
|
| + __ AssertString(name);
|
|
|
| __ mov(r1, FieldOperand(elements, kCapacityOffset));
|
| __ shr(r1, kSmiTagSize); // convert smi to int
|
|
|