| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 void FinalizeExceptionHandlers(const Code& code); | 406 void FinalizeExceptionHandlers(const Code& code); |
| 407 void FinalizePcDescriptors(const Code& code); | 407 void FinalizePcDescriptors(const Code& code); |
| 408 void FinalizeDeoptInfo(const Code& code); | 408 void FinalizeDeoptInfo(const Code& code); |
| 409 void FinalizeStackmaps(const Code& code); | 409 void FinalizeStackmaps(const Code& code); |
| 410 void FinalizeVarDescriptors(const Code& code); | 410 void FinalizeVarDescriptors(const Code& code); |
| 411 void FinalizeComments(const Code& code); | 411 void FinalizeComments(const Code& code); |
| 412 void FinalizeStaticCallTargetsTable(const Code& code); | 412 void FinalizeStaticCallTargetsTable(const Code& code); |
| 413 | 413 |
| 414 const Class& double_class() const { return double_class_; } | 414 const Class& double_class() const { return double_class_; } |
| 415 const Class& float32x4_class() const { return float32x4_class_; } | 415 const Class& float32x4_class() const { return float32x4_class_; } |
| 416 const Class& uint32x4_class() const { return uint32x4_class_; } |
| 416 | 417 |
| 417 void SaveLiveRegisters(LocationSummary* locs); | 418 void SaveLiveRegisters(LocationSummary* locs); |
| 418 void RestoreLiveRegisters(LocationSummary* locs); | 419 void RestoreLiveRegisters(LocationSummary* locs); |
| 419 | 420 |
| 420 // Returns true if the compiled function has a finally clause. | 421 // Returns true if the compiled function has a finally clause. |
| 421 bool HasFinally() const; | 422 bool HasFinally() const; |
| 422 | 423 |
| 423 intptr_t CurrentTryIndex() const { | 424 intptr_t CurrentTryIndex() const { |
| 424 if (current_block_ == NULL) { | 425 if (current_block_ == NULL) { |
| 425 return CatchClauseNode::kInvalidTryIndex; | 426 return CatchClauseNode::kInvalidTryIndex; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 GrowableArray<CompilerDeoptInfo*> deopt_infos_; | 565 GrowableArray<CompilerDeoptInfo*> deopt_infos_; |
| 565 GrowableArray<SlowPathCode*> slow_path_code_; | 566 GrowableArray<SlowPathCode*> slow_path_code_; |
| 566 // Stores: [code offset, function, null(code)]. | 567 // Stores: [code offset, function, null(code)]. |
| 567 const GrowableObjectArray& static_calls_target_table_; | 568 const GrowableObjectArray& static_calls_target_table_; |
| 568 const bool is_optimizing_; | 569 const bool is_optimizing_; |
| 569 // Set to true if optimized code has IC calls. | 570 // Set to true if optimized code has IC calls. |
| 570 bool may_reoptimize_; | 571 bool may_reoptimize_; |
| 571 | 572 |
| 572 const Class& double_class_; | 573 const Class& double_class_; |
| 573 const Class& float32x4_class_; | 574 const Class& float32x4_class_; |
| 575 const Class& uint32x4_class_; |
| 574 | 576 |
| 575 ParallelMoveResolver parallel_move_resolver_; | 577 ParallelMoveResolver parallel_move_resolver_; |
| 576 | 578 |
| 577 // Currently instructions generate deopt stubs internally by | 579 // Currently instructions generate deopt stubs internally by |
| 578 // calling AddDeoptStub. To communicate deoptimization environment | 580 // calling AddDeoptStub. To communicate deoptimization environment |
| 579 // that should be used when deoptimizing we store it in this variable. | 581 // that should be used when deoptimizing we store it in this variable. |
| 580 // In future AddDeoptStub should be moved out of the instruction template. | 582 // In future AddDeoptStub should be moved out of the instruction template. |
| 581 Environment* pending_deoptimization_env_; | 583 Environment* pending_deoptimization_env_; |
| 582 | 584 |
| 583 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 585 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 584 }; | 586 }; |
| 585 | 587 |
| 586 } // namespace dart | 588 } // namespace dart |
| 587 | 589 |
| 588 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 590 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |