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

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

Issue 517027: Improve count operation in top-level compiler on ARM.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 12 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/fast-codegen-arm.cc
===================================================================
--- src/arm/fast-codegen-arm.cc (revision 3530)
+++ src/arm/fast-codegen-arm.cc (working copy)
@@ -1510,14 +1510,13 @@
}
// Call runtime for +1/-1.
- __ push(r0);
- __ mov(ip, Operand(Smi::FromInt(1)));
- __ push(ip);
if (expr->op() == Token::INC) {
- __ CallRuntime(Runtime::kNumberAdd, 2);
+ __ mov(ip, Operand(Smi::FromInt(1)));
} else {
- __ CallRuntime(Runtime::kNumberSub, 2);
+ __ mov(ip, Operand(Smi::FromInt(-1)));
}
+ __ stm(db_w, sp, ip.bit() | r0.bit());
+ __ CallRuntime(Runtime::kNumberAdd, 2);
// Store the value returned in r0.
switch (assign_type) {
« 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