OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
6 | 6 |
7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
8 | 8 |
9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
10 #include "vm/debugger.h" | 10 #include "vm/debugger.h" |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { | 165 for (ForwardInstructionIterator it(entry); !it.Done(); it.Advance()) { |
166 Instruction* instr = it.Current(); | 166 Instruction* instr = it.Current(); |
167 if (FLAG_code_comments) EmitComment(instr); | 167 if (FLAG_code_comments) EmitComment(instr); |
168 if (instr->IsParallelMove()) { | 168 if (instr->IsParallelMove()) { |
169 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove()); | 169 parallel_move_resolver_.EmitNativeCode(instr->AsParallelMove()); |
170 } else { | 170 } else { |
171 ASSERT(instr->locs() != NULL); | 171 ASSERT(instr->locs() != NULL); |
172 EmitInstructionPrologue(instr); | 172 EmitInstructionPrologue(instr); |
173 pending_deoptimization_env_ = instr->env(); | 173 pending_deoptimization_env_ = instr->env(); |
174 instr->EmitNativeCode(this); | 174 instr->EmitNativeCode(this); |
175 EmitInstructionEpilogue(instr); | |
176 } | 175 } |
177 } | 176 } |
178 } | 177 } |
179 set_current_block(NULL); | 178 set_current_block(NULL); |
180 } | 179 } |
181 | 180 |
182 | 181 |
183 void FlowGraphCompiler::Bailout(const char* reason) { | 182 void FlowGraphCompiler::Bailout(const char* reason) { |
184 const char* kFormat = "FlowGraphCompiler Bailout: %s %s."; | 183 const char* kFormat = "FlowGraphCompiler Bailout: %s %s."; |
185 const char* function_name = parsed_function().function().ToCString(); | 184 const char* function_name = parsed_function().function().ToCString(); |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 return; | 800 return; |
802 } | 801 } |
803 } | 802 } |
804 | 803 |
805 // This move is not blocked. | 804 // This move is not blocked. |
806 EmitMove(index); | 805 EmitMove(index); |
807 } | 806 } |
808 | 807 |
809 | 808 |
810 } // namespace dart | 809 } // namespace dart |
OLD | NEW |