| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 109 bool TryReplaceWithBinaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 110 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); | 110 bool TryReplaceWithUnaryOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 111 | 111 |
| 112 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); | 112 bool TryReplaceWithEqualityOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 113 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); | 113 bool TryReplaceWithRelationalOp(InstanceCallInstr* call, Token::Kind op_kind); |
| 114 | 114 |
| 115 bool TryInlineInstanceGetter(InstanceCallInstr* call, | 115 bool TryInlineInstanceGetter(InstanceCallInstr* call, |
| 116 bool allow_check = true); | 116 bool allow_check = true); |
| 117 bool TryInlineInstanceSetter(InstanceCallInstr* call, | 117 bool TryInlineInstanceSetter(InstanceCallInstr* call, |
| 118 const ICData& unary_ic_data); | 118 const ICData& unary_ic_data, |
| 119 bool allow_check = true); |
| 119 | 120 |
| 120 bool TryInlineInstanceMethod(InstanceCallInstr* call); | 121 bool TryInlineInstanceMethod(InstanceCallInstr* call); |
| 121 bool TryInlineFloat32x4Constructor(StaticCallInstr* call, | 122 bool TryInlineFloat32x4Constructor(StaticCallInstr* call, |
| 122 MethodRecognizer::Kind recognized_kind); | 123 MethodRecognizer::Kind recognized_kind); |
| 123 bool TryInlineFloat64x2Constructor(StaticCallInstr* call, | 124 bool TryInlineFloat64x2Constructor(StaticCallInstr* call, |
| 124 MethodRecognizer::Kind recognized_kind); | 125 MethodRecognizer::Kind recognized_kind); |
| 125 bool TryInlineInt32x4Constructor(StaticCallInstr* call, | 126 bool TryInlineInt32x4Constructor(StaticCallInstr* call, |
| 126 MethodRecognizer::Kind recognized_kind); | 127 MethodRecognizer::Kind recognized_kind); |
| 127 bool TryInlineFloat32x4Method(InstanceCallInstr* call, | 128 bool TryInlineFloat32x4Method(InstanceCallInstr* call, |
| 128 MethodRecognizer::Kind recognized_kind); | 129 MethodRecognizer::Kind recognized_kind); |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 438 // Optimize spill stores inside try-blocks by identifying values that always | 439 // Optimize spill stores inside try-blocks by identifying values that always |
| 439 // contain a single known constant at catch block entry. | 440 // contain a single known constant at catch block entry. |
| 440 class TryCatchAnalyzer : public AllStatic { | 441 class TryCatchAnalyzer : public AllStatic { |
| 441 public: | 442 public: |
| 442 static void Optimize(FlowGraph* flow_graph); | 443 static void Optimize(FlowGraph* flow_graph); |
| 443 }; | 444 }; |
| 444 | 445 |
| 445 } // namespace dart | 446 } // namespace dart |
| 446 | 447 |
| 447 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ | 448 #endif // VM_FLOW_GRAPH_OPTIMIZER_H_ |
| OLD | NEW |