| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 68 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
| 69 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 69 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 70 const ICData& unary_ic_data); | 70 const ICData& unary_ic_data); |
| 71 | 71 |
| 72 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 72 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 73 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 73 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 74 | 74 |
| 75 LoadIndexedInstr* BuildStringCharCodeAt(InstanceCallInstr* call, | 75 LoadIndexedInstr* BuildStringCharCodeAt(InstanceCallInstr* call, |
| 76 intptr_t cid); | 76 intptr_t cid); |
| 77 | 77 |
| 78 LoadIndexedInstr* BuildByteArrayViewLoad(InstanceCallInstr* call, |
| 79 intptr_t receiver_cid, |
| 80 intptr_t view_cid); |
| 81 |
| 78 void AddCheckClass(InstanceCallInstr* call, Value* value); | 82 void AddCheckClass(InstanceCallInstr* call, Value* value); |
| 79 | 83 |
| 80 void InsertAfter(Instruction* prev, | 84 void InsertAfter(Instruction* prev, |
| 81 Instruction* instr, | 85 Instruction* instr, |
| 82 Environment* env, | 86 Environment* env, |
| 83 Definition::UseKind use_kind); | 87 Definition::UseKind use_kind); |
| 84 | 88 |
| 85 void InsertConversionsFor(Definition* def); | 89 void InsertConversionsFor(Definition* def); |
| 86 | 90 |
| 87 void InsertConversion(Representation from, | 91 void InsertConversion(Representation from, |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 243 |
| 240 // Worklists of blocks and definitions. | 244 // Worklists of blocks and definitions. |
| 241 GrowableArray<BlockEntryInstr*> block_worklist_; | 245 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 242 GrowableArray<Definition*> definition_worklist_; | 246 GrowableArray<Definition*> definition_worklist_; |
| 243 }; | 247 }; |
| 244 | 248 |
| 245 | 249 |
| 246 } // namespace dart | 250 } // namespace dart |
| 247 | 251 |
| 248 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 252 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |