| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 intptr_t cid); | 124 intptr_t cid); |
| 125 | 125 |
| 126 bool InlineByteArrayViewLoad(Instruction* call, | 126 bool InlineByteArrayViewLoad(Instruction* call, |
| 127 Definition* receiver, | 127 Definition* receiver, |
| 128 intptr_t array_cid, | 128 intptr_t array_cid, |
| 129 intptr_t view_cid, | 129 intptr_t view_cid, |
| 130 const ICData& ic_data, | 130 const ICData& ic_data, |
| 131 TargetEntryInstr** entry, | 131 TargetEntryInstr** entry, |
| 132 Definition** last); | 132 Definition** last); |
| 133 | 133 |
| 134 bool InlineByteArrayViewStore(const Function& target, |
| 135 Instruction* call, |
| 136 Definition* receiver, |
| 137 intptr_t array_cid, |
| 138 intptr_t view_cid, |
| 139 const ICData& ic_data, |
| 140 TargetEntryInstr** entry, |
| 141 Definition** last); |
| 142 |
| 134 intptr_t PrepareInlineByteArrayViewOp(Instruction* call, | 143 intptr_t PrepareInlineByteArrayViewOp(Instruction* call, |
| 135 intptr_t array_cid, | 144 intptr_t array_cid, |
| 136 intptr_t view_cid, | 145 intptr_t view_cid, |
| 137 Definition** array, | 146 Definition** array, |
| 138 Definition* index, | 147 Definition* index, |
| 139 Instruction** cursor); | 148 Instruction** cursor); |
| 140 | 149 |
| 141 bool BuildByteArrayViewLoad(InstanceCallInstr* call, | 150 bool BuildByteArrayViewLoad(InstanceCallInstr* call, |
| 142 intptr_t view_cid); | 151 intptr_t view_cid); |
| 143 bool BuildByteArrayViewStore(InstanceCallInstr* call, | 152 bool BuildByteArrayViewStore(InstanceCallInstr* call, |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // Optimize spill stores inside try-blocks by identifying values that always | 398 // Optimize spill stores inside try-blocks by identifying values that always |
| 390 // contain a single known constant at catch block entry. | 399 // contain a single known constant at catch block entry. |
| 391 class TryCatchAnalyzer : public AllStatic { | 400 class TryCatchAnalyzer : public AllStatic { |
| 392 public: | 401 public: |
| 393 static void Optimize(FlowGraph* flow_graph); | 402 static void Optimize(FlowGraph* flow_graph); |
| 394 }; | 403 }; |
| 395 | 404 |
| 396 } // namespace dart | 405 } // namespace dart |
| 397 | 406 |
| 398 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 407 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |