| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 98 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 99 void ReplaceWithTypeCast(InstanceCallInstr* instr); | 99 void ReplaceWithTypeCast(InstanceCallInstr* instr); |
| 100 | 100 |
| 101 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, | 101 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, |
| 102 intptr_t cid); | 102 intptr_t cid); |
| 103 | 103 |
| 104 bool BuildByteArrayViewLoad(InstanceCallInstr* call, | 104 bool BuildByteArrayViewLoad(InstanceCallInstr* call, |
| 105 intptr_t receiver_cid, | 105 intptr_t receiver_cid, |
| 106 intptr_t view_cid); | 106 intptr_t view_cid); |
| 107 bool BuildByteArrayViewStore(InstanceCallInstr* call, | 107 bool BuildByteArrayViewStore(InstanceCallInstr* call, |
| 108 intptr_t receiver_cid, | |
| 109 intptr_t view_cid); | 108 intptr_t view_cid); |
| 110 void PrepareByteArrayViewOp(InstanceCallInstr* call, | 109 void PrepareByteArrayViewOp(InstanceCallInstr* call, |
| 111 intptr_t receiver_cid, | 110 intptr_t receiver_cid, |
| 112 intptr_t view_cid, | 111 intptr_t view_cid, |
| 113 Definition** array); | 112 Definition** array); |
| 114 | 113 |
| 115 // Insert a check of 'to_check' determined by 'unary_checks'. If the | 114 // Insert a check of 'to_check' determined by 'unary_checks'. If the |
| 116 // check fails it will deoptimize to 'deopt_id' using the deoptimization | 115 // check fails it will deoptimize to 'deopt_id' using the deoptimization |
| 117 // environment 'deopt_environment'. The check is inserted immediately | 116 // environment 'deopt_environment'. The check is inserted immediately |
| 118 // before 'insert_before'. | 117 // before 'insert_before'. |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // Optimize spill stores inside try-blocks by identifying values that always | 369 // Optimize spill stores inside try-blocks by identifying values that always |
| 371 // contain a single known constant at catch block entry. | 370 // contain a single known constant at catch block entry. |
| 372 class TryCatchAnalyzer : public AllStatic { | 371 class TryCatchAnalyzer : public AllStatic { |
| 373 public: | 372 public: |
| 374 static void Optimize(FlowGraph* flow_graph); | 373 static void Optimize(FlowGraph* flow_graph); |
| 375 }; | 374 }; |
| 376 | 375 |
| 377 } // namespace dart | 376 } // namespace dart |
| 378 | 377 |
| 379 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 378 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |