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/flow_graph_builder.h" | 5 #include "vm/flow_graph_builder.h" |
6 | 6 |
7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
8 #include "vm/ast_printer.h" | 8 #include "vm/ast_printer.h" |
9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
10 #include "vm/class_finalizer.h" | 10 #include "vm/class_finalizer.h" |
(...skipping 4310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4321 for_finally_block.Goto(after_finally); | 4321 for_finally_block.Goto(after_finally); |
4322 for_finally_block.exit_ = after_finally; | 4322 for_finally_block.exit_ = after_finally; |
4323 } | 4323 } |
4324 | 4324 |
4325 Goto(finally_entry); | 4325 Goto(finally_entry); |
4326 AppendFragment(finally_entry, for_finally_block); | 4326 AppendFragment(finally_entry, for_finally_block); |
4327 exit_ = for_finally_block.exit_; | 4327 exit_ = for_finally_block.exit_; |
4328 } | 4328 } |
4329 | 4329 |
4330 | 4330 |
| 4331 void EffectGraphVisitor::VisitStopNode(StopNode* node) { |
| 4332 AddInstruction(new(Z) StopInstr(node->message())); |
| 4333 } |
| 4334 |
| 4335 |
4331 FlowGraph* FlowGraphBuilder::BuildGraph() { | 4336 FlowGraph* FlowGraphBuilder::BuildGraph() { |
4332 if (FLAG_print_ast) { | 4337 if (FLAG_print_ast) { |
4333 // Print the function ast before IL generation. | 4338 // Print the function ast before IL generation. |
4334 AstPrinter::PrintFunctionNodes(parsed_function()); | 4339 AstPrinter::PrintFunctionNodes(parsed_function()); |
4335 } | 4340 } |
4336 if (FLAG_print_scopes) { | 4341 if (FLAG_print_scopes) { |
4337 AstPrinter::PrintFunctionScope(parsed_function()); | 4342 AstPrinter::PrintFunctionScope(parsed_function()); |
4338 } | 4343 } |
4339 TargetEntryInstr* normal_entry = | 4344 TargetEntryInstr* normal_entry = |
4340 new(Z) TargetEntryInstr(AllocateBlockId(), | 4345 new(Z) TargetEntryInstr(AllocateBlockId(), |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4374 Report::MessageF(Report::kBailout, | 4379 Report::MessageF(Report::kBailout, |
4375 Script::Handle(function.script()), | 4380 Script::Handle(function.script()), |
4376 function.token_pos(), | 4381 function.token_pos(), |
4377 "FlowGraphBuilder Bailout: %s %s", | 4382 "FlowGraphBuilder Bailout: %s %s", |
4378 String::Handle(function.name()).ToCString(), | 4383 String::Handle(function.name()).ToCString(), |
4379 reason); | 4384 reason); |
4380 UNREACHABLE(); | 4385 UNREACHABLE(); |
4381 } | 4386 } |
4382 | 4387 |
4383 } // namespace dart | 4388 } // namespace dart |
OLD | NEW |