Index: src/arm/code-stubs-arm.cc |
=================================================================== |
--- src/arm/code-stubs-arm.cc (revision 6484) |
+++ src/arm/code-stubs-arm.cc (working copy) |
@@ -2695,7 +2695,9 @@ |
__ bind(&call_runtime); |
// Try to add strings before calling runtime. |
- GenerateAddStrings(masm); |
+ if (op_ == Token::ADD) { |
+ GenerateAddStrings(masm); |
+ } |
GenericBinaryOpStub stub(op_, mode_, r1, r0); |
__ TailCallStub(&stub); |
@@ -2703,6 +2705,8 @@ |
void TypeRecordingBinaryOpStub::GenerateAddStrings(MacroAssembler* masm) { |
+ ASSERT(op_ == Token::ADD); |
+ |
Register left = r1; |
Register right = r0; |
Label call_runtime; |