| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 void FinalizeExceptionHandlers(const Code& code); | 421 void FinalizeExceptionHandlers(const Code& code); |
| 422 void FinalizePcDescriptors(const Code& code); | 422 void FinalizePcDescriptors(const Code& code); |
| 423 void FinalizeDeoptInfo(const Code& code); | 423 void FinalizeDeoptInfo(const Code& code); |
| 424 void FinalizeStackmaps(const Code& code); | 424 void FinalizeStackmaps(const Code& code); |
| 425 void FinalizeVarDescriptors(const Code& code); | 425 void FinalizeVarDescriptors(const Code& code); |
| 426 void FinalizeComments(const Code& code); | 426 void FinalizeComments(const Code& code); |
| 427 void FinalizeStaticCallTargetsTable(const Code& code); | 427 void FinalizeStaticCallTargetsTable(const Code& code); |
| 428 | 428 |
| 429 const Class& double_class() const { return double_class_; } | 429 const Class& double_class() const { return double_class_; } |
| 430 const Class& float32x4_class() const { return float32x4_class_; } | 430 const Class& float32x4_class() const { return float32x4_class_; } |
| 431 const Class& float64x2_class() const { return float64x2_class_; } |
| 431 const Class& int32x4_class() const { return int32x4_class_; } | 432 const Class& int32x4_class() const { return int32x4_class_; } |
| 432 | 433 |
| 433 void SaveLiveRegisters(LocationSummary* locs); | 434 void SaveLiveRegisters(LocationSummary* locs); |
| 434 void RestoreLiveRegisters(LocationSummary* locs); | 435 void RestoreLiveRegisters(LocationSummary* locs); |
| 435 | 436 |
| 436 Environment* SlowPathEnvironmentFor(Instruction* instruction); | 437 Environment* SlowPathEnvironmentFor(Instruction* instruction); |
| 437 | 438 |
| 438 intptr_t CurrentTryIndex() const { | 439 intptr_t CurrentTryIndex() const { |
| 439 if (current_block_ == NULL) { | 440 if (current_block_ == NULL) { |
| 440 return CatchClauseNode::kInvalidTryIndex; | 441 return CatchClauseNode::kInvalidTryIndex; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 GrowableArray<CompilerDeoptInfo*> deopt_infos_; | 586 GrowableArray<CompilerDeoptInfo*> deopt_infos_; |
| 586 GrowableArray<SlowPathCode*> slow_path_code_; | 587 GrowableArray<SlowPathCode*> slow_path_code_; |
| 587 // Stores: [code offset, function, null(code)]. | 588 // Stores: [code offset, function, null(code)]. |
| 588 const GrowableObjectArray& static_calls_target_table_; | 589 const GrowableObjectArray& static_calls_target_table_; |
| 589 const bool is_optimizing_; | 590 const bool is_optimizing_; |
| 590 // Set to true if optimized code has IC calls. | 591 // Set to true if optimized code has IC calls. |
| 591 bool may_reoptimize_; | 592 bool may_reoptimize_; |
| 592 | 593 |
| 593 const Class& double_class_; | 594 const Class& double_class_; |
| 594 const Class& float32x4_class_; | 595 const Class& float32x4_class_; |
| 596 const Class& float64x2_class_; |
| 595 const Class& int32x4_class_; | 597 const Class& int32x4_class_; |
| 596 const Class& list_class_; | 598 const Class& list_class_; |
| 597 | 599 |
| 598 ParallelMoveResolver parallel_move_resolver_; | 600 ParallelMoveResolver parallel_move_resolver_; |
| 599 | 601 |
| 600 // Currently instructions generate deopt stubs internally by | 602 // Currently instructions generate deopt stubs internally by |
| 601 // calling AddDeoptStub. To communicate deoptimization environment | 603 // calling AddDeoptStub. To communicate deoptimization environment |
| 602 // that should be used when deoptimizing we store it in this variable. | 604 // that should be used when deoptimizing we store it in this variable. |
| 603 // In future AddDeoptStub should be moved out of the instruction template. | 605 // In future AddDeoptStub should be moved out of the instruction template. |
| 604 Environment* pending_deoptimization_env_; | 606 Environment* pending_deoptimization_env_; |
| 605 | 607 |
| 606 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 608 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 607 }; | 609 }; |
| 608 | 610 |
| 609 } // namespace dart | 611 } // namespace dart |
| 610 | 612 |
| 611 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 613 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |