| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 029e394c643af12afe0d44ffc1b5acb18ce47f03..eba4e1fd5f2bd3f10b0a9551eeaabdd63646f803 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -221,6 +221,7 @@ void StubCompiler::GenerateLoadStringLength(MacroAssembler* masm,
|
|
|
| // Load length from the string and convert to a smi.
|
| __ mov(eax, FieldOperand(receiver, String::kLengthOffset));
|
| + __ SmiTag(eax);
|
| __ ret(0);
|
|
|
| // Check if the object is a JSValue wrapper.
|
| @@ -233,6 +234,7 @@ void StubCompiler::GenerateLoadStringLength(MacroAssembler* masm,
|
| __ mov(scratch2, FieldOperand(receiver, JSValue::kValueOffset));
|
| GenerateStringCheck(masm, scratch2, scratch1, miss, miss);
|
| __ mov(eax, FieldOperand(scratch2, String::kLengthOffset));
|
| + __ SmiTag(eax);
|
| __ ret(0);
|
| }
|
|
|
|
|