| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 void AddCheckClass(InstanceCallInstr* call, Value* value); | 56 void AddCheckClass(InstanceCallInstr* call, Value* value); |
| 57 | 57 |
| 58 void InsertAfter(Instruction* prev, | 58 void InsertAfter(Instruction* prev, |
| 59 Instruction* instr, | 59 Instruction* instr, |
| 60 Environment* env, | 60 Environment* env, |
| 61 Definition::UseKind use_kind); | 61 Definition::UseKind use_kind); |
| 62 | 62 |
| 63 void InsertConversionsFor(Definition* def); | 63 void InsertConversionsFor(Definition* def); |
| 64 | 64 |
| 65 void InsertConversion(Representation from, |
| 66 Representation to, |
| 67 Instruction* instr, |
| 68 Value* use, |
| 69 Definition* def, |
| 70 Instruction* deopt_target); |
| 71 |
| 65 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; | 72 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; |
| 66 | 73 |
| 67 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 74 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 68 void InlineArrayLengthGetter(InstanceCallInstr* call, | 75 void InlineArrayLengthGetter(InstanceCallInstr* call, |
| 69 intptr_t length_offset, | 76 intptr_t length_offset, |
| 70 bool is_immutable); | 77 bool is_immutable); |
| 71 void InlineGArrayCapacityGetter(InstanceCallInstr* call); | 78 void InlineGArrayCapacityGetter(InstanceCallInstr* call); |
| 72 void InlineStringLengthGetter(InstanceCallInstr* call); | 79 void InlineStringLengthGetter(InstanceCallInstr* call); |
| 73 void InlineStringIsEmptyTester(InstanceCallInstr* call); | 80 void InlineStringIsEmptyTester(InstanceCallInstr* call); |
| 74 | 81 |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 227 |
| 221 // Worklists of blocks and definitions. | 228 // Worklists of blocks and definitions. |
| 222 GrowableArray<BlockEntryInstr*> block_worklist_; | 229 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 223 GrowableArray<Definition*> definition_worklist_; | 230 GrowableArray<Definition*> definition_worklist_; |
| 224 }; | 231 }; |
| 225 | 232 |
| 226 | 233 |
| 227 } // namespace dart | 234 } // namespace dart |
| 228 | 235 |
| 229 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 236 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |