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

Side by Side Diff: tests/compiler/dart2js/kernel/closed_world2_test.dart

Issue 2861733002: Handle const Symbol(...) in kernel_impact (Closed)
Patch Set: Created 3 years, 7 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 // Partial test that the closed world computed from [WorldImpact]s derived from 5 // Partial test that the closed world computed from [WorldImpact]s derived from
6 // kernel is equivalent to the original computed from resolution. 6 // kernel is equivalent to the original computed from resolution.
7 library dart2js.kernel.closed_world2_test; 7 library dart2js.kernel.closed_world2_test;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 @NoInline() 80 @NoInline()
81 main() { 81 main() {
82 print('Hello World'); 82 print('Hello World');
83 ''.contains; // Trigger member closurization. 83 ''.contains; // Trigger member closurization.
84 new Element.div(); 84 new Element.div();
85 new ClassWithSetter().setter = null; 85 new ClassWithSetter().setter = null;
86 new Class1().method1(); 86 new Class1().method1();
87 new Class2().method2(); 87 new Class2().method2();
88 new Class2().method3(); 88 new Class2().method3();
89 null is List<int>; 89 null is List<int>; // Use generic test
90 method1(); // Both top level and instance method named 'method1' are live. 90 method1(); // Both top level and instance method named 'method1' are live.
91 #main; // Use a const symbol. 91 #main; // Use a const symbol.
92 new Int8List(0); 92 new Int8List(0); // Use redirect factory to abstract native class
93 } 93 }
94 ''' 94 '''
95 }; 95 };
96 96
97 main(List<String> args) { 97 main(List<String> args) {
98 asyncTest(() async { 98 asyncTest(() async {
99 await mainInternal(args); 99 await mainInternal(args);
100 }); 100 });
101 } 101 }
102 102
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 277
278 classes2.add(cls2); 278 classes2.add(cls2);
279 }); 279 });
280 env2.forEachClass(lib2, (ClassEntity cls2) { 280 env2.forEachClass(lib2, (ClassEntity cls2) {
281 Expect.isTrue(classes2.contains(cls2), "Extra class $cls2 in $lib2"); 281 Expect.isTrue(classes2.contains(cls2), "Extra class $cls2 in $lib2");
282 }); 282 });
283 }); 283 });
284 284
285 // TODO(johnniwinther): Test the remaining properties of [ElementEnvironment]. 285 // TODO(johnniwinther): Test the remaining properties of [ElementEnvironment].
286 } 286 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | tests/compiler/dart2js/kernel/impact_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698