| 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_JIT_OPTIMIZER_H_ | 5 #ifndef VM_JIT_OPTIMIZER_H_ |
| 6 #define VM_JIT_OPTIMIZER_H_ | 6 #define 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 62 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 63 | 63 |
| 64 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); | 64 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 65 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); | 65 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 66 | 66 |
| 67 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 67 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 68 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 68 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 69 const ICData& unary_ic_data); | 69 const ICData& unary_ic_data); |
| 70 | 70 |
| 71 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 71 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 72 bool TryInlineFloat32x4Constructor(StaticCallInstr* call, | |
| 73 MethodRecognizer::Kind recognized_kind); | |
| 74 bool TryInlineFloat64x2Constructor(StaticCallInstr* call, | |
| 75 MethodRecognizer::Kind recognized_kind); | |
| 76 bool TryInlineInt32x4Constructor(StaticCallInstr* call, | |
| 77 MethodRecognizer::Kind recognized_kind); | |
| 78 bool TryInlineFloat32x4Method(InstanceCallInstr* call, | |
| 79 MethodRecognizer::Kind recognized_kind); | |
| 80 bool TryInlineFloat64x2Method(InstanceCallInstr* call, | |
| 81 MethodRecognizer::Kind recognized_kind); | |
| 82 bool TryInlineInt32x4Method(InstanceCallInstr* call, | |
| 83 MethodRecognizer::Kind recognized_kind); | |
| 84 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 72 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 85 bool TypeCheckAsClassEquality(const AbstractType& type); | 73 bool TypeCheckAsClassEquality(const AbstractType& type); |
| 86 void ReplaceWithTypeCast(InstanceCallInstr* instr); | 74 void ReplaceWithTypeCast(InstanceCallInstr* instr); |
| 87 | 75 |
| 88 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call); | 76 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call); |
| 89 | 77 |
| 90 // Insert a check of 'to_check' determined by 'unary_checks'. If the | 78 // Insert a check of 'to_check' determined by 'unary_checks'. If the |
| 91 // check fails it will deoptimize to 'deopt_id' using the deoptimization | 79 // check fails it will deoptimize to 'deopt_id' using the deoptimization |
| 92 // environment 'deopt_environment'. The check is inserted immediately | 80 // environment 'deopt_environment'. The check is inserted immediately |
| 93 // before 'insert_before'. | 81 // before 'insert_before'. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 | 147 |
| 160 FlowGraph* flow_graph_; | 148 FlowGraph* flow_graph_; |
| 161 | 149 |
| 162 DISALLOW_COPY_AND_ASSIGN(JitOptimizer); | 150 DISALLOW_COPY_AND_ASSIGN(JitOptimizer); |
| 163 }; | 151 }; |
| 164 | 152 |
| 165 | 153 |
| 166 } // namespace dart | 154 } // namespace dart |
| 167 | 155 |
| 168 #endif // VM_JIT_OPTIMIZER_H_ | 156 #endif // VM_JIT_OPTIMIZER_H_ |
| OLD | NEW |