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

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

Issue 2916353002: Support locals in compile_from_dill_test. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/locals_handler.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) 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.compile_from_dill_test; 7 library dart2js.kernel.compile_from_dill_test;
8 8
9 import 'dart:async'; 9 import 'dart:async';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 22 matching lines...) Expand all
33 33
34 const SOURCE = const { 34 const SOURCE = const {
35 'main.dart': ''' 35 'main.dart': '''
36 foo() => 1; 36 foo() => 1;
37 bar() => true; 37 bar() => true;
38 main() { 38 main() {
39 foo(); 39 foo();
40 bar(); 40 bar();
41 []; 41 [];
42 {}; 42 {};
43 return null; 43 var x = null;
44 return x;
44 } 45 }
45 ''' 46 '''
46 }; 47 };
47 48
48 main(List<String> args) { 49 main(List<String> args) {
49 asyncTest(() async { 50 asyncTest(() async {
50 await mainInternal(args); 51 await mainInternal(args);
51 }); 52 });
52 } 53 }
53 54
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 165 }
165 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType]; 166 Map<String, BufferedOutputSink> map2 = collector2.outputMap[outputType];
166 checkSets(map1.keys, map2.keys, 'output', equality); 167 checkSets(map1.keys, map2.keys, 'output', equality);
167 map1.forEach((String name, BufferedOutputSink output1) { 168 map1.forEach((String name, BufferedOutputSink output1) {
168 BufferedOutputSink output2 = map2[name]; 169 BufferedOutputSink output2 = map2[name];
169 Expect.stringEquals(output1.text, output2.text); 170 Expect.stringEquals(output1.text, output2.text);
170 }); 171 });
171 }); 172 });
172 return ResultKind.success; 173 return ResultKind.success;
173 } 174 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/locals_handler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698