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/serialization_compilation_test.dart

Issue 1902363002: Derive source information from ResolvedAst. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/codegen.dart ('k') | tests/compiler/dart2js/serialization_helper.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library dart2js.serialization_compilation_test; 5 library dart2js.serialization_compilation_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/commandline_options.dart'; 10 import 'package:compiler/src/commandline_options.dart';
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 String testDescription = 42 String testDescription =
43 test != null ? test.sourceFiles[entryPoint.path] : '${entryPoint}'; 43 test != null ? test.sourceFiles[entryPoint.path] : '${entryPoint}';
44 print('------------------------------------------------------------------'); 44 print('------------------------------------------------------------------');
45 print('compile ${testDescription}'); 45 print('compile ${testDescription}');
46 print('------------------------------------------------------------------'); 46 print('------------------------------------------------------------------');
47 OutputCollector outputCollector = new OutputCollector(); 47 OutputCollector outputCollector = new OutputCollector();
48 await runCompiler( 48 await runCompiler(
49 entryPoint: entryPoint, 49 entryPoint: entryPoint,
50 memorySourceFiles: test != null ? test.sourceFiles : const {}, 50 memorySourceFiles: test != null ? test.sourceFiles : const {},
51 options: [Flags.disableTypeInference, 51 options: [Flags.disableTypeInference,
52 Flags.disableInlining, 52 Flags.disableInlining],
53 Flags.noSourceMaps],
54 outputProvider: outputCollector, 53 outputProvider: outputCollector,
55 beforeRun: (Compiler compiler) { 54 beforeRun: (Compiler compiler) {
56 deserialize(compiler, serializedData, deserializeResolvedAst: true); 55 deserialize(compiler, serializedData, deserializeResolvedAst: true);
57 }); 56 });
58 if (verbose) { 57 if (verbose) {
59 print(outputCollector.getOutput('', 'js')); 58 print(outputCollector.getOutput('', 'js'));
60 } 59 }
61 } 60 }
62 61
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | tests/compiler/dart2js/serialization_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698