| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); | 72 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 73 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); | 73 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 74 | 74 |
| 75 bool TryInlineFieldAccess(InstanceCallInstr* call); | 75 bool TryInlineFieldAccess(InstanceCallInstr* call); |
| 76 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 76 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 77 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 77 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 78 const ICData& unary_ic_data); | 78 const ICData& unary_ic_data); |
| 79 | 79 |
| 80 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 80 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 81 bool TryInlineFloat32x4Constructor(StaticCallInstr* call, | |
| 82 MethodRecognizer::Kind recognized_kind); | |
| 83 bool TryInlineFloat64x2Constructor(StaticCallInstr* call, | |
| 84 MethodRecognizer::Kind recognized_kind); | |
| 85 bool TryInlineInt32x4Constructor(StaticCallInstr* call, | |
| 86 MethodRecognizer::Kind recognized_kind); | |
| 87 bool TryInlineFloat32x4Method(InstanceCallInstr* call, | |
| 88 MethodRecognizer::Kind recognized_kind); | |
| 89 bool TryInlineFloat64x2Method(InstanceCallInstr* call, | |
| 90 MethodRecognizer::Kind recognized_kind); | |
| 91 bool TryInlineInt32x4Method(InstanceCallInstr* call, | |
| 92 MethodRecognizer::Kind recognized_kind); | |
| 93 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 81 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 94 bool TypeCheckAsClassEquality(const AbstractType& type); | 82 bool TypeCheckAsClassEquality(const AbstractType& type); |
| 95 void ReplaceWithTypeCast(InstanceCallInstr* instr); | 83 void ReplaceWithTypeCast(InstanceCallInstr* instr); |
| 96 | 84 |
| 97 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call); | 85 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call); |
| 98 | 86 |
| 99 // Insert a check of 'to_check' determined by 'unary_checks'. If the | 87 // Insert a check of 'to_check' determined by 'unary_checks'. If the |
| 100 // check fails it will deoptimize to 'deopt_id' using the deoptimization | 88 // check fails it will deoptimize to 'deopt_id' using the deoptimization |
| 101 // environment 'deopt_environment'. The check is inserted immediately | 89 // environment 'deopt_environment'. The check is inserted immediately |
| 102 // before 'insert_before'. | 90 // before 'insert_before'. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 162 |
| 175 GrowableArray<intptr_t>* inlining_black_list_; | 163 GrowableArray<intptr_t>* inlining_black_list_; |
| 176 | 164 |
| 177 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); | 165 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); |
| 178 }; | 166 }; |
| 179 | 167 |
| 180 | 168 |
| 181 } // namespace dart | 169 } // namespace dart |
| 182 | 170 |
| 183 #endif // VM_AOT_OPTIMIZER_H_ | 171 #endif // VM_AOT_OPTIMIZER_H_ |
| OLD | NEW |