| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 Definition* def, | 88 Definition* def, |
| 89 Instruction* deopt_target); | 89 Instruction* deopt_target); |
| 90 | 90 |
| 91 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; | 91 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; |
| 92 | 92 |
| 93 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 93 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 94 void InlineArrayLengthGetter(InstanceCallInstr* call, | 94 void InlineArrayLengthGetter(InstanceCallInstr* call, |
| 95 intptr_t length_offset, | 95 intptr_t length_offset, |
| 96 bool is_immutable, | 96 bool is_immutable, |
| 97 MethodRecognizer::Kind kind); | 97 MethodRecognizer::Kind kind); |
| 98 void InlineGArrayCapacityGetter(InstanceCallInstr* call); | 98 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); |
| 99 void InlineStringLengthGetter(InstanceCallInstr* call); | 99 void InlineStringLengthGetter(InstanceCallInstr* call); |
| 100 void InlineStringIsEmptyGetter(InstanceCallInstr* call); | 100 void InlineStringIsEmptyGetter(InstanceCallInstr* call); |
| 101 | 101 |
| 102 FlowGraph* flow_graph_; | 102 FlowGraph* flow_graph_; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); | 104 DISALLOW_COPY_AND_ASSIGN(FlowGraphOptimizer); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 | 107 |
| 108 class ParsedFunction; | 108 class ParsedFunction; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 // Worklists of blocks and definitions. | 230 // Worklists of blocks and definitions. |
| 231 GrowableArray<BlockEntryInstr*> block_worklist_; | 231 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 232 GrowableArray<Definition*> definition_worklist_; | 232 GrowableArray<Definition*> definition_worklist_; |
| 233 }; | 233 }; |
| 234 | 234 |
| 235 | 235 |
| 236 } // namespace dart | 236 } // namespace dart |
| 237 | 237 |
| 238 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 238 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |