| 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, | 470 void BuildSyncYieldJump(LocalVariable* old_context, |
| 471 LocalVariable* iterator_param, | 471 LocalVariable* iterator_param, |
| 472 const intptr_t old_ctx_level, | 472 const intptr_t old_ctx_level, |
| 473 JoinEntryInstr* target); | 473 JoinEntryInstr* target); |
| 474 |
| 475 void BuildAsyncYieldJump(LocalVariable* old_context, |
| 476 const intptr_t old_ctx_level, |
| 477 JoinEntryInstr* target); |
| 474 | 478 |
| 475 void BuildAwaitJump(LocalVariable* old_context, | 479 void BuildAwaitJump(LocalVariable* old_context, |
| 476 LocalVariable* continuation_result, | 480 LocalVariable* continuation_result, |
| 477 LocalVariable* continuation_error, | 481 LocalVariable* continuation_error, |
| 478 LocalVariable* continuation_stack_trace, | 482 LocalVariable* continuation_stack_trace, |
| 479 const intptr_t old_ctx_level, | 483 const intptr_t old_ctx_level, |
| 480 JoinEntryInstr* target); | 484 JoinEntryInstr* target); |
| 481 | 485 |
| 482 Isolate* isolate() const { return owner()->isolate(); } | 486 Isolate* isolate() const { return owner()->isolate(); } |
| 483 | 487 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 // Output parameters. | 614 // Output parameters. |
| 611 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 615 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 612 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 616 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 613 | 617 |
| 614 intptr_t condition_token_pos_; | 618 intptr_t condition_token_pos_; |
| 615 }; | 619 }; |
| 616 | 620 |
| 617 } // namespace dart | 621 } // namespace dart |
| 618 | 622 |
| 619 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 623 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |