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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 void FinalizeExceptionHandlers(const Code& code); | 422 void FinalizeExceptionHandlers(const Code& code); |
423 void FinalizePcDescriptors(const Code& code); | 423 void FinalizePcDescriptors(const Code& code); |
424 void FinalizeDeoptInfo(const Code& code); | 424 void FinalizeDeoptInfo(const Code& code); |
425 void FinalizeStackmaps(const Code& code); | 425 void FinalizeStackmaps(const Code& code); |
426 void FinalizeVarDescriptors(const Code& code); | 426 void FinalizeVarDescriptors(const Code& code); |
427 void FinalizeComments(const Code& code); | 427 void FinalizeComments(const Code& code); |
428 void FinalizeStaticCallTargetsTable(const Code& code); | 428 void FinalizeStaticCallTargetsTable(const Code& code); |
429 | 429 |
430 const Class& double_class() const { return double_class_; } | 430 const Class& double_class() const { return double_class_; } |
431 const Class& float32x4_class() const { return float32x4_class_; } | 431 const Class& float32x4_class() const { return float32x4_class_; } |
432 const Class& uint32x4_class() const { return uint32x4_class_; } | 432 const Class& int32x4_class() const { return int32x4_class_; } |
433 | 433 |
434 void SaveLiveRegisters(LocationSummary* locs); | 434 void SaveLiveRegisters(LocationSummary* locs); |
435 void RestoreLiveRegisters(LocationSummary* locs); | 435 void RestoreLiveRegisters(LocationSummary* locs); |
436 | 436 |
437 Environment* SlowPathEnvironmentFor(Instruction* instruction); | 437 Environment* SlowPathEnvironmentFor(Instruction* instruction); |
438 | 438 |
439 // Returns true if the compiled function has a finally clause. | 439 // Returns true if the compiled function has a finally clause. |
440 bool HasFinally() const; | 440 bool HasFinally() const; |
441 | 441 |
442 intptr_t CurrentTryIndex() const { | 442 intptr_t CurrentTryIndex() const { |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 GrowableArray<CompilerDeoptInfo*> deopt_infos_; | 591 GrowableArray<CompilerDeoptInfo*> deopt_infos_; |
592 GrowableArray<SlowPathCode*> slow_path_code_; | 592 GrowableArray<SlowPathCode*> slow_path_code_; |
593 // Stores: [code offset, function, null(code)]. | 593 // Stores: [code offset, function, null(code)]. |
594 const GrowableObjectArray& static_calls_target_table_; | 594 const GrowableObjectArray& static_calls_target_table_; |
595 const bool is_optimizing_; | 595 const bool is_optimizing_; |
596 // Set to true if optimized code has IC calls. | 596 // Set to true if optimized code has IC calls. |
597 bool may_reoptimize_; | 597 bool may_reoptimize_; |
598 | 598 |
599 const Class& double_class_; | 599 const Class& double_class_; |
600 const Class& float32x4_class_; | 600 const Class& float32x4_class_; |
601 const Class& uint32x4_class_; | 601 const Class& int32x4_class_; |
602 const Class& list_class_; | 602 const Class& list_class_; |
603 | 603 |
604 ParallelMoveResolver parallel_move_resolver_; | 604 ParallelMoveResolver parallel_move_resolver_; |
605 | 605 |
606 // Currently instructions generate deopt stubs internally by | 606 // Currently instructions generate deopt stubs internally by |
607 // calling AddDeoptStub. To communicate deoptimization environment | 607 // calling AddDeoptStub. To communicate deoptimization environment |
608 // 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. |
609 // In future AddDeoptStub should be moved out of the instruction template. | 609 // In future AddDeoptStub should be moved out of the instruction template. |
610 Environment* pending_deoptimization_env_; | 610 Environment* pending_deoptimization_env_; |
611 | 611 |
612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 612 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
613 }; | 613 }; |
614 | 614 |
615 } // namespace dart | 615 } // namespace dart |
616 | 616 |
617 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 617 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |