| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 bool InlineFloat32x4Getter(InstanceCallInstr* call, | 150 bool InlineFloat32x4Getter(InstanceCallInstr* call, |
| 151 MethodRecognizer::Kind getter); | 151 MethodRecognizer::Kind getter); |
| 152 bool InlineUint32x4Getter(InstanceCallInstr* call, | 152 bool InlineUint32x4Getter(InstanceCallInstr* call, |
| 153 MethodRecognizer::Kind getter); | 153 MethodRecognizer::Kind getter); |
| 154 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, | 154 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, |
| 155 Token::Kind op_kind); | 155 Token::Kind op_kind); |
| 156 bool InlineUint32x4BinaryOp(InstanceCallInstr* call, | 156 bool InlineUint32x4BinaryOp(InstanceCallInstr* call, |
| 157 Token::Kind op_kind); | 157 Token::Kind op_kind); |
| 158 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 158 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 159 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); | |
| 160 void InlineStringIsEmptyGetter(InstanceCallInstr* call); | |
| 161 void InlineObjectCid(InstanceCallInstr* call); | |
| 162 | 159 |
| 163 RawBool* InstanceOfAsBool(const ICData& ic_data, | 160 RawBool* InstanceOfAsBool(const ICData& ic_data, |
| 164 const AbstractType& type) const; | 161 const AbstractType& type) const; |
| 165 | 162 |
| 166 void ReplaceWithMathCFunction(InstanceCallInstr* call, | 163 void ReplaceWithMathCFunction(InstanceCallInstr* call, |
| 167 MethodRecognizer::Kind recognized_kind); | 164 MethodRecognizer::Kind recognized_kind); |
| 168 | 165 |
| 169 void HandleComparison(ComparisonInstr* comp, | 166 void HandleComparison(ComparisonInstr* comp, |
| 170 const ICData& ic_data, | 167 const ICData& ic_data, |
| 171 Instruction* current_instruction); | 168 Instruction* current_instruction); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // Optimize spill stores inside try-blocks by identifying values that always | 370 // Optimize spill stores inside try-blocks by identifying values that always |
| 374 // contain a single known constant at catch block entry. | 371 // contain a single known constant at catch block entry. |
| 375 class TryCatchAnalyzer : public AllStatic { | 372 class TryCatchAnalyzer : public AllStatic { |
| 376 public: | 373 public: |
| 377 static void Optimize(FlowGraph* flow_graph); | 374 static void Optimize(FlowGraph* flow_graph); |
| 378 }; | 375 }; |
| 379 | 376 |
| 380 } // namespace dart | 377 } // namespace dart |
| 381 | 378 |
| 382 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 379 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |