| 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 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_ | 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_ |
| 6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ | 6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 #include "vm/flow_graph.h" | 9 #include "vm/flow_graph.h" |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 intptr_t length_offset, | 99 intptr_t length_offset, |
| 100 bool is_immutable, | 100 bool is_immutable, |
| 101 MethodRecognizer::Kind kind); | 101 MethodRecognizer::Kind kind); |
| 102 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); | 102 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); |
| 103 void InlineStringLengthGetter(InstanceCallInstr* call); | 103 void InlineStringLengthGetter(InstanceCallInstr* call); |
| 104 void InlineStringIsEmptyGetter(InstanceCallInstr* call); | 104 void InlineStringIsEmptyGetter(InstanceCallInstr* call); |
| 105 | 105 |
| 106 RawBool* InstanceOfAsBool(const ICData& ic_data, | 106 RawBool* InstanceOfAsBool(const ICData& ic_data, |
| 107 const AbstractType& type) const; | 107 const AbstractType& type) const; |
| 108 | 108 |
| 109 void ReplaceWithMathCFunction(InstanceCallInstr* call, |
| 110 MethodRecognizer::Kind recognized_kind); |
| 109 | 111 |
| 110 FlowGraph* flow_graph_; | 112 FlowGraph* flow_graph_; |
| 111 | 113 |
| 112 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); | 114 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 | 117 |
| 116 class ParsedFunction; | 118 class ParsedFunction; |
| 117 | 119 |
| 118 | 120 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 240 |
| 239 // Worklists of blocks and definitions. | 241 // Worklists of blocks and definitions. |
| 240 GrowableArray<BlockEntryInstr*> block_worklist_; | 242 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 241 GrowableArray<Definition*> definition_worklist_; | 243 GrowableArray<Definition*> definition_worklist_; |
| 242 }; | 244 }; |
| 243 | 245 |
| 244 | 246 |
| 245 } // namespace dart | 247 } // namespace dart |
| 246 | 248 |
| 247 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 249 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |