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

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: merged master Created 4 years, 11 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 | « tool/input_sdk/private/rtti.dart ('k') | tool/input_sdk/private/types.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7035270b740c6616134d11222ad5b701b80d4810
--- /dev/null
+++ b/tool/input_sdk/private/runtime.dart
@@ -0,0 +1,42 @@
+// 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:async';
+import 'dart:collection';
+
+import 'dart:_foreign_helper' show JS, JSExportName, rest, spread;
+import 'dart:_interceptors' show JSArray;
+import 'dart:_js_helper' show SyncIterable, CastErrorImplementation, getTraceFromException;
+
+part 'classes.dart';
+part 'errors.dart';
+part 'generators.dart';
+part 'operations.dart';
+part 'rtti.dart';
+part 'types.dart';
+part 'utils.dart';
+
+// From dart_utils
+final defineLazyClass = JS('', '$defineLazy');
+final defineLazyProperties = JS('', '$defineLazy');
+final defineLazyClassGeneric = JS('', '$defineLazyProperty');
+
+// Renames
+@JSExportName('as')
+final as_ = JS('', '$cast');
+
+@JSExportName('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;
« no previous file with comments | « tool/input_sdk/private/rtti.dart ('k') | tool/input_sdk/private/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698