| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 MethodRecognizer::Kind getter); | 148 MethodRecognizer::Kind getter); |
| 149 | 149 |
| 150 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 150 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 151 void InlineArrayLengthGetter(InstanceCallInstr* call, | 151 void InlineArrayLengthGetter(InstanceCallInstr* call, |
| 152 intptr_t length_offset, | 152 intptr_t length_offset, |
| 153 bool is_immutable, | 153 bool is_immutable, |
| 154 MethodRecognizer::Kind kind); | 154 MethodRecognizer::Kind kind); |
| 155 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); | 155 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); |
| 156 void InlineStringLengthGetter(InstanceCallInstr* call); | 156 void InlineStringLengthGetter(InstanceCallInstr* call); |
| 157 void InlineStringIsEmptyGetter(InstanceCallInstr* call); | 157 void InlineStringIsEmptyGetter(InstanceCallInstr* call); |
| 158 void InlineObjectCid(InstanceCallInstr* call); |
| 158 | 159 |
| 159 RawBool* InstanceOfAsBool(const ICData& ic_data, | 160 RawBool* InstanceOfAsBool(const ICData& ic_data, |
| 160 const AbstractType& type) const; | 161 const AbstractType& type) const; |
| 161 | 162 |
| 162 void ReplaceWithMathCFunction(InstanceCallInstr* call, | 163 void ReplaceWithMathCFunction(InstanceCallInstr* call, |
| 163 MethodRecognizer::Kind recognized_kind); | 164 MethodRecognizer::Kind recognized_kind); |
| 164 | 165 |
| 165 void HandleRelationalOp(RelationalOpInstr* comp); | 166 void HandleRelationalOp(RelationalOpInstr* comp); |
| 166 | 167 |
| 167 // Visit an equality compare. The current instruction can be the | 168 // Visit an equality compare. The current instruction can be the |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 // Optimize spill stores inside try-blocks by identifying values that always | 356 // Optimize spill stores inside try-blocks by identifying values that always |
| 356 // contain a single known constant at catch block entry. | 357 // contain a single known constant at catch block entry. |
| 357 class TryCatchAnalyzer : public AllStatic { | 358 class TryCatchAnalyzer : public AllStatic { |
| 358 public: | 359 public: |
| 359 static void Optimize(FlowGraph* flow_graph); | 360 static void Optimize(FlowGraph* flow_graph); |
| 360 }; | 361 }; |
| 361 | 362 |
| 362 } // namespace dart | 363 } // namespace dart |
| 363 | 364 |
| 364 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 365 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |