OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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_DBC. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_DBC. |
6 #if defined(TARGET_ARCH_DBC) | 6 #if defined(TARGET_ARCH_DBC) |
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { | 125 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
126 if (!is_optimizing()) { | 126 if (!is_optimizing()) { |
127 Definition* defn = instr->AsDefinition(); | 127 Definition* defn = instr->AsDefinition(); |
128 if ((defn != NULL) && | 128 if ((defn != NULL) && |
129 (defn->tag() != Instruction::kPushArgument) && | 129 (defn->tag() != Instruction::kPushArgument) && |
130 (defn->tag() != Instruction::kStoreIndexed) && | 130 (defn->tag() != Instruction::kStoreIndexed) && |
131 (defn->tag() != Instruction::kStoreStaticField) && | 131 (defn->tag() != Instruction::kStoreStaticField) && |
132 (defn->tag() != Instruction::kStoreLocal) && | 132 (defn->tag() != Instruction::kStoreLocal) && |
133 (defn->tag() != Instruction::kStoreInstanceField) && | 133 (defn->tag() != Instruction::kStoreInstanceField) && |
134 (defn->tag() != Instruction::kDropTemps) && | 134 (defn->tag() != Instruction::kDropTemps) && |
135 (defn->tag() != Instruction::kPushTemp) && | |
136 !defn->HasTemp()) { | 135 !defn->HasTemp()) { |
137 __ Drop1(); | 136 __ Drop1(); |
138 } | 137 } |
139 } | 138 } |
140 } | 139 } |
141 | 140 |
142 | 141 |
143 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { | 142 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { |
144 __ Move(0, -(1 + kParamEndSlotFromFp)); | 143 __ Move(0, -(1 + kParamEndSlotFromFp)); |
145 __ LoadField(0, 0, offset / kWordSize); | 144 __ LoadField(0, 0, offset / kWordSize); |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 321 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
323 UNIMPLEMENTED(); | 322 UNIMPLEMENTED(); |
324 } | 323 } |
325 | 324 |
326 | 325 |
327 #undef __ | 326 #undef __ |
328 | 327 |
329 } // namespace dart | 328 } // namespace dart |
330 | 329 |
331 #endif // defined TARGET_ARCH_DBC | 330 #endif // defined TARGET_ARCH_DBC |
OLD | NEW |