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

Side by Side Diff: tests/compiler/dart2js/cps_ir/expected/basic_1.js

Issue 1616143003: Lower map literals to constructor or function calls in builder (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 // Expectation for test: 1 // Expectation for test:
2 // main() { 2 // main() {
3 // var e = 1; 3 // var e = 1;
4 // var l = [1, 2, 3]; 4 // var l = [1, 2, 3];
5 // var m = {'s': 1}; 5 // var m = {'s': 1};
6 // 6 //
7 // print('(' ')'); 7 // print('(' ')');
8 // print('(${true})'); 8 // print('(${true})');
9 // print('(${1})'); 9 // print('(${1})');
10 // print('(${[1, 2, 3]})'); 10 // print('(${[1, 2, 3]})');
11 // print('(${{'s': 1}})'); 11 // print('(${{'s': 1}})');
12 // print('($e)'); 12 // print('($e)');
13 // print('($l)'); 13 // print('($l)');
14 // print('($m)'); 14 // print('($m)');
15 // } 15 // }
16 16
17 function() { 17 function() {
18 var l = [1, 2, 3], m = P.LinkedHashMap_LinkedHashMap$_literal(["s", 1]); 18 var l = [1, 2, 3], m = P.LinkedHashMap__makeLiteral(["s", 1]);
19 P.print("()"); 19 P.print("()");
20 P.print("(true)"); 20 P.print("(true)");
21 P.print("(1)"); 21 P.print("(1)");
22 P.print("(" + P.IterableBase_iterableToFullString([1, 2, 3], "[", "]") + ")"); 22 P.print("(" + P.IterableBase_iterableToFullString([1, 2, 3], "[", "]") + ")");
23 P.print("(" + P.Maps_mapToString(P.LinkedHashMap_LinkedHashMap$_literal(["s", 1])) + ")"); 23 P.print("(" + P.Maps_mapToString(P.LinkedHashMap__makeLiteral(["s", 1])) + ")" );
24 P.print("(1)"); 24 P.print("(1)");
25 P.print("(" + P.IterableBase_iterableToFullString(l, "[", "]") + ")"); 25 P.print("(" + P.IterableBase_iterableToFullString(l, "[", "]") + ")");
26 P.print("(" + P.Maps_mapToString(m) + ")"); 26 P.print("(" + P.Maps_mapToString(m) + ")");
27 } 27 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart ('k') | tests/compiler/dart2js/cps_ir/expected/literals_1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698