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

Unified Diff: tool/input_sdk/private/runtime.dart

Issue 1530563003: Generate all runtime files from dart. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Reverted to new .dart files in input_sdk: please compare them against previous patchset Created 5 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 side-by-side diff with in-line comments
Download patch
Index: tool/input_sdk/private/runtime.dart
diff --git a/tool/input_sdk/private/runtime.dart b/tool/input_sdk/private/runtime.dart
new file mode 100644
index 0000000000000000000000000000000000000000..bd491feabaf751a2537295c7bafb411b6789d47d
--- /dev/null
+++ b/tool/input_sdk/private/runtime.dart
@@ -0,0 +1,106 @@
+// 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.
+
+library dart._runtime;
+import 'dart:_utils';
+import 'dart:_operations';
+import 'dart:_foreign_helper' show JS, JsName;
+
+export 'dart:_classes' show
+ bind,
+ classGetConstructorType,
+ dartx,
+ defineNamedConstructor,
+ defineExtensionNames,
+ defineExtensionMembers,
+ generic,
+ list,
+ metadata,
+ mixin,
+ registerExtension,
+ setBaseClass,
+ setSignature,
+ virtualField;
+
+@JsName('implements')
+export 'dart:_classes' show implements_;
+
+export 'dart:_generators' show
+ syncStar,
+ asyncStar;
+
+@JsName('async')
+export 'dart:_generators' show async_;
+
+export 'dart:_operations' show
+ JsIterator,
+ arity,
+ asInt,
+ dcall,
+ dindex,
+ dload,
+ dput,
+ dsend,
+ dsetindex,
+ equals,
+ hashCode,
+ map,
+ noSuchMethod,
+ notNull,
+ nullSafe,
+ stackPrint,
+ stackTrace,
+ strongInstanceOf,
+ toString;
+
+@JsName('assert')
+export 'dart:_operations' show assert_;
+@JsName('const')
+export 'dart:_operations' show const_;
+@JsName('throw')
+export 'dart:_operations' show throw_;
+
+export 'dart:_types' show
+ bottom,
+ definiteFunctionType,
+ functionType,
+ jsobject,
+ typedef,
+ typeName;
+
+@JsName('dynamic')
+export 'dart:_types' show dynamicR;
+@JsName('void')
+export 'dart:_types' show voidR;
+
+export 'dart:_rtti' show
+ fn,
+ realRuntimeType,
+ runtimeType;
+
+export 'dart:_utils' show copyProperties;
+@JsName('export')
+export 'dart:_utils' show export_;
+
+// From dart_utils
+final defineLazyClass = JS('', '$defineLazy');
+final defineLazyProperties = JS('', '$defineLazy');
+final defineLazyClassGeneric = JS('', '$defineLazyProperty');
+
+// Renames
+@JsName('as')
+final as_ = JS('', '$cast');
+
+@JsName('is')
+final is_ = JS('', '$instanceOf');
+
+final global = JS('', 'typeof window == "undefined" ? global : window');
+final JsSymbol = JS('', '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;
+// TODO(ochafik).
+// _js_helper.checkNum = operations.notNull;

Powered by Google App Engine
This is Rietveld 408576698