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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.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
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 ASSERT(destination.IsDoubleStackSlot()); 1677 ASSERT(destination.IsDoubleStackSlot());
1678 const intptr_t source_offset = source.ToStackSlotOffset(); 1678 const intptr_t source_offset = source.ToStackSlotOffset();
1679 const intptr_t dest_offset = destination.ToStackSlotOffset(); 1679 const intptr_t dest_offset = destination.ToStackSlotOffset();
1680 __ LoadDFromOffset(DTMP, FP, source_offset); 1680 __ LoadDFromOffset(DTMP, FP, source_offset);
1681 __ StoreDToOffset(DTMP, FP, dest_offset); 1681 __ StoreDToOffset(DTMP, FP, dest_offset);
1682 } 1682 }
1683 } else if (source.IsQuadStackSlot()) { 1683 } else if (source.IsQuadStackSlot()) {
1684 UNIMPLEMENTED(); 1684 UNIMPLEMENTED();
1685 } else { 1685 } else {
1686 ASSERT(source.IsConstant()); 1686 ASSERT(source.IsConstant());
1687 const Object& constant = source.constant();
1687 if (destination.IsRegister()) { 1688 if (destination.IsRegister()) {
1688 const Object& constant = source.constant();
1689 __ LoadObject(destination.reg(), constant); 1689 __ LoadObject(destination.reg(), constant);
1690 } else if (destination.IsFpuRegister()) {
1691 __ LoadObject(TMP, constant);
1692 __ LoadDFromOffset(destination.fpu_reg(), TMP,
1693 Double::value_offset() - kHeapObjectTag);
1690 } else { 1694 } else {
1691 ASSERT(destination.IsStackSlot()); 1695 ASSERT(destination.IsStackSlot());
1692 const intptr_t dest_offset = destination.ToStackSlotOffset(); 1696 const intptr_t dest_offset = destination.ToStackSlotOffset();
1693 __ LoadObject(TMP, source.constant()); 1697 __ LoadObject(TMP, constant);
1694 __ StoreToOffset(TMP, FP, dest_offset); 1698 __ StoreToOffset(TMP, FP, dest_offset);
1695 } 1699 }
1696 } 1700 }
1697 1701
1698 move->Eliminate(); 1702 move->Eliminate();
1699 } 1703 }
1700 1704
1701 1705
1702 void ParallelMoveResolver::EmitSwap(int index) { 1706 void ParallelMoveResolver::EmitSwap(int index) {
1703 MoveOperands* move = moves_[index]; 1707 MoveOperands* move = moves_[index];
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 __ AddImmediate(SP, kDoubleSize); 1851 __ AddImmediate(SP, kDoubleSize);
1848 } 1852 }
1849 1853
1850 1854
1851 #undef __ 1855 #undef __
1852 1856
1853 1857
1854 } // namespace dart 1858 } // namespace dart
1855 1859
1856 #endif // defined TARGET_ARCH_MIPS 1860 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698