Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: runtime/vm/flow_graph_compiler_dbc.cc

Issue 1950553002: VM: Remove PushTempInstr, simplify SSA renaming. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698