| 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 | 415 |
| 416 void FinalizeExceptionHandlers(const Code& code); | 416 void FinalizeExceptionHandlers(const Code& code); |
| 417 void FinalizePcDescriptors(const Code& code); | 417 void FinalizePcDescriptors(const Code& code); |
| 418 void FinalizeDeoptInfo(const Code& code); | 418 void FinalizeDeoptInfo(const Code& code); |
| 419 void FinalizeStackmaps(const Code& code); | 419 void FinalizeStackmaps(const Code& code); |
| 420 void FinalizeVarDescriptors(const Code& code); | 420 void FinalizeVarDescriptors(const Code& code); |
| 421 void FinalizeComments(const Code& code); | 421 void FinalizeComments(const Code& code); |
| 422 void FinalizeStaticCallTargetsTable(const Code& code); | 422 void FinalizeStaticCallTargetsTable(const Code& code); |
| 423 | 423 |
| 424 const Class& double_class() const { return double_class_; } | 424 const Class& double_class() const { return double_class_; } |
| 425 const Class& float32x4_class() const { return float32x4_class_; } |
| 425 | 426 |
| 426 void SaveLiveRegisters(LocationSummary* locs); | 427 void SaveLiveRegisters(LocationSummary* locs); |
| 427 void RestoreLiveRegisters(LocationSummary* locs); | 428 void RestoreLiveRegisters(LocationSummary* locs); |
| 428 | 429 |
| 429 // Returns true if the compiled function has a finally clause. | 430 // Returns true if the compiled function has a finally clause. |
| 430 bool HasFinally() const; | 431 bool HasFinally() const; |
| 431 | 432 |
| 432 intptr_t CurrentTryIndex() const { | 433 intptr_t CurrentTryIndex() const { |
| 433 if (current_block_ == NULL) { | 434 if (current_block_ == NULL) { |
| 434 return CatchClauseNode::kInvalidTryIndex; | 435 return CatchClauseNode::kInvalidTryIndex; |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 GrowableArray<BlockInfo*> block_info_; | 574 GrowableArray<BlockInfo*> block_info_; |
| 574 GrowableArray<CompilerDeoptInfo*> deopt_infos_; | 575 GrowableArray<CompilerDeoptInfo*> deopt_infos_; |
| 575 GrowableArray<SlowPathCode*> slow_path_code_; | 576 GrowableArray<SlowPathCode*> slow_path_code_; |
| 576 // Stores: [code offset, function, null(code)]. | 577 // Stores: [code offset, function, null(code)]. |
| 577 const GrowableObjectArray& static_calls_target_table_; | 578 const GrowableObjectArray& static_calls_target_table_; |
| 578 const bool is_optimizing_; | 579 const bool is_optimizing_; |
| 579 // Set to true if optimized code has IC calls. | 580 // Set to true if optimized code has IC calls. |
| 580 bool may_reoptimize_; | 581 bool may_reoptimize_; |
| 581 | 582 |
| 582 const Class& double_class_; | 583 const Class& double_class_; |
| 584 const Class& float32x4_class_; |
| 583 | 585 |
| 584 ParallelMoveResolver parallel_move_resolver_; | 586 ParallelMoveResolver parallel_move_resolver_; |
| 585 | 587 |
| 586 // Currently instructions generate deopt stubs internally by | 588 // Currently instructions generate deopt stubs internally by |
| 587 // calling AddDeoptStub. To communicate deoptimization environment | 589 // calling AddDeoptStub. To communicate deoptimization environment |
| 588 // that should be used when deoptimizing we store it in this variable. | 590 // that should be used when deoptimizing we store it in this variable. |
| 589 // In future AddDeoptStub should be moved out of the instruction template. | 591 // In future AddDeoptStub should be moved out of the instruction template. |
| 590 Environment* pending_deoptimization_env_; | 592 Environment* pending_deoptimization_env_; |
| 591 | 593 |
| 592 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 594 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 593 }; | 595 }; |
| 594 | 596 |
| 595 } // namespace dart | 597 } // namespace dart |
| 596 | 598 |
| 597 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 599 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |