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

Side by Side Diff: pkg/compiler/lib/src/native/native.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@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/native/js.dart ('k') | pkg/compiler/lib/src/native/scanner.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 native; 5 library native;
6 6
7 import '../compiler.dart' show Compiler; 7 import '../compiler.dart' show Compiler;
8 import '../elements/elements.dart'; 8 import '../elements/elements.dart';
9 9
10 export 'behavior.dart'; 10 export 'behavior.dart';
11 export 'enqueue.dart'; 11 export 'enqueue.dart';
12 export 'js.dart'; 12 export 'js.dart';
13 export 'scanner.dart'; 13 export 'scanner.dart';
14 export 'ssa.dart'; 14 export 'ssa.dart';
15 15
16 bool maybeEnableNative(Compiler compiler, 16 bool maybeEnableNative(Compiler compiler, LibraryElement library) {
17 LibraryElement library) {
18 String libraryName = library.canonicalUri.toString(); 17 String libraryName = library.canonicalUri.toString();
19 if (library.entryCompilationUnit.script.name.contains( 18 if (library.entryCompilationUnit.script.name
20 'sdk/tests/compiler/dart2js_native') 19 .contains('sdk/tests/compiler/dart2js_native') ||
21 || library.entryCompilationUnit.script.name.contains( 20 library.entryCompilationUnit.script.name
22 'sdk/tests/compiler/dart2js_extra') 21 .contains('sdk/tests/compiler/dart2js_extra') ||
23 || libraryName == 'dart:async' 22 libraryName == 'dart:async' ||
24 || libraryName == 'dart:html' 23 libraryName == 'dart:html' ||
25 || libraryName == 'dart:html_common' 24 libraryName == 'dart:html_common' ||
26 || libraryName == 'dart:indexed_db' 25 libraryName == 'dart:indexed_db' ||
27 || libraryName == 'dart:js' 26 libraryName == 'dart:js' ||
28 || libraryName == 'dart:svg' 27 libraryName == 'dart:svg' ||
29 || libraryName == 'dart:_native_typed_data' 28 libraryName == 'dart:_native_typed_data' ||
30 || libraryName == 'dart:web_audio' 29 libraryName == 'dart:web_audio' ||
31 || libraryName == 'dart:web_gl' 30 libraryName == 'dart:web_gl' ||
32 || libraryName == 'dart:web_sql' 31 libraryName == 'dart:web_sql' ||
33 || compiler.options.allowNativeExtensions) { 32 compiler.options.allowNativeExtensions) {
34 return true; 33 return true;
35 } 34 }
36 return false; 35 return false;
37 } 36 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/js.dart ('k') | pkg/compiler/lib/src/native/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698