| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 void InsertConversion(Representation from, | 126 void InsertConversion(Representation from, |
| 127 Representation to, | 127 Representation to, |
| 128 Value* use, | 128 Value* use, |
| 129 Instruction* insert_before, | 129 Instruction* insert_before, |
| 130 Instruction* deopt_target); | 130 Instruction* deopt_target); |
| 131 | 131 |
| 132 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; | 132 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; |
| 133 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; | 133 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; |
| 134 | 134 |
| 135 bool InlineFloat32x4Getter(InstanceCallInstr* call, |
| 136 MethodRecognizer::Kind getter); |
| 137 |
| 135 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 138 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 136 void InlineArrayLengthGetter(InstanceCallInstr* call, | 139 void InlineArrayLengthGetter(InstanceCallInstr* call, |
| 137 intptr_t length_offset, | 140 intptr_t length_offset, |
| 138 bool is_immutable, | 141 bool is_immutable, |
| 139 MethodRecognizer::Kind kind); | 142 MethodRecognizer::Kind kind); |
| 140 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); | 143 void InlineGrowableArrayCapacityGetter(InstanceCallInstr* call); |
| 141 void InlineStringLengthGetter(InstanceCallInstr* call); | 144 void InlineStringLengthGetter(InstanceCallInstr* call); |
| 142 void InlineStringIsEmptyGetter(InstanceCallInstr* call); | 145 void InlineStringIsEmptyGetter(InstanceCallInstr* call); |
| 143 | 146 |
| 144 RawBool* InstanceOfAsBool(const ICData& ic_data, | 147 RawBool* InstanceOfAsBool(const ICData& ic_data, |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // platform. | 318 // platform. |
| 316 class IfConverter : public AllStatic { | 319 class IfConverter : public AllStatic { |
| 317 public: | 320 public: |
| 318 static void Simplify(FlowGraph* flow_graph); | 321 static void Simplify(FlowGraph* flow_graph); |
| 319 }; | 322 }; |
| 320 | 323 |
| 321 | 324 |
| 322 } // namespace dart | 325 } // namespace dart |
| 323 | 326 |
| 324 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 327 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |