| Index: lib/compiler/implementation/lib/coreimpl.dartp
|
| diff --git a/lib/compiler/implementation/lib/coreimpl.dartp b/lib/compiler/implementation/lib/coreimpl.dartp
|
| index 8cf9e7afe0343861b67ced8baa47b3a64a2f01cf..a906769f28eaa6e05966cafba8c1b68f10393791 100644
|
| --- a/lib/compiler/implementation/lib/coreimpl.dartp
|
| +++ b/lib/compiler/implementation/lib/coreimpl.dartp
|
| @@ -2,7 +2,7 @@
|
| // 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.
|
|
|
| -// Patch file for dart:core.
|
| +// Patch file for dart:core's Date class.
|
|
|
| patch class DateImplementation {
|
| patch DateImplementation(int years,
|
| @@ -51,72 +51,3 @@ patch class DateImplementation {
|
|
|
| patch int get weekday() => Primitives.getWeekday(this);
|
| }
|
| -
|
| -patch class RuntimeOptions {
|
| - patch List<String> get arguments() {
|
| - if (_arguments === null) {
|
| - // On first access make a copy of the native arguments.
|
| - _arguments = _nativeArguments.getRange(0, _nativeArguments.length);
|
| - }
|
| - return _arguments;
|
| - }
|
| -
|
| - patch String get executable() {
|
| - return _nativeExecutable;
|
| - }
|
| -
|
| - patch String get script() {
|
| - return _nativeScript;
|
| - }
|
| -
|
| - List<String> _arguments = null;
|
| -
|
| - // This arguments singleton is written to by the embedder if applicable.
|
| - static List<String> _nativeArguments = const [];
|
| -
|
| - // This executable singleton is written to by the embedder if applicable.
|
| - static String _nativeExecutable = '';
|
| -
|
| - // This script singleton is written to by the embedder if applicable.
|
| - static String _nativeScript = '';
|
| -}
|
| -
|
| -patch class _Clock {
|
| - patch static int now() => Primitives.dateNow();
|
| -
|
| - patch static int frequency() => 1000;
|
| -}
|
| -
|
| -patch class ExpandoImplementation<T> {
|
| - patch T operator[](Object object) {
|
| - var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
|
| - return (values === null) ? null : Primitives.getProperty(values, _getKey());
|
| - }
|
| -
|
| - patch operator[]=(Object object, T value) {
|
| - var values = Primitives.getProperty(object, _EXPANDO_PROPERTY_NAME);
|
| - if (values === null) {
|
| - values = new Object();
|
| - Primitives.setProperty(object, _EXPANDO_PROPERTY_NAME, values);
|
| - }
|
| - Primitives.setProperty(values, _getKey(), value);
|
| - }
|
| -
|
| - patch String toString() {
|
| - String key = _getKey();
|
| - return (name === null) ? "Expando:${key}" : "Expando:${name}@${key}";
|
| - }
|
| -
|
| - String _getKey() {
|
| - String key = Primitives.getProperty(this, _KEY_PROPERTY_NAME);
|
| - if (key === null) {
|
| - key = "expando\$key\$${_keyCount++}";
|
| - Primitives.setProperty(this, _KEY_PROPERTY_NAME, key);
|
| - }
|
| - return key;
|
| - }
|
| -
|
| - static final String _KEY_PROPERTY_NAME = 'expando\$key';
|
| - static final String _EXPANDO_PROPERTY_NAME = 'expando\$values';
|
| - static int _keyCount = 0;
|
| -}
|
|
|