| 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 | 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 const ICData& unary_ic_data); |
| 68 | 68 |
| 69 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 69 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 70 | 70 |
| 71 StringCharCodeAtInstr* BuildStringCharCodeAt(InstanceCallInstr* call, |
| 72 intptr_t cid); |
| 73 |
| 71 void AddCheckClass(InstanceCallInstr* call, Value* value); | 74 void AddCheckClass(InstanceCallInstr* call, Value* value); |
| 72 | 75 |
| 73 void InsertAfter(Instruction* prev, | 76 void InsertAfter(Instruction* prev, |
| 74 Instruction* instr, | 77 Instruction* instr, |
| 75 Environment* env, | 78 Environment* env, |
| 76 Definition::UseKind use_kind); | 79 Definition::UseKind use_kind); |
| 77 | 80 |
| 78 void InsertConversionsFor(Definition* def); | 81 void InsertConversionsFor(Definition* def); |
| 79 | 82 |
| 80 void InsertConversion(Representation from, | 83 void InsertConversion(Representation from, |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 228 |
| 226 // Worklists of blocks and definitions. | 229 // Worklists of blocks and definitions. |
| 227 GrowableArray<BlockEntryInstr*> block_worklist_; | 230 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 228 GrowableArray<Definition*> definition_worklist_; | 231 GrowableArray<Definition*> definition_worklist_; |
| 229 }; | 232 }; |
| 230 | 233 |
| 231 | 234 |
| 232 } // namespace dart | 235 } // namespace dart |
| 233 | 236 |
| 234 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 237 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |