| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 MethodRecognizer::Kind recognized_kind); | 113 MethodRecognizer::Kind recognized_kind); |
| 114 bool TryInlineInt32x4Constructor(StaticCallInstr* call, | 114 bool TryInlineInt32x4Constructor(StaticCallInstr* call, |
| 115 MethodRecognizer::Kind recognized_kind); | 115 MethodRecognizer::Kind recognized_kind); |
| 116 bool TryInlineFloat32x4Method(InstanceCallInstr* call, | 116 bool TryInlineFloat32x4Method(InstanceCallInstr* call, |
| 117 MethodRecognizer::Kind recognized_kind); | 117 MethodRecognizer::Kind recognized_kind); |
| 118 bool TryInlineInt32x4Method(InstanceCallInstr* call, | 118 bool TryInlineInt32x4Method(InstanceCallInstr* call, |
| 119 MethodRecognizer::Kind recognized_kind); | 119 MethodRecognizer::Kind recognized_kind); |
| 120 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 120 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 121 void ReplaceWithTypeCast(InstanceCallInstr* instr); | 121 void ReplaceWithTypeCast(InstanceCallInstr* instr); |
| 122 | 122 |
| 123 Definition* PrepareInlineStringIndexOp(Instruction* call, |
| 124 intptr_t cid, |
| 125 Definition* str, |
| 126 Definition* index, |
| 127 Instruction* cursor); |
| 128 |
| 129 bool InlineStringCodeUnitAt(Instruction* call, |
| 130 intptr_t cid, |
| 131 TargetEntryInstr** entry, |
| 132 Definition** last); |
| 133 |
| 134 bool InlineStringBaseCharAt(Instruction* call, |
| 135 intptr_t cid, |
| 136 TargetEntryInstr** entry, |
| 137 Definition** last); |
| 138 |
| 123 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, | 139 LoadIndexedInstr* BuildStringCodeUnitAt(InstanceCallInstr* call, |
| 124 intptr_t cid); | 140 intptr_t cid); |
| 125 | 141 |
| 126 bool InlineByteArrayViewLoad(Instruction* call, | 142 bool InlineByteArrayViewLoad(Instruction* call, |
| 127 Definition* receiver, | 143 Definition* receiver, |
| 128 intptr_t array_cid, | 144 intptr_t array_cid, |
| 129 intptr_t view_cid, | 145 intptr_t view_cid, |
| 130 const ICData& ic_data, | 146 const ICData& ic_data, |
| 131 TargetEntryInstr** entry, | 147 TargetEntryInstr** entry, |
| 132 Definition** last); | 148 Definition** last); |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // Optimize spill stores inside try-blocks by identifying values that always | 405 // Optimize spill stores inside try-blocks by identifying values that always |
| 390 // contain a single known constant at catch block entry. | 406 // contain a single known constant at catch block entry. |
| 391 class TryCatchAnalyzer : public AllStatic { | 407 class TryCatchAnalyzer : public AllStatic { |
| 392 public: | 408 public: |
| 393 static void Optimize(FlowGraph* flow_graph); | 409 static void Optimize(FlowGraph* flow_graph); |
| 394 }; | 410 }; |
| 395 | 411 |
| 396 } // namespace dart | 412 } // namespace dart |
| 397 | 413 |
| 398 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 414 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |