| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); | 61 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); |
| 62 | 62 |
| 63 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 63 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 64 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 64 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 65 | 65 |
| 66 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 66 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 67 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 67 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 68 const ICData& unary_ic_data); | 68 const ICData& unary_ic_data); |
| 69 | 69 |
| 70 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 70 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 71 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 71 | 72 |
| 72 StringCharCodeAtInstr* BuildStringCharCodeAt(InstanceCallInstr* call, | 73 StringCharCodeAtInstr* BuildStringCharCodeAt(InstanceCallInstr* call, |
| 73 intptr_t cid); | 74 intptr_t cid); |
| 74 | 75 |
| 75 void AddCheckClass(InstanceCallInstr* call, Value* value); | 76 void AddCheckClass(InstanceCallInstr* call, Value* value); |
| 76 | 77 |
| 77 void InsertAfter(Instruction* prev, | 78 void InsertAfter(Instruction* prev, |
| 78 Instruction* instr, | 79 Instruction* instr, |
| 79 Environment* env, | 80 Environment* env, |
| 80 Definition::UseKind use_kind); | 81 Definition::UseKind use_kind); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 | 231 |
| 231 // Worklists of blocks and definitions. | 232 // Worklists of blocks and definitions. |
| 232 GrowableArray<BlockEntryInstr*> block_worklist_; | 233 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 233 GrowableArray<Definition*> definition_worklist_; | 234 GrowableArray<Definition*> definition_worklist_; |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 | 237 |
| 237 } // namespace dart | 238 } // namespace dart |
| 238 | 239 |
| 239 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 240 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |