| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 void InsertAfter(Instruction* prev, | 80 void InsertAfter(Instruction* prev, |
| 81 Instruction* instr, | 81 Instruction* instr, |
| 82 Environment* env, | 82 Environment* env, |
| 83 Definition::UseKind use_kind); | 83 Definition::UseKind use_kind); |
| 84 | 84 |
| 85 void InsertConversionsFor(Definition* def); | 85 void InsertConversionsFor(Definition* def); |
| 86 | 86 |
| 87 void InsertConversion(Representation from, | 87 void InsertConversion(Representation from, |
| 88 Representation to, | 88 Representation to, |
| 89 Instruction* instr, | |
| 90 Value* use, | 89 Value* use, |
| 91 Definition* def, | 90 Instruction* insert_before, |
| 92 Instruction* deopt_target); | 91 Instruction* deopt_target); |
| 93 | 92 |
| 94 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; | 93 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call) const; |
| 95 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; | 94 bool MethodExtractorNeedsClassCheck(InstanceCallInstr* call) const; |
| 96 | 95 |
| 97 void InlineImplicitInstanceGetter(InstanceCallInstr* call); | 96 void InlineImplicitInstanceGetter(InstanceCallInstr* call); |
| 98 void InlineArrayLengthGetter(InstanceCallInstr* call, | 97 void InlineArrayLengthGetter(InstanceCallInstr* call, |
| 99 intptr_t length_offset, | 98 intptr_t length_offset, |
| 100 bool is_immutable, | 99 bool is_immutable, |
| 101 MethodRecognizer::Kind kind); | 100 MethodRecognizer::Kind kind); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 239 |
| 241 // Worklists of blocks and definitions. | 240 // Worklists of blocks and definitions. |
| 242 GrowableArray<BlockEntryInstr*> block_worklist_; | 241 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 243 GrowableArray<Definition*> definition_worklist_; | 242 GrowableArray<Definition*> definition_worklist_; |
| 244 }; | 243 }; |
| 245 | 244 |
| 246 | 245 |
| 247 } // namespace dart | 246 } // namespace dart |
| 248 | 247 |
| 249 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 248 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |