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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
730 // Restore instantiator and its type arguments. | 730 // Restore instantiator and its type arguments. |
731 __ lw(A1, Address(SP, 0 * kWordSize)); | 731 __ lw(A1, Address(SP, 0 * kWordSize)); |
732 __ lw(A2, Address(SP, 1 * kWordSize)); | 732 __ lw(A2, Address(SP, 1 * kWordSize)); |
733 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 733 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
734 } | 734 } |
735 | 735 |
736 | 736 |
737 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { | 737 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
738 if (is_optimizing()) return; | 738 if (is_optimizing()) return; |
739 Definition* defn = instr->AsDefinition(); | 739 Definition* defn = instr->AsDefinition(); |
740 if ((defn != NULL) && defn->is_used()) { | 740 if ((defn != NULL) && defn->HasTemp()) { |
741 __ Push(defn->locs()->out(0).reg()); | 741 __ Push(defn->locs()->out(0).reg()); |
742 } | 742 } |
743 } | 743 } |
744 | 744 |
745 | 745 |
746 // Input parameters: | 746 // Input parameters: |
747 // S4: arguments descriptor array. | 747 // S4: arguments descriptor array. |
748 void FlowGraphCompiler::CopyParameters() { | 748 void FlowGraphCompiler::CopyParameters() { |
749 __ TraceSimMsg("CopyParameters"); | 749 __ TraceSimMsg("CopyParameters"); |
750 __ Comment("Copy parameters"); | 750 __ Comment("Copy parameters"); |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1865 __ AddImmediate(SP, kDoubleSize); | 1865 __ AddImmediate(SP, kDoubleSize); |
1866 } | 1866 } |
1867 | 1867 |
1868 | 1868 |
1869 #undef __ | 1869 #undef __ |
1870 | 1870 |
1871 | 1871 |
1872 } // namespace dart | 1872 } // namespace dart |
1873 | 1873 |
1874 #endif // defined TARGET_ARCH_MIPS | 1874 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |