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

Unified Diff: vm/ast.cc

Issue 8921012: Allocate double temporaries in old space ... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years 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 | vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/ast.cc
===================================================================
--- vm/ast.cc (revision 2344)
+++ vm/ast.cc (working copy)
@@ -94,8 +94,9 @@
dbl ^= literal().raw();
// Preserve negative zero.
double new_value = (dbl.value() == 0.0) ? -0.0 : (0.0 - dbl.value());
- const Instance& literal = Instance::ZoneHandle(Double::New(new_value));
- return new LiteralNode(this->token_index(), literal);
+ Double& double_instance = Double::ZoneHandle(Double::New(new_value));
siva 2011/12/12 18:50:30 Do you want to allocate this also in the old space
srdjan 2011/12/21 22:30:17 Done.
+ double_instance ^= double_instance.Canonicalize();
+ return new LiteralNode(this->token_index(), double_instance);
}
}
return NULL;
« no previous file with comments | « no previous file | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698