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

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

Issue 2851163002: Handle symbol literals in closed_world2_test (Closed)
Patch Set: Reinsert test code 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | 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) 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 main() { 78 main() {
79 print('Hello World'); 79 print('Hello World');
80 ''.contains; // Trigger member closurization. 80 ''.contains; // Trigger member closurization.
81 new Element.div(); 81 new Element.div();
82 new ClassWithSetter().setter = null; 82 new ClassWithSetter().setter = null;
83 new Class1().method1(); 83 new Class1().method1();
84 new Class2().method2(); 84 new Class2().method2();
85 new Class2().method3(); 85 new Class2().method3();
86 null is List<int>; 86 null is List<int>;
87 method1(); // Both top level and instance method named 'method1' are live. 87 method1(); // Both top level and instance method named 'method1' are live.
88 #main; // Use a const symbol.
88 } 89 }
89 ''' 90 '''
90 }; 91 };
91 92
92 main(List<String> args) { 93 main(List<String> args) {
93 asyncTest(() async { 94 asyncTest(() async {
94 await mainInternal(args); 95 await mainInternal(args);
95 }); 96 });
96 } 97 }
97 98
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 371
371 MemoryDillLibraryLoaderTask(KernelToElementMap elementMap, 372 MemoryDillLibraryLoaderTask(KernelToElementMap elementMap,
372 DiagnosticReporter reporter, Measurer measurer, this.program) 373 DiagnosticReporter reporter, Measurer measurer, this.program)
373 : super(elementMap, null, null, reporter, measurer); 374 : super(elementMap, null, null, reporter, measurer);
374 375
375 Future<LoadedLibraries> loadLibrary(Uri resolvedUri, 376 Future<LoadedLibraries> loadLibrary(Uri resolvedUri,
376 {bool skipFileWithPartOfTag: false}) async { 377 {bool skipFileWithPartOfTag: false}) async {
377 return createLoadedLibraries(program); 378 return createLoadedLibraries(program);
378 } 379 }
379 } 380 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698