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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 intptr_t argument_count, | 444 intptr_t argument_count, |
445 intptr_t deopt_id, | 445 intptr_t deopt_id, |
446 TokenPosition token_pos, | 446 TokenPosition token_pos, |
447 LocationSummary* locs); | 447 LocationSummary* locs); |
448 | 448 |
449 void EmitPolymorphicInstanceCall(const ICData& ic_data, | 449 void EmitPolymorphicInstanceCall(const ICData& ic_data, |
450 intptr_t argument_count, | 450 intptr_t argument_count, |
451 const Array& argument_names, | 451 const Array& argument_names, |
452 intptr_t deopt_id, | 452 intptr_t deopt_id, |
453 TokenPosition token_pos, | 453 TokenPosition token_pos, |
454 LocationSummary* locs); | 454 LocationSummary* locs, |
| 455 bool complete); |
455 | 456 |
456 // Pass a value for try-index where block is not available (e.g. slow path). | 457 // Pass a value for try-index where block is not available (e.g. slow path). |
457 void EmitMegamorphicInstanceCall( | 458 void EmitMegamorphicInstanceCall( |
458 const ICData& ic_data, | 459 const ICData& ic_data, |
459 intptr_t argument_count, | 460 intptr_t argument_count, |
460 intptr_t deopt_id, | 461 intptr_t deopt_id, |
461 TokenPosition token_pos, | 462 TokenPosition token_pos, |
462 LocationSummary* locs, | 463 LocationSummary* locs, |
463 intptr_t try_index, | 464 intptr_t try_index, |
464 intptr_t slow_path_argument_count = 0); | 465 intptr_t slow_path_argument_count = 0); |
465 | 466 |
466 void EmitSwitchableInstanceCall(const ICData& ic_data, | 467 void EmitSwitchableInstanceCall(const ICData& ic_data, |
467 intptr_t argument_count, | 468 intptr_t argument_count, |
468 intptr_t deopt_id, | 469 intptr_t deopt_id, |
469 TokenPosition token_pos, | 470 TokenPosition token_pos, |
470 LocationSummary* locs); | 471 LocationSummary* locs); |
471 | 472 |
472 void EmitTestAndCall(const ICData& ic_data, | 473 void EmitTestAndCall(const ICData& ic_data, |
473 intptr_t arg_count, | 474 intptr_t arg_count, |
474 const Array& arg_names, | 475 const Array& arg_names, |
475 Label* failed, | 476 Label* failed, |
476 Label* match_found, | 477 Label* match_found, |
477 intptr_t deopt_id, | 478 intptr_t deopt_id, |
478 TokenPosition token_index, | 479 TokenPosition token_index, |
479 LocationSummary* locs); | 480 LocationSummary* locs, |
| 481 bool complete); |
480 | 482 |
481 Condition EmitEqualityRegConstCompare(Register reg, | 483 Condition EmitEqualityRegConstCompare(Register reg, |
482 const Object& obj, | 484 const Object& obj, |
483 bool needs_number_check, | 485 bool needs_number_check, |
484 TokenPosition token_pos); | 486 TokenPosition token_pos); |
485 Condition EmitEqualityRegRegCompare(Register left, | 487 Condition EmitEqualityRegRegCompare(Register left, |
486 Register right, | 488 Register right, |
487 bool needs_number_check, | 489 bool needs_number_check, |
488 TokenPosition token_pos); | 490 TokenPosition token_pos); |
489 | 491 |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 const GrowableArray<const Function*>& inline_id_to_function_; | 807 const GrowableArray<const Function*>& inline_id_to_function_; |
806 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; | 808 const GrowableArray<TokenPosition>& inline_id_to_token_pos_; |
807 const GrowableArray<intptr_t>& caller_inline_id_; | 809 const GrowableArray<intptr_t>& caller_inline_id_; |
808 | 810 |
809 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 811 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
810 }; | 812 }; |
811 | 813 |
812 } // namespace dart | 814 } // namespace dart |
813 | 815 |
814 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 816 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
OLD | NEW |