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

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

Issue 1779723002: dart2js cps: Inline constructor bodies that are only called once. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update test expectation Created 4 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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/inline.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Expectation for test: 1 // Expectation for test:
2 // // Method to test: generative_constructor(C#) 2 // // Method to test: generative_constructor(C#)
3 // class C<T> { 3 // class C<T> {
4 // C() { print(T); } 4 // C() { print(T); }
5 // foo() => print(T); 5 // foo() => print(T);
6 // } 6 // }
7 // main() { 7 // main() {
8 // new C<int>(); 8 // new C<int>();
9 // } 9 // }
10 10
11 function($T) { 11 function($T) {
12 var v0 = H.setRuntimeTypeInfo(new V.C(), [$T]); 12 var line = H.S(H.createRuntimeType(H.runtimeTypeToString($T)));
13 v0.C$0(); 13 if (typeof dartPrint == "function")
14 return v0; 14 dartPrint(line);
15 else if (typeof console == "object" && typeof console.log != "undefined")
16 console.log(line);
17 else if (!(typeof window == "object")) {
18 if (!(typeof print == "function"))
19 throw "Unable to print message: " + String(line);
20 print(line);
21 }
22 return H.setRuntimeTypeInfo(new V.C(), [$T]);
15 } 23 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/inline.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698