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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 539073002: Fixes for ARM/ARM64/MIPS parallel move resolver. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) { 1714 void ParallelMoveResolver::Exchange(const Address& mem1, const Address& mem2) {
1715 ScratchRegisterScope ensure_scratch1(this, kNoRegister); 1715 ScratchRegisterScope ensure_scratch1(this, kNoRegister);
1716 ScratchRegisterScope ensure_scratch2(this, ensure_scratch1.reg()); 1716 ScratchRegisterScope ensure_scratch2(this, ensure_scratch1.reg());
1717 __ movl(ensure_scratch1.reg(), mem1); 1717 __ movl(ensure_scratch1.reg(), mem1);
1718 __ movl(ensure_scratch2.reg(), mem2); 1718 __ movl(ensure_scratch2.reg(), mem2);
1719 __ movl(mem2, ensure_scratch1.reg()); 1719 __ movl(mem2, ensure_scratch1.reg());
1720 __ movl(mem1, ensure_scratch2.reg()); 1720 __ movl(mem1, ensure_scratch2.reg());
1721 } 1721 }
1722 1722
1723 1723
1724 void ParallelMoveResolver::Exchange(Register reg, intptr_t stack_offset) { 1724 void ParallelMoveResolver::Exchange(Register reg,
1725 Register base_reg,
1726 intptr_t stack_offset) {
1725 UNREACHABLE(); 1727 UNREACHABLE();
1726 } 1728 }
1727 1729
1728 1730
1729 void ParallelMoveResolver::Exchange(intptr_t stack_offset1, 1731 void ParallelMoveResolver::Exchange(Register base_reg1,
1732 intptr_t stack_offset1,
1733 Register base_reg2,
1730 intptr_t stack_offset2) { 1734 intptr_t stack_offset2) {
1731 UNREACHABLE(); 1735 UNREACHABLE();
1732 } 1736 }
1733 1737
1734 1738
1735 void ParallelMoveResolver::SpillScratch(Register reg) { 1739 void ParallelMoveResolver::SpillScratch(Register reg) {
1736 __ pushl(reg); 1740 __ pushl(reg);
1737 } 1741 }
1738 1742
1739 1743
(...skipping 12 matching lines...) Expand all
1752 __ movups(reg, Address(ESP, 0)); 1756 __ movups(reg, Address(ESP, 0));
1753 __ addl(ESP, Immediate(kFpuRegisterSize)); 1757 __ addl(ESP, Immediate(kFpuRegisterSize));
1754 } 1758 }
1755 1759
1756 1760
1757 #undef __ 1761 #undef __
1758 1762
1759 } // namespace dart 1763 } // namespace dart
1760 1764
1761 #endif // defined TARGET_ARCH_IA32 1765 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698