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_BUILDER_H_ | 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_ |
6 #define VM_FLOW_GRAPH_BUILDER_H_ | 6 #define VM_FLOW_GRAPH_BUILDER_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 const AbstractType& dst_type, | 460 const AbstractType& dst_type, |
461 const String& dst_name); | 461 const String& dst_name); |
462 | 462 |
463 // Helpers for allocating and deallocating temporary locals on top of the | 463 // Helpers for allocating and deallocating temporary locals on top of the |
464 // expression stack. | 464 // expression stack. |
465 LocalVariable* EnterTempLocalScope(Value* value); | 465 LocalVariable* EnterTempLocalScope(Value* value); |
466 Definition* ExitTempLocalScope(LocalVariable* var); | 466 Definition* ExitTempLocalScope(LocalVariable* var); |
467 | 467 |
468 void BuildLetTempExpressions(LetNode* node); | 468 void BuildLetTempExpressions(LetNode* node); |
469 | 469 |
| 470 void BuildYieldJump(LocalVariable* old_context, |
| 471 LocalVariable* iterator_param, |
| 472 const intptr_t old_ctx_level, |
| 473 JoinEntryInstr* target); |
| 474 |
470 void BuildAwaitJump(LocalVariable* old_context, | 475 void BuildAwaitJump(LocalVariable* old_context, |
471 LocalVariable* continuation_result, | 476 LocalVariable* continuation_result, |
472 LocalVariable* continuation_error, | 477 LocalVariable* continuation_error, |
473 LocalVariable* continuation_stack_trace, | 478 LocalVariable* continuation_stack_trace, |
474 const intptr_t old_ctx_level, | 479 const intptr_t old_ctx_level, |
475 JoinEntryInstr* target); | 480 JoinEntryInstr* target); |
476 | 481 |
477 Isolate* isolate() const { return owner()->isolate(); } | 482 Isolate* isolate() const { return owner()->isolate(); } |
478 | 483 |
479 private: | 484 private: |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 // Output parameters. | 610 // Output parameters. |
606 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 611 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
607 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 612 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
608 | 613 |
609 intptr_t condition_token_pos_; | 614 intptr_t condition_token_pos_; |
610 }; | 615 }; |
611 | 616 |
612 } // namespace dart | 617 } // namespace dart |
613 | 618 |
614 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 619 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
OLD | NEW |