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 /// This library defines runtime operations on objects used by the code | 5 /// This library defines runtime operations on objects used by the code |
6 /// generator. | 6 /// generator. |
7 part of dart._runtime; | 7 part of dart._runtime; |
8 | 8 |
9 class InvocationImpl extends Invocation { | 9 class InvocationImpl extends Invocation { |
10 final Symbol memberName; | 10 final Symbol memberName; |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 if (obj != null && getExtensionType(obj) != null) { | 840 if (obj != null && getExtensionType(obj) != null) { |
841 return JS('', 'dartx.#', name); | 841 return JS('', 'dartx.#', name); |
842 } | 842 } |
843 | 843 |
844 // Check for certain names that we can't use in JS | 844 // Check for certain names that we can't use in JS |
845 if (name == 'constructor' || name == 'prototype') { | 845 if (name == 'constructor' || name == 'prototype') { |
846 name = '+' + name; | 846 name = '+' + name; |
847 } | 847 } |
848 return name; | 848 return name; |
849 } | 849 } |
| 850 |
| 851 /// Emulates the implicit "loadLibrary" function provided by a deferred library. |
| 852 /// |
| 853 /// Libraries are not actually deferred in DDC, so this just returns a future |
| 854 /// that completes immediately. |
| 855 Future loadLibrary() => new Future.value(); |
OLD | NEW |