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

Unified Diff: sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart

Issue 442363002: Add a parameter to return continuations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart b/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart
index 957d7a1aa2ac146422a582bc3b78b2a31cb1d430..d0912ef5c30bc55574e45f0c2b459552ec3feb5a 100644
--- a/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_nodes.dart
@@ -493,8 +493,8 @@ class Parameter extends Primitive {
accept(Visitor visitor) => visitor.visitParameter(this);
}
-/// Continuations are normally bound by 'let cont'. A continuation with no
-/// parameter (or body) is used to represent a function's return continuation.
+/// Continuations are normally bound by 'let cont'. A continuation with one
+/// parameter and no body is used to represent a function's return continuation.
/// The return continuation is bound by the Function, not by 'let cont'.
class Continuation extends Definition implements InteriorNode {
final List<Parameter> parameters;
@@ -505,7 +505,7 @@ class Continuation extends Definition implements InteriorNode {
Continuation(this.parameters);
- Continuation.retrn() : parameters = null;
+ Continuation.retrn() : parameters = <Parameter>[new Parameter(null)];
accept(Visitor visitor) => visitor.visitContinuation(this);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698