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

Unified Diff: lib/runtime/dart_runtime.js

Issue 1413683006: Move runtime js files down to lib/runtime/dart (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/typed_data.js ('k') | lib/runtime/dart_utils.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_runtime.js
diff --git a/lib/runtime/dart_runtime.js b/lib/runtime/dart_runtime.js
deleted file mode 100644
index a5e5acc791dd1fd772ed81de51243a90b50f0d3d..0000000000000000000000000000000000000000
--- a/lib/runtime/dart_runtime.js
+++ /dev/null
@@ -1,121 +0,0 @@
-// Copyright (c) 2015, 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.
-
-dart_library.library('dart_runtime/dart', null, /* Imports */[
- 'dart_runtime/_classes',
- 'dart_runtime/_errors',
- 'dart_runtime/_generators',
- 'dart_runtime/_operations',
- 'dart_runtime/_rtti',
- 'dart_runtime/_types',
-], /* Lazy Imports */[
- 'dart/_js_helper'
-], function(exports, classes, errors, generators, operations, rtti, types,
- _js_helper) {
- 'use strict';
-
- function _export(value) {
- if (value) return value;
- console.log("Re-exporting null field: " + name);
- throw "Bad export";
- }
-
- function exportFrom(value, names) {
- for (let name of names) {
- exports[name] = _export(value[name]);
- }
- }
-
- exports.global = typeof window == "undefined" ? global : window;
- exports.JsSymbol = _export(Symbol);
-
- // TODO(vsm): This is referenced (as init.globalState) from
- // isolate_helper.dart. Where should it go?
- // See: https://github.com/dart-lang/dev_compiler/issues/164
- exports.globalState = null;
- _js_helper.checkNum = operations.notNull;
-
- // Re-exports
-
- // From classes
- exportFrom(classes, [
- 'bind',
- 'classGetConstructorType',
- 'dartx',
- 'defineNamedConstructor',
- 'defineExtensionNames',
- 'defineExtensionMembers',
- 'generic',
- 'implements',
- 'list',
- 'metadata',
- 'mixin',
- 'registerExtension',
- 'setBaseClass',
- 'setSignature',
- 'virtualField'
- ]);
-
- exportFrom(generators, [
- 'syncStar',
- 'async',
- 'asyncStar'
- ]);
-
- // From dart_utils
- exportFrom(dart_utils, ['copyProperties', 'export']);
- // Renames
- exports.defineLazyClass = _export(dart_utils.defineLazy);
- exports.defineLazyProperties = _export(dart_utils.defineLazy);
- exports.defineLazyClassGeneric = _export(dart_utils.defineLazyProperty);
-
- // From operations
- exportFrom(operations, [
- 'JsIterator',
- 'arity',
- 'asInt',
- 'assert',
- 'const',
- 'dcall',
- 'dindex',
- 'dload',
- 'dput',
- 'dsend',
- 'dsetindex',
- 'equals',
- 'hashCode',
- 'map',
- 'noSuchMethod',
- 'notNull',
- 'nullSafe',
- 'stackPrint',
- 'stackTrace',
- 'strongInstanceOf',
- 'throw',
- 'toString',
- ])
- // Renames
- exports.as = _export(operations.cast);
- exports.is = _export(operations.instanceOf);
-
- // From types
- exportFrom(types, [
- 'bottom',
- 'definiteFunctionType',
- 'dynamic',
- 'functionType',
- 'jsobject',
- 'typedef',
- 'typeName',
- 'void',
- ]);
-
- // From rtti
- exportFrom(rtti, [
- 'fn',
- 'realRuntimeType',
- 'runtimeType',
- ]);
-
-});
« no previous file with comments | « lib/runtime/dart/typed_data.js ('k') | lib/runtime/dart_utils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698