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

Unified Diff: src/arm/fast-codegen-arm.cc

Issue 551048: Very small optimization of ARM compare stub. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | « src/arm/codegen-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/fast-codegen-arm.cc
===================================================================
--- src/arm/fast-codegen-arm.cc (revision 3618)
+++ src/arm/fast-codegen-arm.cc (working copy)
@@ -1592,13 +1592,13 @@
__ pop(r1);
break;
case Token::GT:
- // Reverse left and right sizes to obtain ECMA-262 conversion order.
+ // Reverse left and right sides to obtain ECMA-262 conversion order.
cc = lt;
__ pop(r1);
__ pop(r0);
break;
case Token::LTE:
- // Reverse left and right sizes to obtain ECMA-262 conversion order.
+ // Reverse left and right sides to obtain ECMA-262 conversion order.
cc = ge;
__ pop(r1);
__ pop(r0);
@@ -1627,7 +1627,7 @@
__ bind(&slow_case);
CompareStub stub(cc, strict);
__ CallStub(&stub);
- __ tst(r0, r0);
+ __ cmp(r0, Operand(0));
__ b(cc, if_true);
__ jmp(if_false);
}
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698