Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 8a03a9a31a592faa84ce21f1e77625e5481719ea..ed425545611f52375cc40c27958ec57c07417acc 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -6182,7 +6182,6 @@ void StringAddStub::GenerateConvertArgument(MacroAssembler* masm, |
__ Branch(&done, lt, scratch1, Operand(FIRST_NONSTRING_TYPE)); |
// Check the number to string cache. |
- Label not_cached; |
__ bind(¬_string); |
// Puts the cached result into scratch1. |
NumberToStringStub::GenerateLookupNumberStringCache(masm, |
@@ -6191,23 +6190,9 @@ void StringAddStub::GenerateConvertArgument(MacroAssembler* masm, |
scratch2, |
scratch3, |
scratch4, |
- ¬_cached); |
+ slow); |
__ mov(arg, scratch1); |
__ sw(arg, MemOperand(sp, stack_offset)); |
- __ jmp(&done); |
- |
- // Check if the argument is a safe string wrapper. |
- __ bind(¬_cached); |
- __ JumpIfSmi(arg, slow); |
- __ GetObjectType(arg, scratch1, scratch2); // map -> scratch1. |
- __ Branch(slow, ne, scratch2, Operand(JS_VALUE_TYPE)); |
- __ lbu(scratch2, FieldMemOperand(scratch1, Map::kBitField2Offset)); |
- __ li(scratch4, 1 << Map::kStringWrapperSafeForDefaultValueOf); |
- __ And(scratch2, scratch2, scratch4); |
- __ Branch(slow, ne, scratch2, Operand(scratch4)); |
- __ lw(arg, FieldMemOperand(arg, JSValue::kValueOffset)); |
- __ sw(arg, MemOperand(sp, stack_offset)); |
- |
__ bind(&done); |
} |