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

Unified Diff: src/assembler.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/simulator-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler.cc
===================================================================
--- src/assembler.cc (revision 3618)
+++ src/assembler.cc (working copy)
@@ -44,6 +44,7 @@
#include "regexp-stack.h"
#include "ast.h"
#include "regexp-macro-assembler.h"
+#include "platform.h"
// Include native regexp-macro-assembler.
#ifdef V8_NATIVE_REGEXP
#if V8_TARGET_ARCH_IA32
@@ -706,13 +707,13 @@
static double mod_two_doubles(double x, double y) {
- return fmod(x, y);
+ return modulo(x, y);
}
-static int native_compare_doubles(double x, double y) {
- if (x == y) return 0;
- return x < y ? 1 : -1;
+static int native_compare_doubles(double y, double x) {
+ if (x == y) return EQUAL;
+ return x < y ? LESS : GREATER;
}
« no previous file with comments | « src/arm/simulator-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698