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

Side by Side Diff: test/codegen_expected/language/identical_const_test_08_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/identical_const_test_08_multi', null, /* Imports */[ 1 dart_library.library('language/identical_const_test_08_multi', null, /* Imports */[
2 'dart_sdk', 2 'dart_sdk',
3 'expect' 3 'expect'
4 ], function load__identical_const_test_08_multi(exports, dart_sdk, expect) { 4 ], function load__identical_const_test_08_multi(exports, dart_sdk, expect) {
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 identical_const_test_08_multi = Object.create(null); 10 const identical_const_test_08_multi = Object.create(null);
11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))(); 12 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun ctionType(dart.dynamic, [dart.dynamic])))();
13 identical_const_test_08_multi.f = function() { 13 identical_const_test_08_multi.f = function() {
14 }; 14 };
15 dart.fn(identical_const_test_08_multi.f, VoidTodynamic()); 15 dart.fn(identical_const_test_08_multi.f, VoidTodynamic());
16 identical_const_test_08_multi.g = 1; 16 identical_const_test_08_multi.g = 1;
17 identical_const_test_08_multi.identical_ff = core.identical(identical_const_te st_08_multi.f, identical_const_test_08_multi.f); 17 identical_const_test_08_multi.identical_ff = core.identical(identical_const_te st_08_multi.f, identical_const_test_08_multi.f);
18 identical_const_test_08_multi.identical_fg = core.identical(identical_const_te st_08_multi.f, identical_const_test_08_multi.g); 18 identical_const_test_08_multi.identical_fg = core.identical(identical_const_te st_08_multi.f, identical_const_test_08_multi.g);
19 identical_const_test_08_multi.identical_gf = core.identical(identical_const_te st_08_multi.g, identical_const_test_08_multi.f); 19 identical_const_test_08_multi.identical_gf = core.identical(identical_const_te st_08_multi.g, identical_const_test_08_multi.f);
20 identical_const_test_08_multi.identical_gg = core.identical(identical_const_te st_08_multi.g, identical_const_test_08_multi.g); 20 identical_const_test_08_multi.identical_gg = core.identical(identical_const_te st_08_multi.g, identical_const_test_08_multi.g);
21 identical_const_test_08_multi.a = dart.const(dart.map([true, 0])); 21 identical_const_test_08_multi.a = dart.const(dart.map([true, 0], core.bool, co re.int));
22 identical_const_test_08_multi.b = dart.const(dart.map([false, 0])); 22 identical_const_test_08_multi.b = dart.const(dart.map([false, 0], core.bool, c ore.int));
23 identical_const_test_08_multi.use = function(x) { 23 identical_const_test_08_multi.use = function(x) {
24 return x; 24 return x;
25 }; 25 };
26 dart.fn(identical_const_test_08_multi.use, dynamicTodynamic()); 26 dart.fn(identical_const_test_08_multi.use, dynamicTodynamic());
27 identical_const_test_08_multi.main = function() { 27 identical_const_test_08_multi.main = function() {
28 identical_const_test_08_multi.use(identical_const_test_08_multi.a); 28 identical_const_test_08_multi.use(identical_const_test_08_multi.a);
29 identical_const_test_08_multi.use(identical_const_test_08_multi.b); 29 identical_const_test_08_multi.use(identical_const_test_08_multi.b);
30 expect$.Expect.isFalse(identical_const_test_08_multi.identical_gf); 30 expect$.Expect.isFalse(identical_const_test_08_multi.identical_gf);
31 }; 31 };
32 dart.fn(identical_const_test_08_multi.main, VoidTodynamic()); 32 dart.fn(identical_const_test_08_multi.main, VoidTodynamic());
33 // Exports: 33 // Exports:
34 exports.identical_const_test_08_multi = identical_const_test_08_multi; 34 exports.identical_const_test_08_multi = identical_const_test_08_multi;
35 }); 35 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698