| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 | 103 |
| 104 bool FlowGraphCompiler::IsLeaf() const { | 104 bool FlowGraphCompiler::IsLeaf() const { |
| 105 return is_dart_leaf_ && | 105 return is_dart_leaf_ && |
| 106 !parsed_function_.function().IsClosureFunction() && | 106 !parsed_function_.function().IsClosureFunction() && |
| 107 (parsed_function().copied_parameter_count() == 0); | 107 (parsed_function().copied_parameter_count() == 0); |
| 108 } | 108 } |
| 109 | 109 |
| 110 | 110 |
| 111 bool FlowGraphCompiler::HasFinally() const { |
| 112 return parsed_function().function().has_finally(); |
| 113 } |
| 114 |
| 115 |
| 111 void FlowGraphCompiler::InitCompiler() { | 116 void FlowGraphCompiler::InitCompiler() { |
| 112 pc_descriptors_list_ = new DescriptorList(64); | 117 pc_descriptors_list_ = new DescriptorList(64); |
| 113 exception_handlers_list_ = new ExceptionHandlerList(); | 118 exception_handlers_list_ = new ExceptionHandlerList(); |
| 114 block_info_.Clear(); | 119 block_info_.Clear(); |
| 115 for (int i = 0; i < block_order_.length(); ++i) { | 120 for (int i = 0; i < block_order_.length(); ++i) { |
| 116 block_info_.Add(new BlockInfo()); | 121 block_info_.Add(new BlockInfo()); |
| 117 } | 122 } |
| 118 } | 123 } |
| 119 | 124 |
| 120 | 125 |
| (...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 847 return; | 852 return; |
| 848 } | 853 } |
| 849 } | 854 } |
| 850 | 855 |
| 851 // This move is not blocked. | 856 // This move is not blocked. |
| 852 EmitMove(index); | 857 EmitMove(index); |
| 853 } | 858 } |
| 854 | 859 |
| 855 | 860 |
| 856 } // namespace dart | 861 } // namespace dart |
| OLD | NEW |