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

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

Issue 1188783002: dart2js cps: Overhaul PullIntoInitializers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments Created 5 years, 6 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 // 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 4
5 // Tests of interceptors. 5 // Tests of interceptors.
6 6
7 library constructor_test; 7 library constructor_test;
8 8
9 import 'js_backend_cps_ir.dart'; 9 import 'js_backend_cps_ir.dart';
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 var y; 89 var y;
90 Sub(x, this.y) : super(x) { 90 Sub(x, this.y) : super(x) {
91 print(x); 91 print(x);
92 } 92 }
93 } 93 }
94 main() { 94 main() {
95 print(new Sub(1, 2).x); 95 print(new Sub(1, 2).x);
96 }""", 96 }""",
97 r""" 97 r"""
98 function(x, y) { 98 function(x, y) {
99 var _box_0 = {}, v0; 99 var _box_0 = {}, v0 = new V.Sub(y, new V.Base_closure(_box_0));
100 _box_0._captured_x1_0 = x; 100 _box_0._captured_x1_0 = x;
101 (v0 = new V.Sub(y, new V.Base_closure(_box_0))).Base0$0(); 101 v0.Base0$0();
102 v0.Base$1(_box_0); 102 v0.Base$1(_box_0);
103 v0.Sub$2(x, y); 103 v0.Sub$2(x, y);
104 return v0; 104 return v0;
105 }"""), 105 }"""),
106 106
107 const TestEntry.forMethod('generative_constructor(Sub#)', """ 107 const TestEntry.forMethod('generative_constructor(Sub#)', """
108 foo(x) { 108 foo(x) {
109 print(x); 109 print(x);
110 } 110 }
111 class Base { 111 class Base {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 }""", r""" 264 }""", r"""
265 function() { 265 function() {
266 V.B$(5, P.$int).get$typevar(); 266 V.B$(5, P.$int).get$typevar();
267 return null; 267 return null;
268 }"""), 268 }"""),
269 ]; 269 ];
270 270
271 void main() { 271 void main() {
272 runTests(tests); 272 runTests(tests);
273 } 273 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698