| 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_AOT_OPTIMIZER_H_ | 5 #ifndef VM_AOT_OPTIMIZER_H_ |
| 6 #define VM_AOT_OPTIMIZER_H_ | 6 #define VM_AOT_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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 bool TryStringLengthOneEquality(InstanceCallInstr* call, Token::Kind op_kind); | 156 bool TryStringLengthOneEquality(InstanceCallInstr* call, Token::Kind op_kind); |
| 157 | 157 |
| 158 RawField* GetField(intptr_t class_id, const String& field_name); | 158 RawField* GetField(intptr_t class_id, const String& field_name); |
| 159 | 159 |
| 160 Thread* thread() const { return flow_graph_->thread(); } | 160 Thread* thread() const { return flow_graph_->thread(); } |
| 161 Isolate* isolate() const { return flow_graph_->isolate(); } | 161 Isolate* isolate() const { return flow_graph_->isolate(); } |
| 162 Zone* zone() const { return flow_graph_->zone(); } | 162 Zone* zone() const { return flow_graph_->zone(); } |
| 163 | 163 |
| 164 const Function& function() const { return flow_graph_->function(); } | 164 const Function& function() const { return flow_graph_->function(); } |
| 165 | 165 |
| 166 bool IsBlackListedForInlining(intptr_t deopt_id); | 166 bool IsAllowedForInlining(intptr_t deopt_id); |
| 167 | 167 |
| 168 FlowGraph* flow_graph_; | 168 FlowGraph* flow_graph_; |
| 169 | 169 |
| 170 const bool use_speculative_inlining_; | 170 const bool use_speculative_inlining_; |
| 171 | 171 |
| 172 GrowableArray<intptr_t>* inlining_black_list_; | 172 GrowableArray<intptr_t>* inlining_black_list_; |
| 173 | 173 |
| 174 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); | 174 DISALLOW_COPY_AND_ASSIGN(AotOptimizer); |
| 175 }; | 175 }; |
| 176 | 176 |
| 177 | 177 |
| 178 } // namespace dart | 178 } // namespace dart |
| 179 | 179 |
| 180 #endif // VM_AOT_OPTIMIZER_H_ | 180 #endif // VM_AOT_OPTIMIZER_H_ |
| OLD | NEW |