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

Unified Diff: tests/compiler/dart2js/cps_ir/expected/constructor_15.js

Issue 1671073002: dart2js cps: Pull SetFields into field initializer arguments. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Disable tracing of LetCont Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/cps_ir/expected/constructor_15.js
diff --git a/tests/compiler/dart2js/cps_ir/expected/constructor_15.js b/tests/compiler/dart2js/cps_ir/expected/constructor_15.js
new file mode 100644
index 0000000000000000000000000000000000000000..22c0973f22c24d0386533b9124845ef5f9b95b8e
--- /dev/null
+++ b/tests/compiler/dart2js/cps_ir/expected/constructor_15.js
@@ -0,0 +1,19 @@
+// Expectation for test:
+// // Method to test: generative_constructor(A#)
+// class A {
+// var x, y, z;
+// A(x, y) {
+// this.x = x;
+// this.y = y;
+// this.z = this.x / 2;
+// }
+// }
+//
+// main() {
+// print(new A(123, 'sdf').y);
+// try {} finally {} // Do not inline into main.
+// }
+
+function(x, y) {
+ return new V.A(x, y, x / 2);
+}
« no previous file with comments | « tests/compiler/dart2js/cps_ir/constructor_15_test.dart ('k') | tests/compiler/dart2js/cps_ir/input/constructor_15.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698