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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/apiimpl.dart

Issue 11304021: Add NativeEnqueuer to work with the Enqueuer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review fixes Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 leg_apiimpl; 5 library leg_apiimpl;
6 6
7 import 'dart:uri'; 7 import 'dart:uri';
8 8
9 import '../compiler.dart' as api; 9 import '../compiler.dart' as api;
10 import 'dart2jslib.dart' as leg; 10 import 'dart2jslib.dart' as leg;
(...skipping 12 matching lines...) Expand all
23 bool mockableLibraryUsed = false; 23 bool mockableLibraryUsed = false;
24 24
25 Compiler(this.provider, this.handler, this.libraryRoot, this.packageRoot, 25 Compiler(this.provider, this.handler, this.libraryRoot, this.packageRoot,
26 List<String> options) 26 List<String> options)
27 : this.options = options, 27 : this.options = options,
28 super( 28 super(
29 tracer: new ssa.HTracer(), 29 tracer: new ssa.HTracer(),
30 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), 30 enableTypeAssertions: hasOption(options, '--enable-checked-mode'),
31 enableUserAssertions: hasOption(options, '--enable-checked-mode'), 31 enableUserAssertions: hasOption(options, '--enable-checked-mode'),
32 enableMinification: hasOption(options, '--minify'), 32 enableMinification: hasOption(options, '--minify'),
33 enableNativeLiveTypeAnalysis:
34 hasOption(options, '--enable-native-live-type-analysis'),
33 emitJavaScript: !hasOption(options, '--output-type=dart'), 35 emitJavaScript: !hasOption(options, '--output-type=dart'),
34 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), 36 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'),
35 strips: getStrips(options), 37 strips: getStrips(options),
36 enableConcreteTypeInference: 38 enableConcreteTypeInference:
37 hasOption(options, '--enable-concrete-type-inference')) { 39 hasOption(options, '--enable-concrete-type-inference')) {
38 if (!libraryRoot.path.endsWith("/")) { 40 if (!libraryRoot.path.endsWith("/")) {
39 throw new ArgumentError("libraryRoot must end with a /"); 41 throw new ArgumentError("libraryRoot must end with a /");
40 } 42 }
41 if (packageRoot != null && !packageRoot.path.endsWith("/")) { 43 if (packageRoot != null && !packageRoot.path.endsWith("/")) {
42 throw new ArgumentError("packageRoot must end with a /"); 44 throw new ArgumentError("packageRoot must end with a /");
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 handler(translateUri(span.uri, null), span.begin, span.end, 170 handler(translateUri(span.uri, null), span.begin, span.end,
169 message, kind); 171 message, kind);
170 } 172 }
171 } 173 }
172 174
173 bool get isMockCompilation { 175 bool get isMockCompilation {
174 return mockableLibraryUsed 176 return mockableLibraryUsed
175 && (options.indexOf('--allow-mock-compilation') != -1); 177 && (options.indexOf('--allow-mock-compilation') != -1);
176 } 178 }
177 } 179 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698