Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 41507d158d19a3011036da42fdeeb94fa1b0b771..abd462ed8537dde1af9da417c70303cb44b749ea 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4767,7 +4767,6 @@ void StringAddStub::GenerateConvertArgument(MacroAssembler* masm, |
__ j(below, &done); |
// Check the number to string cache. |
- Label not_cached; |
__ bind(¬_string); |
// Puts the cached result into scratch1. |
NumberToStringStub::GenerateLookupNumberStringCache(masm, |
@@ -4775,22 +4774,9 @@ void StringAddStub::GenerateConvertArgument(MacroAssembler* masm, |
scratch1, |
scratch2, |
scratch3, |
- ¬_cached); |
+ slow); |
__ movq(arg, scratch1); |
__ movq(Operand(rsp, stack_offset), arg); |
- __ jmp(&done); |
- |
- // Check if the argument is a safe string wrapper. |
- __ bind(¬_cached); |
- __ JumpIfSmi(arg, slow); |
- __ CmpObjectType(arg, JS_VALUE_TYPE, scratch1); // map -> scratch1. |
- __ j(not_equal, slow); |
- __ testb(FieldOperand(scratch1, Map::kBitField2Offset), |
- Immediate(1 << Map::kStringWrapperSafeForDefaultValueOf)); |
- __ j(zero, slow); |
- __ movq(arg, FieldOperand(arg, JSValue::kValueOffset)); |
- __ movq(Operand(rsp, stack_offset), arg); |
- |
__ bind(&done); |
} |