| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 MethodRecognizer::Kind recognized_kind); | 118 MethodRecognizer::Kind recognized_kind); |
| 119 bool TryInlineInt32x4Constructor(StaticCallInstr* call, | 119 bool TryInlineInt32x4Constructor(StaticCallInstr* call, |
| 120 MethodRecognizer::Kind recognized_kind); | 120 MethodRecognizer::Kind recognized_kind); |
| 121 bool TryInlineFloat32x4Method(InstanceCallInstr* call, | 121 bool TryInlineFloat32x4Method(InstanceCallInstr* call, |
| 122 MethodRecognizer::Kind recognized_kind); | 122 MethodRecognizer::Kind recognized_kind); |
| 123 bool TryInlineFloat64x2Method(InstanceCallInstr* call, | 123 bool TryInlineFloat64x2Method(InstanceCallInstr* call, |
| 124 MethodRecognizer::Kind recognized_kind); | 124 MethodRecognizer::Kind recognized_kind); |
| 125 bool TryInlineInt32x4Method(InstanceCallInstr* call, | 125 bool TryInlineInt32x4Method(InstanceCallInstr* call, |
| 126 MethodRecognizer::Kind recognized_kind); | 126 MethodRecognizer::Kind recognized_kind); |
| 127 void ReplaceWithInstanceOf(InstanceCallInstr* instr); | 127 void ReplaceWithInstanceOf(InstanceCallInstr* instr); |
| 128 bool TypeCheckAsClassEquality(const AbstractType& type); |
| 128 void ReplaceWithTypeCast(InstanceCallInstr* instr); | 129 void ReplaceWithTypeCast(InstanceCallInstr* instr); |
| 129 | 130 |
| 130 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call); | 131 bool TryReplaceInstanceCallWithInline(InstanceCallInstr* call); |
| 131 | 132 |
| 132 LoadFieldInstr* BuildLoadStringLength(Definition* str); | 133 LoadFieldInstr* BuildLoadStringLength(Definition* str); |
| 133 | 134 |
| 134 Definition* PrepareInlineStringIndexOp(Instruction* call, | 135 Definition* PrepareInlineStringIndexOp(Instruction* call, |
| 135 intptr_t cid, | 136 intptr_t cid, |
| 136 Definition* str, | 137 Definition* str, |
| 137 Definition* index, | 138 Definition* index, |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // Optimize spill stores inside try-blocks by identifying values that always | 502 // Optimize spill stores inside try-blocks by identifying values that always |
| 502 // contain a single known constant at catch block entry. | 503 // contain a single known constant at catch block entry. |
| 503 class TryCatchAnalyzer : public AllStatic { | 504 class TryCatchAnalyzer : public AllStatic { |
| 504 public: | 505 public: |
| 505 static void Optimize(FlowGraph* flow_graph); | 506 static void Optimize(FlowGraph* flow_graph); |
| 506 }; | 507 }; |
| 507 | 508 |
| 508 } // namespace dart | 509 } // namespace dart |
| 509 | 510 |
| 510 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 511 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |