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_COMPILER_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 bool is_marked_; | 237 bool is_marked_; |
238 }; | 238 }; |
239 | 239 |
240 public: | 240 public: |
241 FlowGraphCompiler(Assembler* assembler, | 241 FlowGraphCompiler(Assembler* assembler, |
242 FlowGraph* flow_graph, | 242 FlowGraph* flow_graph, |
243 bool is_optimizing); | 243 bool is_optimizing); |
244 | 244 |
245 ~FlowGraphCompiler(); | 245 ~FlowGraphCompiler(); |
246 | 246 |
| 247 static bool SupportsUnboxedDoubles(); |
247 static bool SupportsUnboxedMints(); | 248 static bool SupportsUnboxedMints(); |
248 static bool SupportsSinCos(); | 249 static bool SupportsSinCos(); |
249 static bool SupportsUnboxedSimd128(); | 250 static bool SupportsUnboxedSimd128(); |
250 | 251 |
251 // Accessors. | 252 // Accessors. |
252 Assembler* assembler() const { return assembler_; } | 253 Assembler* assembler() const { return assembler_; } |
253 const ParsedFunction& parsed_function() const { return parsed_function_; } | 254 const ParsedFunction& parsed_function() const { return parsed_function_; } |
254 const GrowableArray<BlockEntryInstr*>& block_order() const { | 255 const GrowableArray<BlockEntryInstr*>& block_order() const { |
255 return block_order_; | 256 return block_order_; |
256 } | 257 } |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 // that should be used when deoptimizing we store it in this variable. | 608 // that should be used when deoptimizing we store it in this variable. |
608 // In future AddDeoptStub should be moved out of the instruction template. | 609 // In future AddDeoptStub should be moved out of the instruction template. |
609 Environment* pending_deoptimization_env_; | 610 Environment* pending_deoptimization_env_; |
610 | 611 |
611 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
612 }; | 613 }; |
613 | 614 |
614 } // namespace dart | 615 } // namespace dart |
615 | 616 |
616 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 617 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |