| 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_AOT_OPTIMIZER_H_ | 5 #ifndef VM_AOT_OPTIMIZER_H_ |
| 6 #define VM_AOT_OPTIMIZER_H_ | 6 #define VM_AOT_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 bool TryReplaceWithIndexedOp(InstanceCallInstr* call); | 68 bool TryReplaceWithIndexedOp(InstanceCallInstr* call); |
| 69 | 69 |
| 70 | 70 |
| 71 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 71 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 72 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 72 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 73 | 73 |
| 74 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); | 74 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 75 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); | 75 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 76 | 76 |
| 77 bool TryInlineInstanceGetter(InstanceCallInstr* call, | 77 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 78 bool allow_check = true); | |
| 79 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 78 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 80 const ICData& unary_ic_data, | 79 const ICData& unary_ic_data); |
| 81 bool allow_check = true); | |
| 82 | 80 |
| 83 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 81 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 84 bool TryInlineFloat32x4Constructor(StaticCallInstr* call, | 82 bool TryInlineFloat32x4Constructor(StaticCallInstr* call, |
| 85 MethodRecognizer::Kind recognized_kind); | 83 MethodRecognizer::Kind recognized_kind); |
| 86 bool TryInlineFloat64x2Constructor(StaticCallInstr* call, | 84 bool TryInlineFloat64x2Constructor(StaticCallInstr* call, |
| 87 MethodRecognizer::Kind recognized_kind); | 85 MethodRecognizer::Kind recognized_kind); |
| 88 bool TryInlineInt32x4Constructor(StaticCallInstr* call, | 86 bool TryInlineInt32x4Constructor(StaticCallInstr* call, |
| 89 MethodRecognizer::Kind recognized_kind); | 87 MethodRecognizer::Kind recognized_kind); |
| 90 bool TryInlineFloat32x4Method(InstanceCallInstr* call, | 88 bool TryInlineFloat32x4Method(InstanceCallInstr* call, |
| 91 MethodRecognizer::Kind recognized_kind); | 89 MethodRecognizer::Kind recognized_kind); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 bool InlineFloat64x2Getter(InstanceCallInstr* call, | 133 bool InlineFloat64x2Getter(InstanceCallInstr* call, |
| 136 MethodRecognizer::Kind getter); | 134 MethodRecognizer::Kind getter); |
| 137 bool InlineInt32x4Getter(InstanceCallInstr* call, | 135 bool InlineInt32x4Getter(InstanceCallInstr* call, |
| 138 MethodRecognizer::Kind getter); | 136 MethodRecognizer::Kind getter); |
| 139 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, | 137 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, |
| 140 Token::Kind op_kind); | 138 Token::Kind op_kind); |
| 141 bool InlineInt32x4BinaryOp(InstanceCallInstr* call, | 139 bool InlineInt32x4BinaryOp(InstanceCallInstr* call, |
| 142 Token::Kind op_kind); | 140 Token::Kind op_kind); |
| 143 bool InlineFloat64x2BinaryOp(InstanceCallInstr* call, | 141 bool InlineFloat64x2BinaryOp(InstanceCallInstr* call, |
| 144 Token::Kind op_kind); | 142 Token::Kind op_kind); |
| 145 bool InlineImplicitInstanceGetter(InstanceCallInstr* call, bool allow_check); | 143 bool InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 146 | 144 |
| 147 RawBool* InstanceOfAsBool(const ICData& ic_data, | 145 RawBool* InstanceOfAsBool(const ICData& ic_data, |
| 148 const AbstractType& type, | 146 const AbstractType& type, |
| 149 ZoneGrowableArray<intptr_t>* results) const; | 147 ZoneGrowableArray<intptr_t>* results) const; |
| 150 | 148 |
| 151 void ReplaceWithMathCFunction(InstanceCallInstr* call, | 149 void ReplaceWithMathCFunction(InstanceCallInstr* call, |
| 152 MethodRecognizer::Kind recognized_kind); | 150 MethodRecognizer::Kind recognized_kind); |
| 153 | 151 |
| 154 void OptimizeLeftShiftBitAndSmiOp(Definition* bit_and_instr, | 152 void OptimizeLeftShiftBitAndSmiOp(Definition* bit_and_instr, |
| 155 Definition* left_instr, | 153 Definition* left_instr, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 179 | 177 |
| 180 GrowableArray<intptr_t>* inlining_black_list_; | 178 GrowableArray<intptr_t>* inlining_black_list_; |
| 181 | 179 |
| 182 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); | 180 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); |
| 183 }; | 181 }; |
| 184 | 182 |
| 185 | 183 |
| 186 } // namespace dart | 184 } // namespace dart |
| 187 | 185 |
| 188 #endif // VM_AOT_OPTIMIZER_H_ | 186 #endif // VM_AOT_OPTIMIZER_H_ |
| OLD | NEW |