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

Side by Side Diff: test/codegen_expected/language/compile_time_constant10_test_none_multi.js

Issue 2211293002: Reify type params on map literals (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove unnecessary null check Created 4 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 unified diff | Download patch
OLDNEW
1 dart_library.library('language/compile_time_constant10_test_none_multi', null, / * Imports */[ 1 dart_library.library('language/compile_time_constant10_test_none_multi', null, / * Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'expect' 3 'expect'
4 ], function load__compile_time_constant10_test_none_multi(exports, dart_sdk, exp ect) { 4 ], function load__compile_time_constant10_test_none_multi(exports, dart_sdk, exp ect) {
5 'use strict'; 5 'use strict';
6 const core = dart_sdk.core; 6 const core = dart_sdk.core;
7 const dart = dart_sdk.dart; 7 const dart = dart_sdk.dart;
8 const dartx = dart_sdk.dartx; 8 const dartx = dart_sdk.dartx;
9 const expect$ = expect.expect; 9 const expect$ = expect.expect;
10 const compile_time_constant10_test_none_multi = Object.create(null); 10 const compile_time_constant10_test_none_multi = Object.create(null);
(...skipping 16 matching lines...) Expand all
27 compile_time_constant10_test_none_multi.i1 = 1; 27 compile_time_constant10_test_none_multi.i1 = 1;
28 compile_time_constant10_test_none_multi.i2 = 2; 28 compile_time_constant10_test_none_multi.i2 = 2;
29 compile_time_constant10_test_none_multi.d1 = 1.5; 29 compile_time_constant10_test_none_multi.d1 = 1.5;
30 compile_time_constant10_test_none_multi.d2 = 2.5; 30 compile_time_constant10_test_none_multi.d2 = 2.5;
31 compile_time_constant10_test_none_multi.b1 = true; 31 compile_time_constant10_test_none_multi.b1 = true;
32 compile_time_constant10_test_none_multi.b2 = false; 32 compile_time_constant10_test_none_multi.b2 = false;
33 compile_time_constant10_test_none_multi.s1 = "1"; 33 compile_time_constant10_test_none_multi.s1 = "1";
34 compile_time_constant10_test_none_multi.s2 = "2"; 34 compile_time_constant10_test_none_multi.s2 = "2";
35 compile_time_constant10_test_none_multi.l1 = dart.constList([1, 2], core.int); 35 compile_time_constant10_test_none_multi.l1 = dart.constList([1, 2], core.int);
36 compile_time_constant10_test_none_multi.l2 = dart.constList([2, 3], core.int); 36 compile_time_constant10_test_none_multi.l2 = dart.constList([2, 3], core.int);
37 compile_time_constant10_test_none_multi.m1 = dart.const(dart.map({x: 1})); 37 compile_time_constant10_test_none_multi.m1 = dart.const(dart.map({x: 1}, core. String, core.int));
38 compile_time_constant10_test_none_multi.m2 = dart.const(dart.map({x: 2})); 38 compile_time_constant10_test_none_multi.m2 = dart.const(dart.map({x: 2}, core. String, core.int));
39 compile_time_constant10_test_none_multi.c1 = dart.const(new compile_time_const ant10_test_none_multi.C(1)); 39 compile_time_constant10_test_none_multi.c1 = dart.const(new compile_time_const ant10_test_none_multi.C(1));
40 compile_time_constant10_test_none_multi.c2 = dart.const(new compile_time_const ant10_test_none_multi.C(2)); 40 compile_time_constant10_test_none_multi.c2 = dart.const(new compile_time_const ant10_test_none_multi.C(2));
41 compile_time_constant10_test_none_multi.f1 = function() { 41 compile_time_constant10_test_none_multi.f1 = function() {
42 }; 42 };
43 dart.fn(compile_time_constant10_test_none_multi.f1, VoidTodynamic()); 43 dart.fn(compile_time_constant10_test_none_multi.f1, VoidTodynamic());
44 compile_time_constant10_test_none_multi.f2 = function() { 44 compile_time_constant10_test_none_multi.f2 = function() {
45 }; 45 };
46 dart.fn(compile_time_constant10_test_none_multi.f2, VoidTodynamic()); 46 dart.fn(compile_time_constant10_test_none_multi.f2, VoidTodynamic());
47 compile_time_constant10_test_none_multi.id = core.identical; 47 compile_time_constant10_test_none_multi.id = core.identical;
48 compile_time_constant10_test_none_multi.CT = class CT extends core.Object { 48 compile_time_constant10_test_none_multi.CT = class CT extends core.Object {
49 new(x1, x2) { 49 new(x1, x2) {
50 this.x1 = x1; 50 this.x1 = x1;
51 this.x2 = x2; 51 this.x2 = x2;
52 this.id = core.identical(x1, x2); 52 this.id = core.identical(x1, x2);
53 } 53 }
54 test(expect, name) { 54 test(expect, name) {
55 dart.dcall(expect, this.id, dart.str`${name}: identical(${this.x1},${this. x2})`); 55 dart.dcall(expect, this.id, dart.str`${name}: identical(${this.x1},${this. x2})`);
56 } 56 }
57 }; 57 };
58 dart.setSignature(compile_time_constant10_test_none_multi.CT, { 58 dart.setSignature(compile_time_constant10_test_none_multi.CT, {
59 constructors: () => ({new: dart.definiteFunctionType(compile_time_constant10 _test_none_multi.CT, [dart.dynamic, dart.dynamic])}), 59 constructors: () => ({new: dart.definiteFunctionType(compile_time_constant10 _test_none_multi.CT, [dart.dynamic, dart.dynamic])}),
60 methods: () => ({test: dart.definiteFunctionType(dart.void, [dart.functionTy pe(dart.void, [dart.dynamic, dart.dynamic]), dart.dynamic])}) 60 methods: () => ({test: dart.definiteFunctionType(dart.void, [dart.functionTy pe(dart.void, [dart.dynamic, dart.dynamic]), dart.dynamic])})
61 }); 61 });
62 compile_time_constant10_test_none_multi.trueTests = dart.constList([dart.const (new compile_time_constant10_test_none_multi.CT(2 - 1, compile_time_constant10_t est_none_multi.i1)), dart.const(new compile_time_constant10_test_none_multi.CT(1 + 1, compile_time_constant10_test_none_multi.i2)), dart.const(new compile_time_ constant10_test_none_multi.CT(2.5 - 1.0, compile_time_constant10_test_none_multi .d1)), dart.const(new compile_time_constant10_test_none_multi.CT(1.5 + 1.0, comp ile_time_constant10_test_none_multi.d2)), dart.const(new compile_time_constant10 _test_none_multi.CT(false || true, compile_time_constant10_test_none_multi.b1)), dart.const(new compile_time_constant10_test_none_multi.CT(true && false, compil e_time_constant10_test_none_multi.b2)), dart.const(new compile_time_constant10_t est_none_multi.CT(dart.str`${compile_time_constant10_test_none_multi.i1}`, compi le_time_constant10_test_none_multi.s1)), dart.const(new compile_time_constant10_ test_none_multi.CT(dart.str`${compile_time_constant10_test_none_multi.i2}`, comp ile_time_constant10_test_none_multi.s2)), dart.const(new compile_time_constant10 _test_none_multi.CT(dart.constList([compile_time_constant10_test_none_multi.i1, 2], core.int), compile_time_constant10_test_none_multi.l1)), dart.const(new comp ile_time_constant10_test_none_multi.CT(dart.constList([compile_time_constant10_t est_none_multi.i2, 3], core.int), compile_time_constant10_test_none_multi.l2)), dart.const(new compile_time_constant10_test_none_multi.CT(dart.const(dart.map({x : compile_time_constant10_test_none_multi.i1})), compile_time_constant10_test_no ne_multi.m1)), dart.const(new compile_time_constant10_test_none_multi.CT(dart.co nst(dart.map({x: compile_time_constant10_test_none_multi.i2})), compile_time_con stant10_test_none_multi.m2)), dart.const(new compile_time_constant10_test_none_m ulti.CT(dart.const(new compile_time_constant10_test_none_multi.C(compile_time_co nstant10_test_none_multi.i1)), compile_time_constant10_test_none_multi.c1)), dar t.const(new compile_time_constant10_test_none_multi.CT(dart.const(new compile_ti me_constant10_test_none_multi.C(compile_time_constant10_test_none_multi.i2)), co mpile_time_constant10_test_none_multi.c2)), dart.const(new compile_time_constant 10_test_none_multi.CT(compile_time_constant10_test_none_multi.f1, compile_time_c onstant10_test_none_multi.f1)), dart.const(new compile_time_constant10_test_none _multi.CT(compile_time_constant10_test_none_multi.f2, compile_time_constant10_te st_none_multi.f2)), dart.const(new compile_time_constant10_test_none_multi.CT(co mpile_time_constant10_test_none_multi.C.f3, compile_time_constant10_test_none_mu lti.C.f3)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_ti me_constant10_test_none_multi.C.f4, compile_time_constant10_test_none_multi.C.f4 )), dart.const(new compile_time_constant10_test_none_multi.CT(compile_time_const ant10_test_none_multi.id, core.identical))], compile_time_constant10_test_none_m ulti.CT); 62 compile_time_constant10_test_none_multi.trueTests = dart.constList([dart.const (new compile_time_constant10_test_none_multi.CT(2 - 1, compile_time_constant10_t est_none_multi.i1)), dart.const(new compile_time_constant10_test_none_multi.CT(1 + 1, compile_time_constant10_test_none_multi.i2)), dart.const(new compile_time_ constant10_test_none_multi.CT(2.5 - 1.0, compile_time_constant10_test_none_multi .d1)), dart.const(new compile_time_constant10_test_none_multi.CT(1.5 + 1.0, comp ile_time_constant10_test_none_multi.d2)), dart.const(new compile_time_constant10 _test_none_multi.CT(false || true, compile_time_constant10_test_none_multi.b1)), dart.const(new compile_time_constant10_test_none_multi.CT(true && false, compil e_time_constant10_test_none_multi.b2)), dart.const(new compile_time_constant10_t est_none_multi.CT(dart.str`${compile_time_constant10_test_none_multi.i1}`, compi le_time_constant10_test_none_multi.s1)), dart.const(new compile_time_constant10_ test_none_multi.CT(dart.str`${compile_time_constant10_test_none_multi.i2}`, comp ile_time_constant10_test_none_multi.s2)), dart.const(new compile_time_constant10 _test_none_multi.CT(dart.constList([compile_time_constant10_test_none_multi.i1, 2], core.int), compile_time_constant10_test_none_multi.l1)), dart.const(new comp ile_time_constant10_test_none_multi.CT(dart.constList([compile_time_constant10_t est_none_multi.i2, 3], core.int), compile_time_constant10_test_none_multi.l2)), dart.const(new compile_time_constant10_test_none_multi.CT(dart.const(dart.map({x : compile_time_constant10_test_none_multi.i1}, core.String, core.int)), compile_ time_constant10_test_none_multi.m1)), dart.const(new compile_time_constant10_tes t_none_multi.CT(dart.const(dart.map({x: compile_time_constant10_test_none_multi. i2}, core.String, core.int)), compile_time_constant10_test_none_multi.m2)), dart .const(new compile_time_constant10_test_none_multi.CT(dart.const(new compile_tim e_constant10_test_none_multi.C(compile_time_constant10_test_none_multi.i1)), com pile_time_constant10_test_none_multi.c1)), dart.const(new compile_time_constant1 0_test_none_multi.CT(dart.const(new compile_time_constant10_test_none_multi.C(co mpile_time_constant10_test_none_multi.i2)), compile_time_constant10_test_none_mu lti.c2)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_time _constant10_test_none_multi.f1, compile_time_constant10_test_none_multi.f1)), da rt.const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_ test_none_multi.f2, compile_time_constant10_test_none_multi.f2)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_mu lti.C.f3, compile_time_constant10_test_none_multi.C.f3)), dart.const(new compile _time_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi.C.f4 , compile_time_constant10_test_none_multi.C.f4)), dart.const(new compile_time_co nstant10_test_none_multi.CT(compile_time_constant10_test_none_multi.id, core.ide ntical))], compile_time_constant10_test_none_multi.CT);
63 compile_time_constant10_test_none_multi.falseTests = dart.constList([dart.cons t(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_test_no ne_multi.i1, compile_time_constant10_test_none_multi.i2)), dart.const(new compil e_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi.d1, compile_time_constant10_test_none_multi.d2)), dart.const(new compile_time_const ant10_test_none_multi.CT(compile_time_constant10_test_none_multi.b1, compile_tim e_constant10_test_none_multi.b2)), dart.const(new compile_time_constant10_test_n one_multi.CT(compile_time_constant10_test_none_multi.s1, compile_time_constant10 _test_none_multi.s2)), dart.const(new compile_time_constant10_test_none_multi.CT (compile_time_constant10_test_none_multi.l1, compile_time_constant10_test_none_m ulti.l2)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_tim e_constant10_test_none_multi.m1, compile_time_constant10_test_none_multi.m2)), d art.const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10 _test_none_multi.c1, compile_time_constant10_test_none_multi.c2)), dart.const(ne w compile_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_m ulti.f1, compile_time_constant10_test_none_multi.f2)), dart.const(new compile_ti me_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi.i1, com pile_time_constant10_test_none_multi.d1)), dart.const(new compile_time_constant1 0_test_none_multi.CT(compile_time_constant10_test_none_multi.d1, compile_time_co nstant10_test_none_multi.b1)), dart.const(new compile_time_constant10_test_none_ multi.CT(compile_time_constant10_test_none_multi.b1, compile_time_constant10_tes t_none_multi.s1)), dart.const(new compile_time_constant10_test_none_multi.CT(com pile_time_constant10_test_none_multi.s1, compile_time_constant10_test_none_multi .l1)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_time_co nstant10_test_none_multi.l1, compile_time_constant10_test_none_multi.m1)), dart. const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_tes t_none_multi.m1, compile_time_constant10_test_none_multi.c1)), dart.const(new co mpile_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi .c1, compile_time_constant10_test_none_multi.f1)), dart.const(new compile_time_c onstant10_test_none_multi.CT(compile_time_constant10_test_none_multi.f1, compile _time_constant10_test_none_multi.C.f3)), dart.const(new compile_time_constant10_ test_none_multi.CT(compile_time_constant10_test_none_multi.C.f3, core.identical) ), dart.const(new compile_time_constant10_test_none_multi.CT(core.identical, com pile_time_constant10_test_none_multi.i1))], compile_time_constant10_test_none_mu lti.CT); 63 compile_time_constant10_test_none_multi.falseTests = dart.constList([dart.cons t(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_test_no ne_multi.i1, compile_time_constant10_test_none_multi.i2)), dart.const(new compil e_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi.d1, compile_time_constant10_test_none_multi.d2)), dart.const(new compile_time_const ant10_test_none_multi.CT(compile_time_constant10_test_none_multi.b1, compile_tim e_constant10_test_none_multi.b2)), dart.const(new compile_time_constant10_test_n one_multi.CT(compile_time_constant10_test_none_multi.s1, compile_time_constant10 _test_none_multi.s2)), dart.const(new compile_time_constant10_test_none_multi.CT (compile_time_constant10_test_none_multi.l1, compile_time_constant10_test_none_m ulti.l2)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_tim e_constant10_test_none_multi.m1, compile_time_constant10_test_none_multi.m2)), d art.const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10 _test_none_multi.c1, compile_time_constant10_test_none_multi.c2)), dart.const(ne w compile_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_m ulti.f1, compile_time_constant10_test_none_multi.f2)), dart.const(new compile_ti me_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi.i1, com pile_time_constant10_test_none_multi.d1)), dart.const(new compile_time_constant1 0_test_none_multi.CT(compile_time_constant10_test_none_multi.d1, compile_time_co nstant10_test_none_multi.b1)), dart.const(new compile_time_constant10_test_none_ multi.CT(compile_time_constant10_test_none_multi.b1, compile_time_constant10_tes t_none_multi.s1)), dart.const(new compile_time_constant10_test_none_multi.CT(com pile_time_constant10_test_none_multi.s1, compile_time_constant10_test_none_multi .l1)), dart.const(new compile_time_constant10_test_none_multi.CT(compile_time_co nstant10_test_none_multi.l1, compile_time_constant10_test_none_multi.m1)), dart. const(new compile_time_constant10_test_none_multi.CT(compile_time_constant10_tes t_none_multi.m1, compile_time_constant10_test_none_multi.c1)), dart.const(new co mpile_time_constant10_test_none_multi.CT(compile_time_constant10_test_none_multi .c1, compile_time_constant10_test_none_multi.f1)), dart.const(new compile_time_c onstant10_test_none_multi.CT(compile_time_constant10_test_none_multi.f1, compile _time_constant10_test_none_multi.C.f3)), dart.const(new compile_time_constant10_ test_none_multi.CT(compile_time_constant10_test_none_multi.C.f3, core.identical) ), dart.const(new compile_time_constant10_test_none_multi.CT(core.identical, com pile_time_constant10_test_none_multi.i1))], compile_time_constant10_test_none_mu lti.CT);
64 compile_time_constant10_test_none_multi.main = function() { 64 compile_time_constant10_test_none_multi.main = function() {
65 for (let i = 0; i < dart.notNull(compile_time_constant10_test_none_multi.tru eTests[dartx.length]); i++) { 65 for (let i = 0; i < dart.notNull(compile_time_constant10_test_none_multi.tru eTests[dartx.length]); i++) {
66 compile_time_constant10_test_none_multi.trueTests[dartx.get](i).test(expec t$.Expect.isTrue, dart.str`true[${i}]`); 66 compile_time_constant10_test_none_multi.trueTests[dartx.get](i).test(expec t$.Expect.isTrue, dart.str`true[${i}]`);
67 } 67 }
68 for (let i = 0; i < dart.notNull(compile_time_constant10_test_none_multi.fal seTests[dartx.length]); i++) { 68 for (let i = 0; i < dart.notNull(compile_time_constant10_test_none_multi.fal seTests[dartx.length]); i++) {
69 compile_time_constant10_test_none_multi.falseTests[dartx.get](i).test(expe ct$.Expect.isFalse, dart.str`false[${i}]`); 69 compile_time_constant10_test_none_multi.falseTests[dartx.get](i).test(expe ct$.Expect.isFalse, dart.str`false[${i}]`);
70 } 70 }
71 }; 71 };
72 dart.fn(compile_time_constant10_test_none_multi.main, VoidTodynamic()); 72 dart.fn(compile_time_constant10_test_none_multi.main, VoidTodynamic());
73 // Exports: 73 // Exports:
74 exports.compile_time_constant10_test_none_multi = compile_time_constant10_test _none_multi; 74 exports.compile_time_constant10_test_none_multi = compile_time_constant10_test _none_multi;
75 }); 75 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698