Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: runtime/vm/flow_graph_builder.h

Issue 944893005: Implement async* functions in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 474
475 void BuildAwaitJump(LocalVariable* old_context, 475 void BuildAsyncJump(LocalVariable* old_context,
476 LocalVariable* continuation_result, 476 LocalVariable* continuation_result,
477 LocalVariable* continuation_error, 477 LocalVariable* continuation_error,
478 LocalVariable* continuation_stack_trace, 478 LocalVariable* continuation_stack_trace,
479 const intptr_t old_ctx_level, 479 const intptr_t old_ctx_level,
480 JoinEntryInstr* target); 480 JoinEntryInstr* target);
481 481
482 Isolate* isolate() const { return owner()->isolate(); } 482 Isolate* isolate() const { return owner()->isolate(); }
483 483
484 private: 484 private:
485 friend class TempLocalScope; // For ReturnDefinition. 485 friend class TempLocalScope; // For ReturnDefinition.
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 // Output parameters. 610 // Output parameters.
611 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 611 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
612 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 612 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
613 613
614 intptr_t condition_token_pos_; 614 intptr_t condition_token_pos_;
615 }; 615 };
616 616
617 } // namespace dart 617 } // namespace dart
618 618
619 #endif // VM_FLOW_GRAPH_BUILDER_H_ 619 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698