| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 94 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 95 void InlineArrayLengthGetter(InstanceCallInstr* call, | 95 void InlineArrayLengthGetter(InstanceCallInstr* call, |
| 96 intptr_t length_offset, | 96 intptr_t length_offset, |
| 97 bool is_immutable, | 97 bool is_immutable, |
| 98 MethodRecognizer::Kind kind); | 98 MethodRecognizer::Kind kind); |
| 99 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); | 99 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); |
| 100 void InlineStringLengthGetter(InstanceCallInstr* call); | 100 void InlineStringLengthGetter(InstanceCallInstr* call); |
| 101 void InlineStringIsEmptyGetter(InstanceCallInstr* call); | 101 void InlineStringIsEmptyGetter(InstanceCallInstr* call); |
| 102 | 102 |
| 103 RawBool* InstanceOfAsBool(const ICData& ic_data, |
| 104 const AbstractType& type) const; |
| 105 |
| 106 |
| 103 FlowGraph* flow_graph_; | 107 FlowGraph* flow_graph_; |
| 104 | 108 |
| 105 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); | 109 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); |
| 106 }; | 110 }; |
| 107 | 111 |
| 108 | 112 |
| 109 class ParsedFunction; | 113 class ParsedFunction; |
| 110 | 114 |
| 111 | 115 |
| 112 class FlowGraphTypePropagator : public FlowGraphVisitor { | 116 class FlowGraphTypePropagator : public FlowGraphVisitor { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 235 |
| 232 // Worklists of blocks and definitions. | 236 // Worklists of blocks and definitions. |
| 233 GrowableArray<BlockEntryInstr*> block_worklist_; | 237 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 234 GrowableArray<Definition*> definition_worklist_; | 238 GrowableArray<Definition*> definition_worklist_; |
| 235 }; | 239 }; |
| 236 | 240 |
| 237 | 241 |
| 238 } // namespace dart | 242 } // namespace dart |
| 239 | 243 |
| 240 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 244 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |