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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, | 519 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, |
520 const Function& target, | 520 const Function& target, |
521 const Array& arguments_descriptor, | 521 const Array& arguments_descriptor, |
522 intptr_t num_args_tested); | 522 intptr_t num_args_tested); |
523 | 523 |
524 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { | 524 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { |
525 return *deopt_id_to_ic_data_; | 525 return *deopt_id_to_ic_data_; |
526 } | 526 } |
527 | 527 |
528 Thread* thread() const { return thread_; } | 528 Thread* thread() const { return thread_; } |
529 Isolate* isolate() const { return isolate_; } | 529 Isolate* isolate() const { return thread_->isolate(); } |
530 Zone* zone() const { return zone_; } | 530 Zone* zone() const { return zone_; } |
531 | 531 |
532 void AddStubCallTarget(const Code& code); | 532 void AddStubCallTarget(const Code& code); |
533 | 533 |
534 const Array& inlined_code_intervals() const { | 534 const Array& inlined_code_intervals() const { |
535 return inlined_code_intervals_; | 535 return inlined_code_intervals_; |
536 } | 536 } |
537 | 537 |
538 RawArray* edge_counters_array() const { | 538 RawArray* edge_counters_array() const { |
539 return edge_counters_array_.raw(); | 539 return edge_counters_array_.raw(); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 : offset(offset_arg), function(function_arg), code(code_arg) { | 676 : offset(offset_arg), function(function_arg), code(code_arg) { |
677 ASSERT((function == NULL) || function->IsZoneHandle()); | 677 ASSERT((function == NULL) || function->IsZoneHandle()); |
678 ASSERT((code == NULL) || code->IsZoneHandle()); | 678 ASSERT((code == NULL) || code->IsZoneHandle()); |
679 } | 679 } |
680 | 680 |
681 private: | 681 private: |
682 DISALLOW_COPY_AND_ASSIGN(StaticCallsStruct); | 682 DISALLOW_COPY_AND_ASSIGN(StaticCallsStruct); |
683 }; | 683 }; |
684 | 684 |
685 Thread* thread_; | 685 Thread* thread_; |
686 Isolate* isolate_; | |
687 Zone* zone_; | 686 Zone* zone_; |
688 Assembler* assembler_; | 687 Assembler* assembler_; |
689 const ParsedFunction& parsed_function_; | 688 const ParsedFunction& parsed_function_; |
690 const FlowGraph& flow_graph_; | 689 const FlowGraph& flow_graph_; |
691 const GrowableArray<BlockEntryInstr*>& block_order_; | 690 const GrowableArray<BlockEntryInstr*>& block_order_; |
692 | 691 |
693 #if defined(DEBUG) | 692 #if defined(DEBUG) |
694 GrowableArray<Representation> frame_state_; | 693 GrowableArray<Representation> frame_state_; |
695 #endif | 694 #endif |
696 | 695 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 Array& inlined_code_intervals_; | 738 Array& inlined_code_intervals_; |
740 const GrowableArray<const Function*>& inline_id_to_function_; | 739 const GrowableArray<const Function*>& inline_id_to_function_; |
741 const GrowableArray<intptr_t>& caller_inline_id_; | 740 const GrowableArray<intptr_t>& caller_inline_id_; |
742 | 741 |
743 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 742 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
744 }; | 743 }; |
745 | 744 |
746 } // namespace dart | 745 } // namespace dart |
747 | 746 |
748 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 747 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |