| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 518 |
| 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 Isolate* isolate() const { return isolate_; } | 529 Isolate* isolate() const { return isolate_; } |
| 529 Zone* zone() const { return zone_; } | 530 Zone* zone() const { return zone_; } |
| 530 | 531 |
| 531 void AddStubCallTarget(const Code& code); | 532 void AddStubCallTarget(const Code& code); |
| 532 | 533 |
| 533 const Array& inlined_code_intervals() const { | 534 const Array& inlined_code_intervals() const { |
| 534 return inlined_code_intervals_; | 535 return inlined_code_intervals_; |
| 535 } | 536 } |
| 536 | 537 |
| 537 RawArray* edge_counters_array() const { | 538 RawArray* edge_counters_array() const { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 const Code* code_arg) | 675 const Code* code_arg) |
| 675 : offset(offset_arg), function(function_arg), code(code_arg) { | 676 : offset(offset_arg), function(function_arg), code(code_arg) { |
| 676 ASSERT((function == NULL) || function->IsZoneHandle()); | 677 ASSERT((function == NULL) || function->IsZoneHandle()); |
| 677 ASSERT((code == NULL) || code->IsZoneHandle()); | 678 ASSERT((code == NULL) || code->IsZoneHandle()); |
| 678 } | 679 } |
| 679 | 680 |
| 680 private: | 681 private: |
| 681 DISALLOW_COPY_AND_ASSIGN(StaticCallsStruct); | 682 DISALLOW_COPY_AND_ASSIGN(StaticCallsStruct); |
| 682 }; | 683 }; |
| 683 | 684 |
| 685 Thread* thread_; |
| 684 Isolate* isolate_; | 686 Isolate* isolate_; |
| 685 Zone* zone_; | 687 Zone* zone_; |
| 686 Assembler* assembler_; | 688 Assembler* assembler_; |
| 687 const ParsedFunction& parsed_function_; | 689 const ParsedFunction& parsed_function_; |
| 688 const FlowGraph& flow_graph_; | 690 const FlowGraph& flow_graph_; |
| 689 const GrowableArray<BlockEntryInstr*>& block_order_; | 691 const GrowableArray<BlockEntryInstr*>& block_order_; |
| 690 | 692 |
| 691 #if defined(DEBUG) | 693 #if defined(DEBUG) |
| 692 GrowableArray<Representation> frame_state_; | 694 GrowableArray<Representation> frame_state_; |
| 693 #endif | 695 #endif |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 Array& inlined_code_intervals_; | 739 Array& inlined_code_intervals_; |
| 738 const GrowableArray<const Function*>& inline_id_to_function_; | 740 const GrowableArray<const Function*>& inline_id_to_function_; |
| 739 const GrowableArray<intptr_t>& caller_inline_id_; | 741 const GrowableArray<intptr_t>& caller_inline_id_; |
| 740 | 742 |
| 741 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 743 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 742 }; | 744 }; |
| 743 | 745 |
| 744 } // namespace dart | 746 } // namespace dart |
| 745 | 747 |
| 746 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 748 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |