| 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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 if (current_block_ == NULL) { | 494 if (current_block_ == NULL) { |
| 495 return CatchClauseNode::kInvalidTryIndex; | 495 return CatchClauseNode::kInvalidTryIndex; |
| 496 } | 496 } |
| 497 return current_block_->try_index(); | 497 return current_block_->try_index(); |
| 498 } | 498 } |
| 499 | 499 |
| 500 bool may_reoptimize() const { return may_reoptimize_; } | 500 bool may_reoptimize() const { return may_reoptimize_; } |
| 501 | 501 |
| 502 // Returns 'sorted' array in decreasing count order. | 502 // Returns 'sorted' array in decreasing count order. |
| 503 static void SortICDataByCount(const ICData& ic_data, | 503 static void SortICDataByCount(const ICData& ic_data, |
| 504 GrowableArray<CidTarget>* sorted); | 504 GrowableArray<CidTarget>* sorted, |
| 505 bool drop_smi); |
| 505 | 506 |
| 506 // Use in unoptimized compilation to preserve/reuse ICData. | 507 // Use in unoptimized compilation to preserve/reuse ICData. |
| 507 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id, | 508 const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id, |
| 508 const String& target_name, | 509 const String& target_name, |
| 509 const Array& arguments_descriptor, | 510 const Array& arguments_descriptor, |
| 510 intptr_t num_args_tested); | 511 intptr_t num_args_tested); |
| 511 | 512 |
| 512 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, | 513 const ICData* GetOrAddStaticCallICData(intptr_t deopt_id, |
| 513 const Function& target, | 514 const Function& target, |
| 514 const Array& arguments_descriptor, | 515 const Array& arguments_descriptor, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 | 685 |
| 685 const Array* inlined_code_intervals_; | 686 const Array* inlined_code_intervals_; |
| 686 const GrowableArray<const Function*>& inline_id_to_function_; | 687 const GrowableArray<const Function*>& inline_id_to_function_; |
| 687 | 688 |
| 688 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 689 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 689 }; | 690 }; |
| 690 | 691 |
| 691 } // namespace dart | 692 } // namespace dart |
| 692 | 693 |
| 693 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 694 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |