| 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 "vm/ast_printer.h" | 7 #include "vm/ast_printer.h" |
| 8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/code_descriptors.h" | 9 #include "vm/code_descriptors.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2368 // Print flow graph to stdout. | 2368 // Print flow graph to stdout. |
| 2369 FlowGraphPrinter printer(function, reverse_postorder); | 2369 FlowGraphPrinter printer(function, reverse_postorder); |
| 2370 printer.PrintBlocks(); | 2370 printer.PrintBlocks(); |
| 2371 } | 2371 } |
| 2372 if (Dart::flow_graph_writer() != NULL) { | 2372 if (Dart::flow_graph_writer() != NULL) { |
| 2373 // Write flow graph to file. | 2373 // Write flow graph to file. |
| 2374 FlowGraphVisualizer printer(function, reverse_postorder); | 2374 FlowGraphVisualizer printer(function, reverse_postorder); |
| 2375 printer.PrintFunction(); | 2375 printer.PrintFunction(); |
| 2376 } | 2376 } |
| 2377 } | 2377 } |
| 2378 | |
| 2379 if (for_optimized && FLAG_use_ssa) { | |
| 2380 Bailout("No SSA code generation support."); | |
| 2381 } | |
| 2382 } | 2378 } |
| 2383 | 2379 |
| 2384 | 2380 |
| 2385 // Compute immediate dominators and the dominance frontier for each basic | 2381 // Compute immediate dominators and the dominance frontier for each basic |
| 2386 // block. As a side effect of the algorithm, sets the immediate dominator | 2382 // block. As a side effect of the algorithm, sets the immediate dominator |
| 2387 // of each basic block. | 2383 // of each basic block. |
| 2388 // | 2384 // |
| 2389 // preorder: an input list of basic block entries in preorder. The | 2385 // preorder: an input list of basic block entries in preorder. The |
| 2390 // algorithm relies on the block ordering. | 2386 // algorithm relies on the block ordering. |
| 2391 // | 2387 // |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2733 char* chars = reinterpret_cast<char*>( | 2729 char* chars = reinterpret_cast<char*>( |
| 2734 Isolate::Current()->current_zone()->Allocate(len)); | 2730 Isolate::Current()->current_zone()->Allocate(len)); |
| 2735 OS::SNPrint(chars, len, kFormat, function_name, reason); | 2731 OS::SNPrint(chars, len, kFormat, function_name, reason); |
| 2736 const Error& error = Error::Handle( | 2732 const Error& error = Error::Handle( |
| 2737 LanguageError::New(String::Handle(String::New(chars)))); | 2733 LanguageError::New(String::Handle(String::New(chars)))); |
| 2738 Isolate::Current()->long_jump_base()->Jump(1, error); | 2734 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 2739 } | 2735 } |
| 2740 | 2736 |
| 2741 | 2737 |
| 2742 } // namespace dart | 2738 } // namespace dart |
| OLD | NEW |