| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 Environment* env, | 55 Environment* env, |
| 56 FlowGraph::UseKind use_kind) { | 56 FlowGraph::UseKind use_kind) { |
| 57 flow_graph_->InsertBefore(next, instr, env, use_kind); | 57 flow_graph_->InsertBefore(next, instr, env, use_kind); |
| 58 } | 58 } |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 // Attempt to build ICData for call using propagated class-ids. | 61 // Attempt to build ICData for call using propagated class-ids. |
| 62 bool TryCreateICData(InstanceCallInstr* call); | 62 bool TryCreateICData(InstanceCallInstr* call); |
| 63 const ICData& TrySpecializeICData(const ICData& ic_data, intptr_t cid); | 63 const ICData& TrySpecializeICData(const ICData& ic_data, intptr_t cid); |
| 64 | 64 |
| 65 void SpecializePolymorphicInstanceCall(PolymorphicInstanceCallInstr* call); | |
| 66 | |
| 67 bool TryReplaceWithIndexedOp(InstanceCallInstr* call); | 65 bool TryReplaceWithIndexedOp(InstanceCallInstr* call); |
| 68 | 66 |
| 69 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 67 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 70 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 68 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 71 | 69 |
| 72 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); | 70 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 73 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); | 71 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 74 | 72 |
| 75 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 73 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 76 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 74 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 171 |
| 174 GrowableArray<intptr_t>* inlining_black_list_; | 172 GrowableArray<intptr_t>* inlining_black_list_; |
| 175 | 173 |
| 176 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); | 174 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); |
| 177 }; | 175 }; |
| 178 | 176 |
| 179 | 177 |
| 180 } // namespace dart | 178 } // namespace dart |
| 181 | 179 |
| 182 #endif // VM_AOT_OPTIMIZER_H_ | 180 #endif // VM_AOT_OPTIMIZER_H_ |
| OLD | NEW |