| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 MethodRecognizer::Kind getter); | 142 MethodRecognizer::Kind getter); |
| 143 | 143 |
| 144 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 144 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 145 void InlineArrayLengthGetter(InstanceCallInstr* call, | 145 void InlineArrayLengthGetter(InstanceCallInstr* call, |
| 146 intptr_t length_offset, | 146 intptr_t length_offset, |
| 147 bool is_immutable, | 147 bool is_immutable, |
| 148 MethodRecognizer::Kind kind); | 148 MethodRecognizer::Kind kind); |
| 149 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); | 149 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); |
| 150 void InlineStringLengthGetter(InstanceCallInstr* call); | 150 void InlineStringLengthGetter(InstanceCallInstr* call); |
| 151 void InlineStringIsEmptyGetter(InstanceCallInstr* call); | 151 void InlineStringIsEmptyGetter(InstanceCallInstr* call); |
| 152 void InlineObjectCid(InstanceCallInstr* call); |
| 152 | 153 |
| 153 RawBool* InstanceOfAsBool(const ICData& ic_data, | 154 RawBool* InstanceOfAsBool(const ICData& ic_data, |
| 154 const AbstractType& type) const; | 155 const AbstractType& type) const; |
| 155 | 156 |
| 156 void ReplaceWithMathCFunction(InstanceCallInstr* call, | 157 void ReplaceWithMathCFunction(InstanceCallInstr* call, |
| 157 MethodRecognizer::Kind recognized_kind); | 158 MethodRecognizer::Kind recognized_kind); |
| 158 | 159 |
| 159 void HandleRelationalOp(RelationalOpInstr* comp); | 160 void HandleRelationalOp(RelationalOpInstr* comp); |
| 160 | 161 |
| 161 // Visit an equality compare. The current instruction can be the | 162 // Visit an equality compare. The current instruction can be the |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 const ZoneGrowableArray<const Field*>& fields); | 342 const ZoneGrowableArray<const Field*>& fields); |
| 342 | 343 |
| 343 FlowGraph* flow_graph_; | 344 FlowGraph* flow_graph_; |
| 344 | 345 |
| 345 GrowableArray<MaterializeObjectInstr*> materializations_; | 346 GrowableArray<MaterializeObjectInstr*> materializations_; |
| 346 }; | 347 }; |
| 347 | 348 |
| 348 } // namespace dart | 349 } // namespace dart |
| 349 | 350 |
| 350 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 351 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |