| 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 RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ | 5 #ifndef RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ |
| 6 #define RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ | 6 #define RUNTIME_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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id, | 565 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id, |
| 566 const String& target_name, | 566 const String& target_name, |
| 567 const Array& arguments_descriptor, | 567 const Array& arguments_descriptor, |
| 568 intptr_t num_args_tested); | 568 intptr_t num_args_tested); |
| 569 | 569 |
| 570 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, | 570 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, |
| 571 const Function& target, | 571 const Function& target, |
| 572 const Array& arguments_descriptor, | 572 const Array& arguments_descriptor, |
| 573 intptr_t num_args_tested); | 573 intptr_t num_args_tested); |
| 574 | 574 |
| 575 static const ICData& TrySpecializeICDataByReceiverCid(const ICData& ic_data, |
| 576 intptr_t cid); |
| 577 |
| 575 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { | 578 const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const { |
| 576 return *deopt_id_to_ic_data_; | 579 return *deopt_id_to_ic_data_; |
| 577 } | 580 } |
| 578 | 581 |
| 579 Thread* thread() const { return thread_; } | 582 Thread* thread() const { return thread_; } |
| 580 Isolate* isolate() const { return thread_->isolate(); } | 583 Isolate* isolate() const { return thread_->isolate(); } |
| 581 Zone* zone() const { return zone_; } | 584 Zone* zone() const { return zone_; } |
| 582 | 585 |
| 583 void AddStubCallTarget(const Code& code); | 586 void AddStubCallTarget(const Code& code); |
| 584 | 587 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; | 801 ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_; |
| 799 | 802 |
| 800 Array& edge_counters_array_; | 803 Array& edge_counters_array_; |
| 801 | 804 |
| 802 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 805 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 803 }; | 806 }; |
| 804 | 807 |
| 805 } // namespace dart | 808 } // namespace dart |
| 806 | 809 |
| 807 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ | 810 #endif // RUNTIME_VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |