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

Side by Side Diff: pkg/kernel/testcases/closures/closures.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 field dynamic f; 5 static field dynamic f;
6 static method foo() → dynamic { 6 static method foo() → dynamic {
7 core::print(self::f.call(0)); 7 core::print(self::f.call(0));
8 } 8 }
9 static method main(dynamic arguments) → dynamic { 9 static method main(dynamic arguments) → dynamic {
10 final dynamic #context = MakeVector(3); 10 final dynamic #context = MakeVector(3);
11 #context[2] = arguments; 11 #context[2] = arguments;
12 arguments = null;
12 self::f = MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #conte xt); 13 self::f = MakeClosure<(dynamic) → dynamic>(self::closure#main#function, #conte xt);
13 self::foo(); 14 self::foo();
14 } 15 }
15 static method closure#main#function(dynamic #contextParameter, dynamic x) → dyna mic { 16 static method closure#main#function(dynamic #contextParameter, dynamic x) → dyna mic {
16 return (#contextParameter[2]).[](x); 17 return (#contextParameter[2]).[](x);
17 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698