| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 intptr_t class_id, | 56 intptr_t class_id, |
| 57 Value** array, | 57 Value** array, |
| 58 Value** index); | 58 Value** index); |
| 59 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call); | 59 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call); |
| 60 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); | 60 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); |
| 61 | 61 |
| 62 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 62 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 63 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 63 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 64 | 64 |
| 65 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 65 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 66 bool TryInlineInstanceSetter(InstanceCallInstr* call); | 66 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 67 const ICData& unary_ic_data); |
| 67 | 68 |
| 68 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 69 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 69 | 70 |
| 70 void AddCheckClass(InstanceCallInstr* call, Value* value); | 71 void AddCheckClass(InstanceCallInstr* call, Value* value); |
| 71 | 72 |
| 72 void InsertAfter(Instruction* prev, | 73 void InsertAfter(Instruction* prev, |
| 73 Instruction* instr, | 74 Instruction* instr, |
| 74 Environment* env, | 75 Environment* env, |
| 75 Definition::UseKind use_kind); | 76 Definition::UseKind use_kind); |
| 76 | 77 |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 225 |
| 225 // Worklists of blocks and definitions. | 226 // Worklists of blocks and definitions. |
| 226 GrowableArray<BlockEntryInstr*> block_worklist_; | 227 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 227 GrowableArray<Definition*> definition_worklist_; | 228 GrowableArray<Definition*> definition_worklist_; |
| 228 }; | 229 }; |
| 229 | 230 |
| 230 | 231 |
| 231 } // namespace dart | 232 } // namespace dart |
| 232 | 233 |
| 233 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 234 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |