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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1628 const intptr_t dest_offset = destination.ToStackSlotOffset(); 1628 const intptr_t dest_offset = destination.ToStackSlotOffset();
1629 const DRegister dtmp0 = DTMP; 1629 const DRegister dtmp0 = DTMP;
1630 __ LoadMultipleDFromOffset(dtmp0, 2, FP, source_offset); 1630 __ LoadMultipleDFromOffset(dtmp0, 2, FP, source_offset);
1631 __ StoreMultipleDToOffset(dtmp0, 2, FP, dest_offset); 1631 __ StoreMultipleDToOffset(dtmp0, 2, FP, dest_offset);
1632 } 1632 }
1633 } else { 1633 } else {
1634 ASSERT(source.IsConstant()); 1634 ASSERT(source.IsConstant());
1635 if (destination.IsRegister()) { 1635 if (destination.IsRegister()) {
1636 const Object& constant = source.constant(); 1636 const Object& constant = source.constant();
1637 __ LoadObject(destination.reg(), constant); 1637 __ LoadObject(destination.reg(), constant);
1638 } else if (destination.IsFpuRegister()) {
1639 const Double& constant = Double::Cast(source.constant());
1640 DRegister dst = EvenDRegisterOf(destination.fpu_reg());
1641 __ LoadDImmediate(dst, constant.value(), TMP);
zra 2014/05/01 18:34:14 Can't use TMP here.
srdjan 2014/05/01 20:33:04 Fixed: const DRegister dst = EvenDRegisterOf
1638 } else { 1642 } else {
1639 ASSERT(destination.IsStackSlot()); 1643 ASSERT(destination.IsStackSlot());
1640 const intptr_t dest_offset = destination.ToStackSlotOffset(); 1644 const intptr_t dest_offset = destination.ToStackSlotOffset();
1641 __ LoadObject(TMP, source.constant()); 1645 __ LoadObject(TMP, source.constant());
1642 __ StoreToOffset(kWord, TMP, FP, dest_offset); 1646 __ StoreToOffset(kWord, TMP, FP, dest_offset);
1643 } 1647 }
1644 } 1648 }
1645 1649
1646 move->Eliminate(); 1650 move->Eliminate();
1647 } 1651 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 DRegister dreg = EvenDRegisterOf(reg); 1793 DRegister dreg = EvenDRegisterOf(reg);
1790 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1794 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1791 } 1795 }
1792 1796
1793 1797
1794 #undef __ 1798 #undef __
1795 1799
1796 } // namespace dart 1800 } // namespace dart
1797 1801
1798 #endif // defined TARGET_ARCH_ARM 1802 #endif // defined TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698