| 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_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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 __ lw(A1, Address(SP, 0 * kWordSize)); | 722 __ lw(A1, Address(SP, 0 * kWordSize)); |
| 723 __ lw(A2, Address(SP, 1 * kWordSize)); | 723 __ lw(A2, Address(SP, 1 * kWordSize)); |
| 724 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 724 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| 725 } | 725 } |
| 726 | 726 |
| 727 | 727 |
| 728 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { | 728 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
| 729 if (is_optimizing()) return; | 729 if (is_optimizing()) return; |
| 730 Definition* defn = instr->AsDefinition(); | 730 Definition* defn = instr->AsDefinition(); |
| 731 if ((defn != NULL) && defn->is_used()) { | 731 if ((defn != NULL) && defn->is_used()) { |
| 732 __ Push(defn->locs()->out().reg()); | 732 __ Push(defn->locs()->out(0).reg()); |
| 733 } | 733 } |
| 734 } | 734 } |
| 735 | 735 |
| 736 | 736 |
| 737 // Input parameters: | 737 // Input parameters: |
| 738 // S4: arguments descriptor array. | 738 // S4: arguments descriptor array. |
| 739 void FlowGraphCompiler::CopyParameters() { | 739 void FlowGraphCompiler::CopyParameters() { |
| 740 __ TraceSimMsg("CopyParameters"); | 740 __ TraceSimMsg("CopyParameters"); |
| 741 __ Comment("Copy parameters"); | 741 __ Comment("Copy parameters"); |
| 742 const Function& function = parsed_function().function(); | 742 const Function& function = parsed_function().function(); |
| (...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1857 __ AddImmediate(SP, kDoubleSize); | 1857 __ AddImmediate(SP, kDoubleSize); |
| 1858 } | 1858 } |
| 1859 | 1859 |
| 1860 | 1860 |
| 1861 #undef __ | 1861 #undef __ |
| 1862 | 1862 |
| 1863 | 1863 |
| 1864 } // namespace dart | 1864 } // namespace dart |
| 1865 | 1865 |
| 1866 #endif // defined TARGET_ARCH_MIPS | 1866 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |