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

Unified Diff: src/ia32/codegen-ia32.cc

Issue 660172: Changed GeneratePow ensure xmm1 is loaded with y before making the test for N... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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/ia32/codegen-ia32.cc
===================================================================
--- src/ia32/codegen-ia32.cc (revision 3964)
+++ src/ia32/codegen-ia32.cc (working copy)
@@ -5368,13 +5368,12 @@
__ cmp(FieldOperand(y.reg(), HeapObject::kMapOffset),
Factory::heap_number_map());
__ j(not_equal, &go_runtime);
+ // Y must be a double.
+ __ movdbl(xmm1, FieldOperand(y.reg(), HeapNumber::kValueOffset));
// Test if y is nan.
__ ucomisd(xmm1, xmm1);
__ j(parity_even, &go_runtime);
- // Y must be a double.
- __ movdbl(xmm1, FieldOperand(y.reg(), HeapNumber::kValueOffset));
-
Label x_not_smi;
Label handle_special_cases;
__ test(x.reg(), Immediate(kSmiTagMask));
« 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