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

Side by Side Diff: tool/input_sdk/private/ddc_runtime/runtime.dart

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart._runtime; 5 library dart._runtime;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread; 10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread;
11 import 'dart:_interceptors' show JSArray; 11 import 'dart:_interceptors' show JSArray;
12 import 'dart:_js_helper' show SyncIterable, CastErrorImplementation, getTraceFro mException; 12 import 'dart:_js_helper' show SyncIterable, CastErrorImplementation, getTraceFro mException;
13 13
14 part 'classes.dart'; 14 part 'classes.dart';
15 part 'errors.dart'; 15 part 'errors.dart';
16 part 'generators.dart'; 16 part 'generators.dart';
17 part 'operations.dart'; 17 part 'operations.dart';
18 part 'rtti.dart'; 18 part 'rtti.dart';
19 part 'types.dart'; 19 part 'types.dart';
20 part 'utils.dart'; 20 part 'utils.dart';
21 21
22 // From dart_utils
23 final defineLazyClass = JS('', '$defineLazy');
24 final defineLazyProperties = JS('', '$defineLazy');
25 final defineLazyClassGeneric = JS('', '$defineLazyProperty');
26
27 // Renames
28 @JSExportName('as')
29 final as_ = JS('', '$cast');
30
31 @JSExportName('is')
32 final is_ = JS('', '$instanceOf');
33
34 @JSExportName('global') 22 @JSExportName('global')
35 final global_ = JS('', 'typeof window == "undefined" ? global : window'); 23 final global_ = JS('', 'typeof window == "undefined" ? global : window');
36 final JsSymbol = JS('', 'Symbol'); 24 final JsSymbol = JS('', 'Symbol');
37 25
38 // TODO(vsm): This is referenced (as init.globalState) from 26 // TODO(vsm): This is referenced (as init.globalState) from
39 // isolate_helper.dart. Where should it go? 27 // isolate_helper.dart. Where should it go?
40 // See: https://github.com/dart-lang/dev_compiler/issues/164 28 // See: https://github.com/dart-lang/dev_compiler/issues/164
41 // exports.globalState = null; 29 // exports.globalState = null;
42 // TODO(ochafik). 30 // TODO(ochafik).
43 // _js_helper.checkNum = operations.notNull; 31 // _js_helper.checkNum = operations.notNull;
OLDNEW
« no previous file with comments | « tool/input_sdk/private/ddc_runtime/rtti.dart ('k') | tool/input_sdk/private/ddc_runtime/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698