Index: src/arm/full-codegen-arm.cc |
=================================================================== |
--- src/arm/full-codegen-arm.cc (revision 6451) |
+++ src/arm/full-codegen-arm.cc (working copy) |
@@ -1548,8 +1548,13 @@ |
void FullCodeGenerator::EmitBinaryOp(Token::Value op, |
OverwriteMode mode) { |
__ pop(r1); |
- GenericBinaryOpStub stub(op, mode, r1, r0); |
- __ CallStub(&stub); |
+ if (op == Token::ADD) { |
+ TypeRecordingBinaryOpStub stub(op, mode); |
+ __ CallStub(&stub); |
+ } else { |
+ GenericBinaryOpStub stub(op, mode, r1, r0); |
+ __ CallStub(&stub); |
+ } |
context()->Plug(r0); |
} |