| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |