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

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: 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 cd6d3aaa3e1bba9106b20579f45113d3aa8f2448..83c15992123a08a58f5337b88bb7abdc7c73698a 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
@@ -494,8 +494,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 NodeWithBody {
final List<Parameter> parameters;
@@ -506,7 +506,9 @@ class Continuation extends Definition implements NodeWithBody {
Continuation(this.parameters);
- Continuation.retrn() : parameters = null;
+ Continuation.retrn() : parameters = new List<Parameter>(1) {
Kevin Millikin (Google) 2014/08/08 08:44:53 = <Parameter>[new Parameter(null)] {}
jgruber1 2014/08/08 09:04:02 Done.
+ parameters[0] = 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