| 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_FLOW_GRAPH_OPTIMIZER_H_ | 5 #ifndef VM_FLOW_GRAPH_OPTIMIZER_H_ |
| 6 #define VM_FLOW_GRAPH_OPTIMIZER_H_ | 6 #define VM_FLOW_GRAPH_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 74 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 75 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 75 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 76 | 76 |
| 77 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 77 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 78 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 78 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 79 const ICData& unary_ic_data); | 79 const ICData& unary_ic_data); |
| 80 | 80 |
| 81 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 81 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 82 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 82 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 83 void ReplaceWithTypeCast(InstanceCallInstr* instr); |
| 83 | 84 |
| 84 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, | 85 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, |
| 85 intptr_t cid); | 86 intptr_t cid); |
| 86 | 87 |
| 87 bool BuildByteArrayViewLoad(InstanceCallInstr* call, | 88 bool BuildByteArrayViewLoad(InstanceCallInstr* call, |
| 88 intptr_t receiver_cid, | 89 intptr_t receiver_cid, |
| 89 intptr_t view_cid); | 90 intptr_t view_cid); |
| 90 bool BuildByteArrayViewStore(InstanceCallInstr* call, | 91 bool BuildByteArrayViewStore(InstanceCallInstr* call, |
| 91 intptr_t receiver_cid, | 92 intptr_t receiver_cid, |
| 92 intptr_t view_cid); | 93 intptr_t view_cid); |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 // inputs. | 290 // inputs. |
| 290 static BranchInstr* CloneBranch(BranchInstr* branch, | 291 static BranchInstr* CloneBranch(BranchInstr* branch, |
| 291 Value* left, | 292 Value* left, |
| 292 Value* right); | 293 Value* right); |
| 293 }; | 294 }; |
| 294 | 295 |
| 295 | 296 |
| 296 } // namespace dart | 297 } // namespace dart |
| 297 | 298 |
| 298 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 299 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |