Chromium Code Reviews| 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 RUNTIME_VM_JIT_OPTIMIZER_H_ | 5 #ifndef RUNTIME_VM_JIT_OPTIMIZER_H_ |
| 6 #define RUNTIME_VM_JIT_OPTIMIZER_H_ | 6 #define RUNTIME_VM_JIT_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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 } | 45 } |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // Attempt to build ICData for call using propagated class-ids. | 48 // Attempt to build ICData for call using propagated class-ids. |
| 49 bool TryCreateICData(InstanceCallInstr* call); | 49 bool TryCreateICData(InstanceCallInstr* call); |
| 50 | 50 |
| 51 void SpecializePolymorphicInstanceCall(PolymorphicInstanceCallInstr* call); | 51 void SpecializePolymorphicInstanceCall(PolymorphicInstanceCallInstr* call); |
| 52 | 52 |
| 53 bool TryReplaceWithIndexedOp(InstanceCallInstr* call); | 53 bool TryReplaceWithIndexedOp(InstanceCallInstr* call); |
| 54 | 54 |
| 55 void TryExpandClassesInIC(const ICData& ic_data); | |
|
Vyacheslav Egorov (Google)
2017/03/10 10:31:31
InICData
erikcorry
2017/03/10 13:30:01
Done.
| |
| 56 bool LookupMethodFor(int class_id, | |
| 57 const ArgumentsDescriptor& args_desc, | |
| 58 const String& name, | |
| 59 Function* fn_return); | |
| 60 bool TryAddClass(const ICData& ic_data, | |
|
Vyacheslav Egorov (Google)
2017/03/10 10:31:31
TryAddCheck?
erikcorry
2017/03/10 13:30:01
Done.
| |
| 61 const Function& match, | |
| 62 int class_id, | |
| 63 const ArgumentsDescriptor& args_desc, | |
| 64 const String& name); | |
| 55 | 65 |
| 56 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 66 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 57 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 67 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 58 | 68 |
| 59 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); | 69 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 60 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); | 70 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 61 | 71 |
| 62 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 72 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 63 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 73 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 64 const ICData& unary_ic_data); | 74 const ICData& unary_ic_data); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 | 135 |
| 126 FlowGraph* flow_graph_; | 136 FlowGraph* flow_graph_; |
| 127 | 137 |
| 128 DISALLOW_COPY_AND_ASSIGN(JitOptimizer); | 138 DISALLOW_COPY_AND_ASSIGN(JitOptimizer); |
| 129 }; | 139 }; |
| 130 | 140 |
| 131 | 141 |
| 132 } // namespace dart | 142 } // namespace dart |
| 133 | 143 |
| 134 #endif // RUNTIME_VM_JIT_OPTIMIZER_H_ | 144 #endif // RUNTIME_VM_JIT_OPTIMIZER_H_ |
| OLD | NEW |