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

Side by Side Diff: tests/compiler/dart2js/serialization/compilation_test.dart

Issue 2057993003: Serialize NativeBehavior for elements (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup. Created 4 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/typechecker.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:compiler/src/compiler.dart'; 9 import 'package:compiler/src/compiler.dart';
10 import 'package:compiler/src/filenames.dart'; 10 import 'package:compiler/src/filenames.dart';
(...skipping 20 matching lines...) Expand all
31 }); 31 });
32 } 32 }
33 33
34 Future compile( 34 Future compile(
35 Uri entryPoint, 35 Uri entryPoint,
36 {Map<String, String> sourceFiles: const <String, String>{}, 36 {Map<String, String> sourceFiles: const <String, String>{},
37 List<Uri> resolutionInputs, 37 List<Uri> resolutionInputs,
38 int index, 38 int index,
39 Test test, 39 Test test,
40 bool verbose: false}) async { 40 bool verbose: false}) async {
41 if (test != null && test.name == 'Disable tree shaking through reflection') {
42 // TODO(johnniwinther): Support serialization of native element data.
43 return;
44 }
45 String testDescription = test != null ? test.name : '${entryPoint}'; 41 String testDescription = test != null ? test.name : '${entryPoint}';
46 String id = index != null ? '$index: ' : ''; 42 String id = index != null ? '$index: ' : '';
47 print('------------------------------------------------------------------'); 43 print('------------------------------------------------------------------');
48 print('compile ${id}${testDescription}'); 44 print('compile ${id}${testDescription}');
49 print('------------------------------------------------------------------'); 45 print('------------------------------------------------------------------');
50 OutputCollector outputCollector = new OutputCollector(); 46 OutputCollector outputCollector = new OutputCollector();
51 await runCompiler( 47 await runCompiler(
52 entryPoint: entryPoint, 48 entryPoint: entryPoint,
53 memorySourceFiles: sourceFiles, 49 memorySourceFiles: sourceFiles,
54 resolutionInputs: resolutionInputs, 50 resolutionInputs: resolutionInputs,
55 options: [], 51 options: [],
56 outputProvider: outputCollector); 52 outputProvider: outputCollector);
57 if (verbose) { 53 if (verbose) {
58 print(outputCollector.getOutput('', 'js')); 54 print(outputCollector.getOutput('', 'js'));
59 } 55 }
60 } 56 }
61 57
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | tests/compiler/dart2js/serialization/helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698