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

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

Issue 3008923002: Improve the performance of closure-converted code. (Closed)
Patch Set: Additional bug fixes. 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 import "dart:core" as core; 3 import "dart:core" as core;
4 4
5 static method main(core::List<core::String> arguments) → dynamic { 5 static method main(core::List<core::String> arguments) → dynamic {
6 final (dynamic) → dynamic foo = MakeClosure<(dynamic) → dynamic>(self::closure #main#foo, null); 6 final (dynamic) → dynamic foo = MakeClosure<(dynamic) → dynamic>(self::closure #main#foo, null);
7 foo.call(arguments.[](0)).call(); 7 foo.call(arguments.[](0)).call();
8 } 8 }
9 static method closure#main#foo#bar(dynamic #contextParameter) → dynamic { 9 static method closure#main#foo#bar(dynamic #contextParameter) → dynamic {
10 core::print(#contextParameter[2]); 10 core::print(#contextParameter[2]);
11 } 11 }
12 static method closure#main#foo(dynamic #contextParameter, dynamic x) → dynamic { 12 static method closure#main#foo(dynamic #contextParameter, dynamic x) → dynamic {
13 final dynamic #context = MakeVector(3); 13 final dynamic #context = MakeVector(3);
14 #context[1] = #contextParameter; 14 #context[1] = #contextParameter;
15 #context[2] = x; 15 #context[2] = x;
16 x = null;
16 final () → dynamic bar = MakeClosure<() → dynamic>(self::closure#main#foo#bar, #context); 17 final () → dynamic bar = MakeClosure<() → dynamic>(self::closure#main#foo#bar, #context);
17 return bar; 18 return bar;
18 } 19 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/closures/blocks.dart.expect ('k') | pkg/kernel/testcases/closures/closure_in_constructor.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698