Chromium Code Reviews| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 | 46 |
| 47 void InsertBefore(Instruction* next, | 47 void InsertBefore(Instruction* next, |
| 48 Instruction* instr, | 48 Instruction* instr, |
| 49 Environment* env, | 49 Environment* env, |
| 50 Definition::UseKind use_kind); | 50 Definition::UseKind use_kind); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 // Attempt to build ICData for call using propagated class-ids. | 53 // Attempt to build ICData for call using propagated class-ids. |
| 54 bool TryCreateICData(InstanceCallInstr* call); | 54 bool TryCreateICData(InstanceCallInstr* call); |
| 55 | 55 |
| 56 void SpecializePolymophicInstanceCall(PolymorphicInstanceCallInstr* call); | |
|
Florian Schneider
2013/01/15 13:46:58
/s/Polymophic/Polymorphic/g
| |
| 57 | |
| 56 intptr_t PrepareIndexedOp(InstanceCallInstr* call, | 58 intptr_t PrepareIndexedOp(InstanceCallInstr* call, |
| 57 intptr_t class_id, | 59 intptr_t class_id, |
| 58 Value** array, | 60 Value** array, |
| 59 Value** index); | 61 Value** index); |
| 60 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call); | 62 bool TryReplaceWithStoreIndexed(InstanceCallInstr* call); |
| 61 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); | 63 bool TryReplaceWithLoadIndexed(InstanceCallInstr* call); |
| 62 | 64 |
| 63 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 65 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 64 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 66 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 65 | 67 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 | 237 |
| 236 // Worklists of blocks and definitions. | 238 // Worklists of blocks and definitions. |
| 237 GrowableArray<BlockEntryInstr*> block_worklist_; | 239 GrowableArray<BlockEntryInstr*> block_worklist_; |
| 238 GrowableArray<Definition*> definition_worklist_; | 240 GrowableArray<Definition*> definition_worklist_; |
| 239 }; | 241 }; |
| 240 | 242 |
| 241 | 243 |
| 242 } // namespace dart | 244 } // namespace dart |
| 243 | 245 |
| 244 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 246 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |