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

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

Issue 1011403003: cps-ir: Set runtime type information for new objects that require it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add parameter for each type variable to the JS-factory. Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 for basic functionality. 6 // Tests for basic functionality.
7 7
8 library basic_tests; 8 library basic_tests;
9 9
10 import 'js_backend_cps_ir.dart'; 10 import 'js_backend_cps_ir.dart';
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 function() { 104 function() {
105 return null; 105 return null;
106 }"""), 106 }"""),
107 // Constructor invocation 107 // Constructor invocation
108 const TestEntry(""" 108 const TestEntry("""
109 main() { 109 main() {
110 print(new Set()); 110 print(new Set());
111 print(new Set.from([1, 2, 3])); 111 print(new Set.from([1, 2, 3]));
112 }""", r""" 112 }""", r"""
113 function() { 113 function() {
114 P.print(P.Set_Set()); 114 P.print(P.Set_Set(null));
115 P.print(P.Set_Set$from([1, 2, 3])); 115 P.print(P.Set_Set$from([1, 2, 3], null));
116 return null; 116 return null;
117 }"""), 117 }"""),
118 // Call synthetic constructor. 118 // Call synthetic constructor.
119 const TestEntry(""" 119 const TestEntry("""
120 class C {} 120 class C {}
121 main() { 121 main() {
122 print(new C()); 122 print(new C());
123 }"""), 123 }"""),
124 // Method invocation 124 // Method invocation
125 const TestEntry(""" 125 const TestEntry("""
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 function() { 175 function() {
176 V.foo(42); 176 V.foo(42);
177 return null; 177 return null;
178 }""") 178 }""")
179 ]; 179 ];
180 180
181 181
182 void main() { 182 void main() {
183 runTests(tests); 183 runTests(tests);
184 } 184 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698