OLD | NEW |
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:_debugger' show stackTraceMapper; |
10 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread; | 11 import 'dart:_foreign_helper' show JS, JSExportName, rest, spread; |
11 import 'dart:_interceptors' show JSArray; | 12 import 'dart:_interceptors' show JSArray; |
12 import 'dart:_js_helper' | 13 import 'dart:_js_helper' |
13 show | 14 show |
14 AssertionErrorWithMessage, | 15 AssertionErrorWithMessage, |
15 BooleanConversionAssertionError, | 16 BooleanConversionAssertionError, |
16 CastErrorImplementation, | 17 CastErrorImplementation, |
17 getTraceFromException, | 18 getTraceFromException, |
18 Primitives, | 19 Primitives, |
19 TypeErrorImplementation, | 20 TypeErrorImplementation, |
20 StrongModeCastError, | 21 StrongModeCastError, |
21 StrongModeErrorImplementation, | 22 StrongModeErrorImplementation, |
22 StrongModeTypeError, | 23 StrongModeTypeError, |
23 SyncIterable; | 24 SyncIterable; |
24 import 'dart:_internal' as _internal; | 25 import 'dart:_internal' as _internal; |
25 | 26 |
26 part 'classes.dart'; | 27 part 'classes.dart'; |
27 part 'rtti.dart'; | 28 part 'rtti.dart'; |
28 part 'types.dart'; | 29 part 'types.dart'; |
29 part 'errors.dart'; | 30 part 'errors.dart'; |
30 part 'generators.dart'; | 31 part 'generators.dart'; |
31 part 'operations.dart'; | 32 part 'operations.dart'; |
| 33 part 'profile.dart'; |
32 part 'utils.dart'; | 34 part 'utils.dart'; |
33 | 35 |
34 // TODO(vsm): Move polyfill code to dart:html. | 36 // TODO(vsm): Move polyfill code to dart:html. |
35 // Note, native extensions are registered onto types in dart.global. | 37 // Note, native extensions are registered onto types in dart.global. |
36 // This polyfill needs to run before the corresponding dart:html code is run. | 38 // This polyfill needs to run before the corresponding dart:html code is run. |
37 @JSExportName('global') | 39 @JSExportName('global') |
38 final global_ = JS( | 40 final global_ = JS( |
39 '', | 41 '', |
40 ''' | 42 ''' |
41 function () { | 43 function () { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 90 } |
89 } | 91 } |
90 var globalState = (typeof window != "undefined") ? window | 92 var globalState = (typeof window != "undefined") ? window |
91 : (typeof global != "undefined") ? global | 93 : (typeof global != "undefined") ? global |
92 : (typeof self != "undefined") ? self : {}; | 94 : (typeof self != "undefined") ? self : {}; |
93 return globalState; | 95 return globalState; |
94 }() | 96 }() |
95 '''); | 97 '''); |
96 | 98 |
97 final JsSymbol = JS('', 'Symbol'); | 99 final JsSymbol = JS('', 'Symbol'); |
OLD | NEW |