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

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

Issue 207063002: Refactor to support multiple outputs in location summary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 __ popl(ECX); // Remove pushed instantiator. 727 __ popl(ECX); // Remove pushed instantiator.
728 } 728 }
729 729
730 730
731 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { 731 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) {
732 if (is_optimizing()) { 732 if (is_optimizing()) {
733 return; 733 return;
734 } 734 }
735 Definition* defn = instr->AsDefinition(); 735 Definition* defn = instr->AsDefinition();
736 if ((defn != NULL) && defn->is_used()) { 736 if ((defn != NULL) && defn->is_used()) {
737 Location value = defn->locs()->out(); 737 Location value = defn->locs()->out(0);
738 if (value.IsRegister()) { 738 if (value.IsRegister()) {
739 __ pushl(value.reg()); 739 __ pushl(value.reg());
740 } else { 740 } else {
741 ASSERT(value.IsStackSlot()); 741 ASSERT(value.IsStackSlot());
742 __ pushl(value.ToStackSlotAddress()); 742 __ pushl(value.ToStackSlotAddress());
743 } 743 }
744 } 744 }
745 } 745 }
746 746
747 747
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 __ movups(reg, Address(ESP, 0)); 1818 __ movups(reg, Address(ESP, 0));
1819 __ addl(ESP, Immediate(kFpuRegisterSize)); 1819 __ addl(ESP, Immediate(kFpuRegisterSize));
1820 } 1820 }
1821 1821
1822 1822
1823 #undef __ 1823 #undef __
1824 1824
1825 } // namespace dart 1825 } // namespace dart
1826 1826
1827 #endif // defined TARGET_ARCH_IA32 1827 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698