| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 708 __ popq(RCX); // Remove pushed instantiator. | 708 __ popq(RCX); // Remove pushed instantiator. |
| 709 } | 709 } |
| 710 | 710 |
| 711 | 711 |
| 712 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { | 712 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
| 713 if (is_optimizing()) { | 713 if (is_optimizing()) { |
| 714 return; | 714 return; |
| 715 } | 715 } |
| 716 Definition* defn = instr->AsDefinition(); | 716 Definition* defn = instr->AsDefinition(); |
| 717 if ((defn != NULL) && defn->is_used()) { | 717 if ((defn != NULL) && defn->is_used()) { |
| 718 Location value = defn->locs()->out(); | 718 Location value = defn->locs()->out(0); |
| 719 if (value.IsRegister()) { | 719 if (value.IsRegister()) { |
| 720 __ pushq(value.reg()); | 720 __ pushq(value.reg()); |
| 721 } else { | 721 } else { |
| 722 ASSERT(value.IsStackSlot()); | 722 ASSERT(value.IsStackSlot()); |
| 723 __ pushq(value.ToStackSlotAddress()); | 723 __ pushq(value.ToStackSlotAddress()); |
| 724 } | 724 } |
| 725 } | 725 } |
| 726 } | 726 } |
| 727 | 727 |
| 728 | 728 |
| (...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1838 __ movups(reg, Address(RSP, 0)); | 1838 __ movups(reg, Address(RSP, 0)); |
| 1839 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1839 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
| 1840 } | 1840 } |
| 1841 | 1841 |
| 1842 | 1842 |
| 1843 #undef __ | 1843 #undef __ |
| 1844 | 1844 |
| 1845 } // namespace dart | 1845 } // namespace dart |
| 1846 | 1846 |
| 1847 #endif // defined TARGET_ARCH_X64 | 1847 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |