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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 Environment* deopt_environment, | 99 Environment* deopt_environment, |
100 Instruction* insert_before); | 100 Instruction* insert_before); |
101 | 101 |
102 // Add a class check for a call's first argument immediately before the | 102 // Add a class check for a call's first argument immediately before the |
103 // call, using the call's IC data to determine the check, and the call's | 103 // call, using the call's IC data to determine the check, and the call's |
104 // deopt ID and deoptimization environment if the check fails. | 104 // deopt ID and deoptimization environment if the check fails. |
105 void AddReceiverCheck(InstanceCallInstr* call); | 105 void AddReceiverCheck(InstanceCallInstr* call); |
106 | 106 |
107 void ReplaceCall(Definition* call, Definition* replacement); | 107 void ReplaceCall(Definition* call, Definition* replacement); |
108 | 108 |
109 | |
110 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call, | 109 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call, |
111 RawFunction::Kind kind) const; | 110 RawFunction::Kind kind) const; |
112 | 111 |
113 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, | 112 bool InlineFloat32x4BinaryOp(InstanceCallInstr* call, |
114 Token::Kind op_kind); | 113 Token::Kind op_kind); |
115 bool InlineInt32x4BinaryOp(InstanceCallInstr* call, | 114 bool InlineInt32x4BinaryOp(InstanceCallInstr* call, |
116 Token::Kind op_kind); | 115 Token::Kind op_kind); |
117 bool InlineFloat64x2BinaryOp(InstanceCallInstr* call, | 116 bool InlineFloat64x2BinaryOp(InstanceCallInstr* call, |
118 Token::Kind op_kind); | 117 Token::Kind op_kind); |
119 bool InlineImplicitInstanceGetter(InstanceCallInstr* call); | 118 bool InlineImplicitInstanceGetter(InstanceCallInstr* call); |
(...skipping 23 matching lines...) Expand all Loading... |
143 | 142 |
144 GrowableArray<intptr_t>* inlining_black_list_; | 143 GrowableArray<intptr_t>* inlining_black_list_; |
145 | 144 |
146 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); | 145 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); |
147 }; | 146 }; |
148 | 147 |
149 | 148 |
150 } // namespace dart | 149 } // namespace dart |
151 | 150 |
152 #endif // VM_AOT_OPTIMIZER_H_ | 151 #endif // VM_AOT_OPTIMIZER_H_ |
OLD | NEW |