Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4182)

Unified Diff: src/arm/code-stubs-arm.cc

Issue 6339013: ARM: Fix the type recording binary operation stub subtract... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698