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

Unified Diff: runtime/vm/opt_code_generator_ia32.cc

Issue 9338002: Fixed a bug in isNegate intrinsified code, fixed negation for doubles (handling of negative zeros... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 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 | « runtime/vm/intrinsifier_ia32.cc ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/opt_code_generator_ia32.cc
===================================================================
--- runtime/vm/opt_code_generator_ia32.cc (revision 3970)
+++ runtime/vm/opt_code_generator_ia32.cc (working copy)
@@ -870,10 +870,9 @@
__ LoadObject(kResultRegister, double_object);
}
__ movsd(XMM0, FieldAddress(kOperandRegister, Double::value_offset()));
- __ xorps(XMM1, XMM1); // 0.0 -> XMM1.
ASSERT(node->kind() == Token::kSUB);
- __ subsd(XMM1, XMM0);
- __ movsd(FieldAddress(kResultRegister, Double::value_offset()), XMM1);
+ __ DoubleNegate(XMM0);
+ __ movsd(FieldAddress(kResultRegister, Double::value_offset()), XMM0);
if (CodeGenerator::IsResultNeeded(node)) {
if (node->info() != NULL) {
node->info()->set_is_temp(using_temp);
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698