Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 3dbdb2fc1510d7a3bae024971045f56127c4c320..9c3cccddf7d73ed2ea870848f3771824c0bc250e 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -5915,7 +5915,6 @@ void StringAddStub::GenerateConvertArgument(MacroAssembler* masm, |
__ b(lt, &done); |
// Check the number to string cache. |
- Label not_cached; |
__ bind(¬_string); |
// Puts the cached result into scratch1. |
NumberToStringStub::GenerateLookupNumberStringCache(masm, |
@@ -5924,26 +5923,9 @@ void StringAddStub::GenerateConvertArgument(MacroAssembler* masm, |
scratch2, |
scratch3, |
scratch4, |
- ¬_cached); |
+ slow); |
__ mov(arg, scratch1); |
__ str(arg, MemOperand(sp, stack_offset)); |
- __ jmp(&done); |
- |
- // Check if the argument is a safe string wrapper. |
- __ bind(¬_cached); |
- __ JumpIfSmi(arg, slow); |
- __ CompareObjectType( |
- arg, scratch1, scratch2, JS_VALUE_TYPE); // map -> scratch1. |
- __ b(ne, slow); |
- __ ldrb(scratch2, FieldMemOperand(scratch1, Map::kBitField2Offset)); |
- __ and_(scratch2, |
- scratch2, Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); |
- __ cmp(scratch2, |
- Operand(1 << Map::kStringWrapperSafeForDefaultValueOf)); |
- __ b(ne, slow); |
- __ ldr(arg, FieldMemOperand(arg, JSValue::kValueOffset)); |
- __ str(arg, MemOperand(sp, stack_offset)); |
- |
__ bind(&done); |
} |