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

Unified Diff: pkg/kernel/testcases/closures/for_loop.dart.expect

Issue 2998803002: [kernel] Support for top-level generic functions. (Closed)
Patch Set: Review comments. Created 3 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
Index: pkg/kernel/testcases/closures/for_loop.dart.expect
diff --git a/pkg/kernel/testcases/closures/for_loop.dart.expect b/pkg/kernel/testcases/closures/for_loop.dart.expect
index 56bd3400cea1c3e61316dc3d32cb61b4503739e1..5d504b8e86cc34a9f75fffac29abdd247f0db4db 100644
--- a/pkg/kernel/testcases/closures/for_loop.dart.expect
+++ b/pkg/kernel/testcases/closures/for_loop.dart.expect
@@ -6,13 +6,13 @@ static const field core::int max = 100;
static method main() → dynamic {
dynamic closures = <dynamic>[];
dynamic closures2 = <dynamic>[];
- final Vector #context = MakeVector(2);
- #context[1] = null;
+ final Vector #context = MakeVector(3);
+ #context[2] = null;
{
- Vector #context = MakeVector(2);
- #context[0] = #context;
- #context[1] = 0;
- for (; (#context[1]).<(self::max); #context = CopyVector(#context), #context[1] = (#context[1]).+(1)) {
+ Vector #context = MakeVector(3);
+ #context[1] = #context;
+ #context[2] = 0;
+ for (; (#context[2]).<(self::max); #context = CopyVector(#context), #context[2] = (#context[2]).+(1)) {
closures.add(MakeClosure<() → dynamic>(self::closure#main#function, #context));
closures2.add(MakeClosure<() → dynamic>(self::closure#main#function#1, #context));
}
@@ -30,9 +30,9 @@ static method main() → dynamic {
}
}
static method closure#main#function(Vector #contextParameter) → dynamic {
- return #contextParameter[0][1] = #contextParameter[1];
+ return #contextParameter[1][2] = #contextParameter[2];
}
static method closure#main#function#1(Vector #contextParameter) → dynamic {
- if(!(#contextParameter[0][1]).==(self::max.-(1)))
- throw "last: ${#contextParameter[0][1]} != ${self::max.-(1)}";
+ if(!(#contextParameter[1][2]).==(self::max.-(1)))
+ throw "last: ${#contextParameter[1][2]} != ${self::max.-(1)}";
}

Powered by Google App Engine
This is Rietveld 408576698