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

Unified Diff: pkg/compiler/lib/src/native/native.dart

Issue 693183006: Revert "Move dart2js from sdk/lib/_internal/compiler to pkg/compiler" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/native/native.dart
diff --git a/pkg/compiler/lib/src/native/native.dart b/pkg/compiler/lib/src/native/native.dart
deleted file mode 100644
index 9033735f50874d7f09b9196ea674af37fff8aee3..0000000000000000000000000000000000000000
--- a/pkg/compiler/lib/src/native/native.dart
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library native;
-
-import 'dart:collection' show Queue;
-
-import '../constants/values.dart';
-import '../dart2jslib.dart';
-import '../dart_types.dart';
-import '../elements/elements.dart';
-import '../elements/modelx.dart' show ClassElementX, FunctionElementX;
-import '../js/js.dart' as js;
-import '../js_backend/js_backend.dart';
-import '../js_emitter/js_emitter.dart' show CodeEmitterTask;
-import '../resolution/resolution.dart' show ResolverVisitor;
-import '../scanner/scannerlib.dart';
-import '../ssa/ssa.dart';
-import '../tree/tree.dart';
-import '../universe/universe.dart' show SideEffects;
-import '../util/util.dart';
-
-part 'behavior.dart';
-part 'enqueue.dart';
-part 'js.dart';
-part 'scanner.dart';
-part 'ssa.dart';
-
-void maybeEnableNative(Compiler compiler,
- LibraryElement library) {
- String libraryName = library.canonicalUri.toString();
- if (library.entryCompilationUnit.script.name.contains(
- 'dart/tests/compiler/dart2js_native')
- || libraryName == 'dart:async'
- || libraryName == 'dart:html'
- || libraryName == 'dart:html_common'
- || libraryName == 'dart:indexed_db'
- || libraryName == 'dart:js'
- || libraryName == 'dart:svg'
- || libraryName == 'dart:_native_typed_data'
- || libraryName == 'dart:web_audio'
- || libraryName == 'dart:web_gl'
- || libraryName == 'dart:web_sql') {
- library.canUseNative = true;
- }
-}
-
-// The tags string contains comma-separated 'words' which are either dispatch
-// tags (having JavaScript identifier syntax) and directives that begin with
-// `!`.
-List<String> nativeTagsOfClassRaw(ClassElement cls) {
- String quotedName = cls.nativeTagInfo;
- return quotedName.substring(1, quotedName.length - 1).split(',');
-}
-
-List<String> nativeTagsOfClass(ClassElement cls) {
- return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList();
-}
-
-bool nativeTagsForcedNonLeaf(ClassElement cls) =>
- nativeTagsOfClassRaw(cls).contains('!nonleaf');
« 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