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

Side by Side Diff: test/codegen/expect/constructors.js

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Optimize away some nonnull checks Created 5 years, 9 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 var constructors; 1 var constructors;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class A extends dart.Object { 4 class A extends dart.Object {
5 } 5 }
6 class B extends dart.Object { 6 class B extends dart.Object {
7 B() { 7 B() {
8 } 8 }
9 } 9 }
10 class C extends dart.Object { 10 class C extends dart.Object {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 } 71 }
72 dart.defineNamedConstructor(K, 'withS'); 72 dart.defineNamedConstructor(K, 'withS');
73 class L extends dart.Object { 73 class L extends dart.Object {
74 L(foo) { 74 L(foo) {
75 this.foo = foo; 75 this.foo = foo;
76 } 76 }
77 } 77 }
78 class M extends L { 78 class M extends L {
79 M$named(x) { 79 M$named(x) {
80 super.L(x + 42); 80 super.L(dart.notNull(x) + 42);
81 } 81 }
82 } 82 }
83 dart.defineNamedConstructor(M, 'named'); 83 dart.defineNamedConstructor(M, 'named');
84 class N extends M { 84 class N extends M {
85 N$named(y) { 85 N$named(y) {
86 super.M$named(y + 100); 86 super.M$named(dart.notNull(y) + 100);
87 } 87 }
88 } 88 }
89 dart.defineNamedConstructor(N, 'named'); 89 dart.defineNamedConstructor(N, 'named');
90 class P extends N { 90 class P extends N {
91 P(z) { 91 P(z) {
92 super.N$named(z + 9000); 92 super.N$named(dart.notNull(z) + 9000);
93 } 93 }
94 P$foo(x) { 94 P$foo(x) {
95 this.P(x + 42); 95 this.P(dart.notNull(x) + 42);
96 } 96 }
97 P$bar() { 97 P$bar() {
98 this.P$foo(1); 98 this.P$foo(1);
99 } 99 }
100 } 100 }
101 dart.defineNamedConstructor(P, 'foo'); 101 dart.defineNamedConstructor(P, 'foo');
102 dart.defineNamedConstructor(P, 'bar'); 102 dart.defineNamedConstructor(P, 'bar');
103 // Exports: 103 // Exports:
104 exports.A = A; 104 exports.A = A;
105 exports.B = B; 105 exports.B = B;
106 exports.C = C; 106 exports.C = C;
107 exports.C2 = C2; 107 exports.C2 = C2;
108 exports.D = D; 108 exports.D = D;
109 exports.E = E; 109 exports.E = E;
110 exports.F = F; 110 exports.F = F;
111 exports.G = G; 111 exports.G = G;
112 exports.H = H; 112 exports.H = H;
113 exports.I = I; 113 exports.I = I;
114 exports.J = J; 114 exports.J = J;
115 exports.K = K; 115 exports.K = K;
116 exports.L = L; 116 exports.L = L;
117 exports.M = M; 117 exports.M = M;
118 exports.N = N; 118 exports.N = N;
119 exports.P = P; 119 exports.P = P;
120 })(constructors || (constructors = {})); 120 })(constructors || (constructors = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698