| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 intptr_t cid, | 137 intptr_t cid, |
| 138 Definition* str, | 138 Definition* str, |
| 139 Definition* index, | 139 Definition* index, |
| 140 Instruction* cursor); | 140 Instruction* cursor); |
| 141 | 141 |
| 142 bool InlineStringCodeUnitAt(Instruction* call, | 142 bool InlineStringCodeUnitAt(Instruction* call, |
| 143 intptr_t cid, | 143 intptr_t cid, |
| 144 TargetEntryInstr** entry, | 144 TargetEntryInstr** entry, |
| 145 Definition** last); | 145 Definition** last); |
| 146 | 146 |
| 147 Definition* PrepareInlineStringIndexOpUnchecked(Instruction* call, |
| 148 intptr_t cid, |
| 149 intptr_t count, |
| 150 Definition* str, |
| 151 Definition* index, |
| 152 Instruction* cursor); |
| 153 |
| 154 bool InlineStringCodeUnitsAt(Instruction* call, |
| 155 intptr_t cid, |
| 156 intptr_t count, |
| 157 TargetEntryInstr** entry, |
| 158 Definition** last); |
| 159 |
| 147 bool InlineStringBaseCharAt(Instruction* call, | 160 bool InlineStringBaseCharAt(Instruction* call, |
| 148 intptr_t cid, | 161 intptr_t cid, |
| 149 TargetEntryInstr** entry, | 162 TargetEntryInstr** entry, |
| 150 Definition** last); | 163 Definition** last); |
| 151 | 164 |
| 152 bool InlineDoubleOp(Token::Kind op_kind, | 165 bool InlineDoubleOp(Token::Kind op_kind, |
| 153 Instruction* call, | 166 Instruction* call, |
| 154 TargetEntryInstr** entry, | 167 TargetEntryInstr** entry, |
| 155 Definition** last); | 168 Definition** last); |
| 156 | 169 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 // Optimize spill stores inside try-blocks by identifying values that always | 517 // Optimize spill stores inside try-blocks by identifying values that always |
| 505 // contain a single known constant at catch block entry. | 518 // contain a single known constant at catch block entry. |
| 506 class TryCatchAnalyzer : public AllStatic { | 519 class TryCatchAnalyzer : public AllStatic { |
| 507 public: | 520 public: |
| 508 static void Optimize(FlowGraph* flow_graph); | 521 static void Optimize(FlowGraph* flow_graph); |
| 509 }; | 522 }; |
| 510 | 523 |
| 511 } // namespace dart | 524 } // namespace dart |
| 512 | 525 |
| 513 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 526 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |