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

Side by Side Diff: pkg/kernel/testcases/closures/non_void_context.dart.expect

Issue 3007623002: Fix many bugs with closure conversion in checked mode. (Closed)
Patch Set: Review comments Created 3 years, 3 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
OLDNEW
1 library; 1 library;
2 import self as self; 2 import self as self;
3 3
4 static field dynamic v; 4 static field dynamic v;
5 static method main(dynamic arguments) → dynamic { 5 static method main(dynamic arguments) → dynamic {
6 final Vector #context = MakeVector(3); 6 final dynamic #context = MakeVector(3);
7 #context[2] = null; 7 #context[2] = null;
8 (MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #context)).call (87); 8 (MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #context)).call (87);
9 if(!self::v.==(87)) { 9 if(!self::v.==(87)) {
10 throw "Unexpected value in v: ${self::v}"; 10 throw "Unexpected value in v: ${self::v}";
11 } 11 }
12 if(!(#context[2]).==(87)) { 12 if(!(#context[2]).==(87)) {
13 throw "Unexpected value in w: ${#context[2]}"; 13 throw "Unexpected value in w: ${#context[2]}";
14 } 14 }
15 self::v = true; 15 self::v = true;
16 (MakeClosure<() → dynamic>(self::closure#main#function#1, #context)).call(); 16 (MakeClosure<() → dynamic>(self::closure#main#function#1, #context)).call();
17 if(!self::v.==(false)) { 17 if(!self::v.==(false)) {
18 throw "Unexpected value in v: ${self::v}"; 18 throw "Unexpected value in v: ${self::v}";
19 } 19 }
20 if(!(#context[2]).==(false)) { 20 if(!(#context[2]).==(false)) {
21 throw "Unexpected value in w: ${#context[2]}"; 21 throw "Unexpected value in w: ${#context[2]}";
22 } 22 }
23 } 23 }
24 static method closure#main#function(Vector #contextParameter, dynamic x) → dynam ic { 24 static method closure#main#function(dynamic #contextParameter, dynamic x) → dyna mic {
25 return self::v = #contextParameter[2] = x; 25 return self::v = #contextParameter[2] = x;
26 } 26 }
27 static method closure#main#function#1(Vector #contextParameter) → dynamic { 27 static method closure#main#function#1(dynamic #contextParameter) → dynamic {
28 for (; #contextParameter[2] = self::v; ) { 28 for (; #contextParameter[2] = self::v; ) {
29 self::v = false; 29 self::v = false;
30 } 30 }
31 } 31 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/closures/named_closure.dart.expect ('k') | pkg/kernel/testcases/closures/syncstar.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698