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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 77 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
78 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 78 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
79 | 79 |
80 bool TryInlineInstanceGetter(InstanceCallInstr* call); | 80 bool TryInlineInstanceGetter(InstanceCallInstr* call); |
81 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 81 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
82 const ICData& unary_ic_data); | 82 const ICData& unary_ic_data); |
83 | 83 |
84 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 84 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
85 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 85 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
86 | 86 |
87 LoadIndexedInstr* BuildStringCharCodeAt(InstanceCallInstr* call, | 87 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, |
88 intptr_t cid); | 88 intptr_t cid); |
89 | 89 |
90 LoadIndexedInstr* BuildByteArrayViewLoad(InstanceCallInstr* call, | 90 LoadIndexedInstr* BuildByteArrayViewLoad(InstanceCallInstr* call, |
91 intptr_t receiver_cid, | 91 intptr_t receiver_cid, |
92 intptr_t view_cid); | 92 intptr_t view_cid); |
93 | 93 |
94 // Insert a check of 'to_check' determined by 'unary_checks'. If the | 94 // Insert a check of 'to_check' determined by 'unary_checks'. If the |
95 // check fails it will deoptimize to 'deopt_id' using the deoptimization | 95 // check fails it will deoptimize to 'deopt_id' using the deoptimization |
96 // environment 'deopt_environment'. The check is inserted immediately | 96 // environment 'deopt_environment'. The check is inserted immediately |
97 // before 'insert_before'. | 97 // before 'insert_before'. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 // Worklists of blocks and definitions. | 251 // Worklists of blocks and definitions. |
252 GrowableArray<BlockEntryInstr*> block_worklist_; | 252 GrowableArray<BlockEntryInstr*> block_worklist_; |
253 GrowableArray<Definition*> definition_worklist_; | 253 GrowableArray<Definition*> definition_worklist_; |
254 }; | 254 }; |
255 | 255 |
256 | 256 |
257 } // namespace dart | 257 } // namespace dart |
258 | 258 |
259 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 259 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
OLD | NEW |