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

Unified Diff: runtime/vm/flow_graph_compiler_arm.cc

Issue 266633007: Merge ConstantInstr -> UnboxDouble to UnboxedConstant. Reduces register usage and allows for variou… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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
Index: runtime/vm/flow_graph_compiler_arm.cc
===================================================================
--- runtime/vm/flow_graph_compiler_arm.cc (revision 35632)
+++ runtime/vm/flow_graph_compiler_arm.cc (working copy)
@@ -1635,6 +1635,10 @@
if (destination.IsRegister()) {
const Object& constant = source.constant();
__ LoadObject(destination.reg(), constant);
+ } else if (destination.IsFpuRegister()) {
+ const Double& constant = Double::Cast(source.constant());
+ DRegister dst = EvenDRegisterOf(destination.fpu_reg());
zra 2014/05/01 18:34:14 const DRegister dst
srdjan 2014/05/01 20:33:04 Done.
+ __ LoadDImmediate(dst, constant.value(), TMP);
} else {
ASSERT(destination.IsStackSlot());
const intptr_t dest_offset = destination.ToStackSlotOffset();

Powered by Google App Engine
This is Rietveld 408576698