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

Side by Side Diff: tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart

Issue 909483003: cps2js: Bugfix in named parameters in call to superconstructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Test case Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_visitor.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 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=-DUSE_CPS_IR=true 4 // VMOptions=-DUSE_CPS_IR=true
5 5
6 // Tests of interceptors. 6 // Tests of interceptors.
7 7
8 library constructor_test; 8 library constructor_test;
9 9
10 import 'js_backend_cps_ir.dart'; 10 import 'js_backend_cps_ir.dart';
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 r""" 131 r"""
132 function() { 132 function() {
133 var v0, v1, v2, v3, v4; 133 var v0, v1, v2, v3, v4;
134 v0 = V.foo("y1"); 134 v0 = V.foo("y1");
135 v1 = V.foo("y2"); 135 v1 = V.foo("y2");
136 v2 = V.foo("x1"); 136 v2 = V.foo("x1");
137 v3 = V.foo("x3"); 137 v3 = V.foo("x3");
138 v4 = V.foo("x2"); 138 v4 = V.foo("x2");
139 return new V.Sub(v0, v1, V.foo("y3"), v2, v4, v3); 139 return new V.Sub(v0, v1, V.foo("y3"), v2, v4, v3);
140 }"""), 140 }"""),
141
142
143 const TestEntry.forMethod('generative_constructor(Foo#)', """
144 class Bar {
145 Bar(x, {y, z: 'z', w: '_', q}) {
146 print(x);
147 print(y);
148 print(z);
149 print(w);
150 print(q);
151 }
152 }
153 class Foo extends Bar {
154 Foo() : super('x', y: 'y', w: 'w');
155 }
156 main() {
157 new Foo();
158 }
159 """,
160 r"""
161 function() {
162 var x, y, w, z, q, v0;
163 x = "x";
164 y = "y";
165 w = "w";
166 z = "z";
167 q = null;
168 v0 = new V.Foo();
169 v0.Bar$5$q$w$y$z(x, q, w, y, z);
asgerf 2015/02/10 10:21:17 This is the change done by the fix: v0.Bar$5$q$w$
170 return v0;
171 }"""),
141 ]; 172 ];
142 173
143 void main() { 174 void main() {
144 runTests(tests); 175 runTests(tests);
145 } 176 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698