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

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

Issue 1653453002: Don't use "var" to introduce the deferred_initializer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add test. Created 4 years, 10 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
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 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/backend_api.dart' show 10 import '../common/backend_api.dart' show
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 part 'enqueue.dart'; 56 part 'enqueue.dart';
57 part 'js.dart'; 57 part 'js.dart';
58 part 'scanner.dart'; 58 part 'scanner.dart';
59 part 'ssa.dart'; 59 part 'ssa.dart';
60 60
61 bool maybeEnableNative(Compiler compiler, 61 bool maybeEnableNative(Compiler compiler,
62 LibraryElement library) { 62 LibraryElement library) {
63 String libraryName = library.canonicalUri.toString(); 63 String libraryName = library.canonicalUri.toString();
64 if (library.entryCompilationUnit.script.name.contains( 64 if (library.entryCompilationUnit.script.name.contains(
65 'sdk/tests/compiler/dart2js_native') 65 'sdk/tests/compiler/dart2js_native')
66 || library.entryCompilationUnit.script.name.contains(
67 'sdk/tests/compiler/dart2js_extra')
66 || libraryName == 'dart:async' 68 || libraryName == 'dart:async'
67 || libraryName == 'dart:html' 69 || libraryName == 'dart:html'
68 || libraryName == 'dart:html_common' 70 || libraryName == 'dart:html_common'
69 || libraryName == 'dart:indexed_db' 71 || libraryName == 'dart:indexed_db'
70 || libraryName == 'dart:js' 72 || libraryName == 'dart:js'
71 || libraryName == 'dart:svg' 73 || libraryName == 'dart:svg'
72 || libraryName == 'dart:_native_typed_data' 74 || libraryName == 'dart:_native_typed_data'
73 || libraryName == 'dart:web_audio' 75 || libraryName == 'dart:web_audio'
74 || libraryName == 'dart:web_gl' 76 || libraryName == 'dart:web_gl'
75 || libraryName == 'dart:web_sql' 77 || libraryName == 'dart:web_sql'
76 || compiler.allowNativeExtensions) { 78 || compiler.allowNativeExtensions) {
77 return true; 79 return true;
78 } 80 }
79 return false; 81 return false;
80 } 82 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698