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

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

Issue 11416257: Revert "Add @JSName annotation for native fields and methods." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/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) 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 13 matching lines...) Expand all
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: 33 enableNativeLiveTypeAnalysis:
34 hasOption(options, '--disable-native-live-type-analysis') 34 hasOption(options, '--enable-native-live-type-analysis'),
35 ? false
36 : hasOption(options, '--enable-native-live-type-analysis'),
37 emitJavaScript: !hasOption(options, '--output-type=dart'), 35 emitJavaScript: !hasOption(options, '--output-type=dart'),
38 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), 36 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'),
39 analyzeAll: hasOption(options, '--analyze-all'), 37 analyzeAll: hasOption(options, '--analyze-all'),
40 rejectDeprecatedFeatures: 38 rejectDeprecatedFeatures:
41 hasOption(options, '--reject-deprecated-language-features'), 39 hasOption(options, '--reject-deprecated-language-features'),
42 checkDeprecationInSdk: 40 checkDeprecationInSdk:
43 hasOption(options, 41 hasOption(options,
44 '--report-sdk-use-of-deprecated-language-features'), 42 '--report-sdk-use-of-deprecated-language-features'),
45 strips: getStrips(options), 43 strips: getStrips(options),
46 enableConcreteTypeInference: 44 enableConcreteTypeInference:
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 handler(translateUri(span.uri, null), span.begin, span.end, 176 handler(translateUri(span.uri, null), span.begin, span.end,
179 message, kind); 177 message, kind);
180 } 178 }
181 } 179 }
182 180
183 bool get isMockCompilation { 181 bool get isMockCompilation {
184 return mockableLibraryUsed 182 return mockableLibraryUsed
185 && (options.indexOf('--allow-mock-compilation') != -1); 183 && (options.indexOf('--allow-mock-compilation') != -1);
186 } 184 }
187 } 185 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698