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

Unified Diff: tests/compiler/dart2js/cps_ir/input/constructor_15.dart

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/input/constructor_15.dart
diff --git a/tests/compiler/dart2js/cps_ir/input/constructor_15.dart b/tests/compiler/dart2js/cps_ir/input/constructor_15.dart
new file mode 100644
index 0000000000000000000000000000000000000000..898b04fa5f7420ed36c1f1aa410e94ef457145f1
--- /dev/null
+++ b/tests/compiler/dart2js/cps_ir/input/constructor_15.dart
@@ -0,0 +1,14 @@
+// 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.
+}
« no previous file with comments | « tests/compiler/dart2js/cps_ir/expected/constructor_15.js ('k') | tests/compiler/dart2js/cps_ir/update_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698