| OLD | NEW |
| 1 var _js_helper; | 1 var _js_helper; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 class NoSideEffects extends core.Object { | 4 class NoSideEffects extends core.Object { |
| 5 NoSideEffects() { | 5 NoSideEffects() { |
| 6 } | 6 } |
| 7 } | 7 } |
| 8 class NoThrows extends core.Object { | 8 class NoThrows extends core.Object { |
| 9 NoThrows() { | 9 NoThrows() { |
| 10 } | 10 } |
| 11 } | 11 } |
| 12 class NoInline extends core.Object { | 12 class NoInline extends core.Object { |
| 13 NoInline() { | 13 NoInline() { |
| 14 } | 14 } |
| 15 } | 15 } |
| 16 class IrRepresentation extends core.Object { | 16 class IrRepresentation extends core.Object { |
| 17 IrRepresentation(value) { | 17 IrRepresentation(value) { |
| 18 this.value = value; | 18 this.value = value; |
| 19 } | 19 } |
| 20 } | 20 } |
| 21 class Native extends core.Object { | 21 class Native extends core.Object { |
| 22 Native(name) { | 22 Native(name) { |
| 23 this.name = name; | 23 this.name = name; |
| 24 } | 24 } |
| 25 } | 25 } |
| 26 let _ = Symbol('_'); | |
| 27 let _throwUnmodifiable = Symbol('_throwUnmodifiable'); | 26 let _throwUnmodifiable = Symbol('_throwUnmodifiable'); |
| 28 let ConstantMap$ = dart.generic(function(K, V) { | 27 let ConstantMap$ = dart.generic(function(K, V) { |
| 29 class ConstantMap extends core.Object { | 28 class ConstantMap extends core.Object { |
| 30 [_]() { | 29 _() { |
| 31 } | 30 } |
| 32 get isEmpty() { | 31 get isEmpty() { |
| 33 return this.length == 0; | 32 return this.length == 0; |
| 34 } | 33 } |
| 35 get isNotEmpty() { | 34 get isNotEmpty() { |
| 36 return !dart.notNull(this.isEmpty); | 35 return !dart.notNull(this.isEmpty); |
| 37 } | 36 } |
| 38 toString() { | 37 toString() { |
| 39 return collection.Maps.mapToString(this); | 38 return collection.Maps.mapToString(this); |
| 40 } | 39 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 51 return dart.as(this[_throwUnmodifiable](), V); | 50 return dart.as(this[_throwUnmodifiable](), V); |
| 52 } | 51 } |
| 53 clear() { | 52 clear() { |
| 54 return this[_throwUnmodifiable](); | 53 return this[_throwUnmodifiable](); |
| 55 } | 54 } |
| 56 addAll(other) { | 55 addAll(other) { |
| 57 return this[_throwUnmodifiable](); | 56 return this[_throwUnmodifiable](); |
| 58 } | 57 } |
| 59 } | 58 } |
| 60 ConstantMap[dart.implements] = () => [core.Map$(K, V)]; | 59 ConstantMap[dart.implements] = () => [core.Map$(K, V)]; |
| 61 dart.defineNamedConstructor(ConstantMap, _); | 60 dart.defineNamedConstructor(ConstantMap, '_'); |
| 62 return ConstantMap; | 61 return ConstantMap; |
| 63 }); | 62 }); |
| 64 let ConstantMap = ConstantMap$(); | 63 let ConstantMap = ConstantMap$(); |
| 65 let _jsObject = Symbol('_jsObject'); | 64 let _jsObject = Symbol('_jsObject'); |
| 66 let _keys = Symbol('_keys'); | 65 let _keys = Symbol('_keys'); |
| 67 let _fetch = Symbol('_fetch'); | 66 let _fetch = Symbol('_fetch'); |
| 68 let ConstantStringMap$ = dart.generic(function(K, V) { | 67 let ConstantStringMap$ = dart.generic(function(K, V) { |
| 69 class ConstantStringMap extends ConstantMap$(K, V) { | 68 class ConstantStringMap extends ConstantMap$(K, V) { |
| 70 [_](length, jsObject, keys) { | 69 _(length, jsObject, keys) { |
| 71 this.length = length; | 70 this.length = length; |
| 72 this[_jsObject] = jsObject; | 71 this[_jsObject] = jsObject; |
| 73 this[_keys] = keys; | 72 this[_keys] = keys; |
| 74 super[_](); | 73 super._(); |
| 75 } | 74 } |
| 76 containsValue(needle) { | 75 containsValue(needle) { |
| 77 return this.values[core.$any](value => dart.equals(value, needle)); | 76 return this.values[core.$any](value => dart.equals(value, needle)); |
| 78 } | 77 } |
| 79 containsKey(key) { | 78 containsKey(key) { |
| 80 if (!(typeof key == 'string')) | 79 if (!(typeof key == 'string')) |
| 81 return false; | 80 return false; |
| 82 if (dart.equals('__proto__', key)) | 81 if (dart.equals('__proto__', key)) |
| 83 return false; | 82 return false; |
| 84 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); | 83 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 99 } | 98 } |
| 100 } | 99 } |
| 101 get keys() { | 100 get keys() { |
| 102 return new (_ConstantMapKeyIterable$(K))(this); | 101 return new (_ConstantMapKeyIterable$(K))(this); |
| 103 } | 102 } |
| 104 get values() { | 103 get values() { |
| 105 return new (_internal.MappedIterable$(K, V))(this[_keys], (key => dart.a
s(this[_fetch](key), V)).bind(this)); | 104 return new (_internal.MappedIterable$(K, V))(this[_keys], (key => dart.a
s(this[_fetch](key), V)).bind(this)); |
| 106 } | 105 } |
| 107 } | 106 } |
| 108 ConstantStringMap[dart.implements] = () => [_internal.EfficientLength]; | 107 ConstantStringMap[dart.implements] = () => [_internal.EfficientLength]; |
| 109 dart.defineNamedConstructor(ConstantStringMap, _); | 108 dart.defineNamedConstructor(ConstantStringMap, '_'); |
| 110 return ConstantStringMap; | 109 return ConstantStringMap; |
| 111 }); | 110 }); |
| 112 let ConstantStringMap = ConstantStringMap$(); | 111 let ConstantStringMap = ConstantStringMap$(); |
| 113 let _protoValue = Symbol('_protoValue'); | 112 let _protoValue = Symbol('_protoValue'); |
| 114 let ConstantProtoMap$ = dart.generic(function(K, V) { | 113 let ConstantProtoMap$ = dart.generic(function(K, V) { |
| 115 class ConstantProtoMap extends ConstantStringMap$(K, V) { | 114 class ConstantProtoMap extends ConstantStringMap$(K, V) { |
| 116 [_](length, jsObject, keys, protoValue) { | 115 _(length, jsObject, keys, protoValue) { |
| 117 this[_protoValue] = protoValue; | 116 this[_protoValue] = protoValue; |
| 118 super[_](dart.as(length, core.int), jsObject, dart.as(keys, core.List$(K
))); | 117 super._(dart.as(length, core.int), jsObject, dart.as(keys, core.List$(K)
)); |
| 119 } | 118 } |
| 120 containsKey(key) { | 119 containsKey(key) { |
| 121 if (!(typeof key == 'string')) | 120 if (!(typeof key == 'string')) |
| 122 return false; | 121 return false; |
| 123 if (dart.equals('__proto__', key)) | 122 if (dart.equals('__proto__', key)) |
| 124 return true; | 123 return true; |
| 125 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); | 124 return jsHasOwnProperty(this[_jsObject], dart.as(key, core.String)); |
| 126 } | 125 } |
| 127 [_fetch](key) { | 126 [_fetch](key) { |
| 128 return dart.equals('__proto__', key) ? this[_protoValue] : jsPropertyAcc
ess(this[_jsObject], dart.as(key, core.String)); | 127 return dart.equals('__proto__', key) ? this[_protoValue] : jsPropertyAcc
ess(this[_jsObject], dart.as(key, core.String)); |
| 129 } | 128 } |
| 130 } | 129 } |
| 131 dart.defineNamedConstructor(ConstantProtoMap, _); | 130 dart.defineNamedConstructor(ConstantProtoMap, '_'); |
| 132 return ConstantProtoMap; | 131 return ConstantProtoMap; |
| 133 }); | 132 }); |
| 134 let ConstantProtoMap = ConstantProtoMap$(); | 133 let ConstantProtoMap = ConstantProtoMap$(); |
| 135 let _map = Symbol('_map'); | 134 let _map = Symbol('_map'); |
| 136 let _ConstantMapKeyIterable$ = dart.generic(function(K) { | 135 let _ConstantMapKeyIterable$ = dart.generic(function(K) { |
| 137 class _ConstantMapKeyIterable extends collection.IterableBase$(K) { | 136 class _ConstantMapKeyIterable extends collection.IterableBase$(K) { |
| 138 _ConstantMapKeyIterable(map) { | 137 _ConstantMapKeyIterable(map) { |
| 139 this[_map] = map; | 138 this[_map] = map; |
| 140 super.IterableBase(); | 139 super.IterableBase(); |
| 141 } | 140 } |
| 142 get [core.$iterator]() { | 141 get [core.$iterator]() { |
| 143 return this[_map][_keys][core.$iterator]; | 142 return this[_map][_keys][core.$iterator]; |
| 144 } | 143 } |
| 145 get [core.$length]() { | 144 get [core.$length]() { |
| 146 return this[_map][_keys][core.$length]; | 145 return this[_map][_keys][core.$length]; |
| 147 } | 146 } |
| 148 } | 147 } |
| 149 return _ConstantMapKeyIterable; | 148 return _ConstantMapKeyIterable; |
| 150 }); | 149 }); |
| 151 let _ConstantMapKeyIterable = _ConstantMapKeyIterable$(); | 150 let _ConstantMapKeyIterable = _ConstantMapKeyIterable$(); |
| 152 let _jsData = Symbol('_jsData'); | 151 let _jsData = Symbol('_jsData'); |
| 153 let _getMap = Symbol('_getMap'); | 152 let _getMap = Symbol('_getMap'); |
| 154 let GeneralConstantMap$ = dart.generic(function(K, V) { | 153 let GeneralConstantMap$ = dart.generic(function(K, V) { |
| 155 class GeneralConstantMap extends ConstantMap$(K, V) { | 154 class GeneralConstantMap extends ConstantMap$(K, V) { |
| 156 GeneralConstantMap(jsData) { | 155 GeneralConstantMap(jsData) { |
| 157 this[_jsData] = jsData; | 156 this[_jsData] = jsData; |
| 158 super[_](); | 157 super._(); |
| 159 } | 158 } |
| 160 [_getMap]() { | 159 [_getMap]() { |
| 161 if (!this.$map) { | 160 if (!this.$map) { |
| 162 let backingMap = new (collection.LinkedHashMap$(K, V))(); | 161 let backingMap = new (collection.LinkedHashMap$(K, V))(); |
| 163 this.$map = fillLiteralMap(this[_jsData], backingMap); | 162 this.$map = fillLiteralMap(this[_jsData], backingMap); |
| 164 } | 163 } |
| 165 return this.$map; | 164 return this.$map; |
| 166 } | 165 } |
| 167 containsValue(needle) { | 166 containsValue(needle) { |
| 168 return this[_getMap]().containsValue(needle); | 167 return this[_getMap]().containsValue(needle); |
| (...skipping 1551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1720 dart.defineNamedConstructor(ReflectionInfo, 'internal'); | 1719 dart.defineNamedConstructor(ReflectionInfo, 'internal'); |
| 1721 ReflectionInfo.REQUIRED_PARAMETERS_INFO = 0; | 1720 ReflectionInfo.REQUIRED_PARAMETERS_INFO = 0; |
| 1722 ReflectionInfo.OPTIONAL_PARAMETERS_INFO = 1; | 1721 ReflectionInfo.OPTIONAL_PARAMETERS_INFO = 1; |
| 1723 ReflectionInfo.FUNCTION_TYPE_INDEX = 2; | 1722 ReflectionInfo.FUNCTION_TYPE_INDEX = 2; |
| 1724 ReflectionInfo.FIRST_DEFAULT_ARGUMENT = 3; | 1723 ReflectionInfo.FIRST_DEFAULT_ARGUMENT = 3; |
| 1725 // Function getMetadata: (int) → dynamic | 1724 // Function getMetadata: (int) → dynamic |
| 1726 function getMetadata(index) { | 1725 function getMetadata(index) { |
| 1727 let metadata = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.MET
ADATA); | 1726 let metadata = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.MET
ADATA); |
| 1728 return metadata[index]; | 1727 return metadata[index]; |
| 1729 } | 1728 } |
| 1730 let _throwFormatException = Symbol('_throwFormatException'); | |
| 1731 let _fromCharCodeApply = Symbol('_fromCharCodeApply'); | |
| 1732 let _mangledNameMatchesType = Symbol('_mangledNameMatchesType'); | |
| 1733 class Primitives extends core.Object { | 1729 class Primitives extends core.Object { |
| 1734 static initializeStatics(id) { | 1730 static initializeStatics(id) { |
| 1735 Primitives.mirrorFunctionCacheName = dart.notNull(Primitives.mirrorFunctio
nCacheName) + `_${id}`; | 1731 Primitives.mirrorFunctionCacheName = dart.notNull(Primitives.mirrorFunctio
nCacheName) + `_${id}`; |
| 1736 Primitives.mirrorInvokeCacheName = dart.notNull(Primitives.mirrorInvokeCac
heName) + `_${id}`; | 1732 Primitives.mirrorInvokeCacheName = dart.notNull(Primitives.mirrorInvokeCac
heName) + `_${id}`; |
| 1737 } | 1733 } |
| 1738 static objectHashCode(object) { | 1734 static objectHashCode(object) { |
| 1739 let hash = dart.as(object.$identityHash, core.int); | 1735 let hash = dart.as(object.$identityHash, core.int); |
| 1740 if (hash == null) { | 1736 if (hash == null) { |
| 1741 hash = Math.random() * 0x3fffffff | 0; | 1737 hash = Math.random() * 0x3fffffff | 0; |
| 1742 object.$identityHash = hash; | 1738 object.$identityHash = hash; |
| 1743 } | 1739 } |
| 1744 return hash; | 1740 return hash; |
| 1745 } | 1741 } |
| 1746 static [_throwFormatException](string) { | 1742 static _throwFormatException(string) { |
| 1747 throw new core.FormatException(string); | 1743 throw new core.FormatException(string); |
| 1748 } | 1744 } |
| 1749 static parseInt(source, radix, handleError) { | 1745 static parseInt(source, radix, handleError) { |
| 1750 if (handleError == null) | 1746 if (handleError == null) |
| 1751 handleError = dart.as(Primitives[_throwFormatException], __CastType0); | 1747 handleError = dart.as(Primitives._throwFormatException, __CastType0); |
| 1752 checkString(source); | 1748 checkString(source); |
| 1753 let match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source)
; | 1749 let match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source)
; |
| 1754 let digitsIndex = 1; | 1750 let digitsIndex = 1; |
| 1755 let hexIndex = 2; | 1751 let hexIndex = 2; |
| 1756 let decimalIndex = 3; | 1752 let decimalIndex = 3; |
| 1757 let nonDecimalHexIndex = 4; | 1753 let nonDecimalHexIndex = 4; |
| 1758 if (radix == null) { | 1754 if (radix == null) { |
| 1759 radix = 10; | 1755 radix = 10; |
| 1760 if (match != null) { | 1756 if (match != null) { |
| 1761 if (dart.dindex(match, hexIndex) != null) { | 1757 if (dart.dindex(match, hexIndex) != null) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 } | 1789 } |
| 1794 } | 1790 } |
| 1795 } | 1791 } |
| 1796 if (match == null) | 1792 if (match == null) |
| 1797 return handleError(source); | 1793 return handleError(source); |
| 1798 return parseInt(source, radix); | 1794 return parseInt(source, radix); |
| 1799 } | 1795 } |
| 1800 static parseDouble(source, handleError) { | 1796 static parseDouble(source, handleError) { |
| 1801 checkString(source); | 1797 checkString(source); |
| 1802 if (handleError == null) | 1798 if (handleError == null) |
| 1803 handleError = dart.as(Primitives[_throwFormatException], __CastType2); | 1799 handleError = dart.as(Primitives._throwFormatException, __CastType2); |
| 1804 if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s
*$/.test(source)) { | 1800 if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s
*$/.test(source)) { |
| 1805 return handleError(source); | 1801 return handleError(source); |
| 1806 } | 1802 } |
| 1807 let result = parseFloat(source); | 1803 let result = parseFloat(source); |
| 1808 if (result.isNaN) { | 1804 if (result.isNaN) { |
| 1809 let trimmed = source.trim(); | 1805 let trimmed = source.trim(); |
| 1810 if (trimmed == 'NaN' || trimmed == '+NaN' || trimmed == '-NaN') { | 1806 if (trimmed == 'NaN' || trimmed == '+NaN' || trimmed == '-NaN') { |
| 1811 return result; | 1807 return result; |
| 1812 } | 1808 } |
| 1813 return handleError(source); | 1809 return handleError(source); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1858 static get isJsshell() { | 1854 static get isJsshell() { |
| 1859 return typeof version == "function" && typeof system == "function"; | 1855 return typeof version == "function" && typeof system == "function"; |
| 1860 } | 1856 } |
| 1861 static currentUri() { | 1857 static currentUri() { |
| 1862 requiresPreamble(); | 1858 requiresPreamble(); |
| 1863 if (!!self.location) { | 1859 if (!!self.location) { |
| 1864 return self.location.href; | 1860 return self.location.href; |
| 1865 } | 1861 } |
| 1866 return null; | 1862 return null; |
| 1867 } | 1863 } |
| 1868 static [_fromCharCodeApply](array) { | 1864 static _fromCharCodeApply(array) { |
| 1869 let result = ""; | 1865 let result = ""; |
| 1870 let kMaxApply = 500; | 1866 let kMaxApply = 500; |
| 1871 let end = array[core.$length]; | 1867 let end = array[core.$length]; |
| 1872 for (let i = 0; dart.notNull(i) < dart.notNull(end); i = dart.notNull(i) +
dart.notNull(kMaxApply)) { | 1868 for (let i = 0; dart.notNull(i) < dart.notNull(end); i = dart.notNull(i) +
dart.notNull(kMaxApply)) { |
| 1873 let subarray = null; | 1869 let subarray = null; |
| 1874 if (dart.notNull(end) <= dart.notNull(kMaxApply)) { | 1870 if (dart.notNull(end) <= dart.notNull(kMaxApply)) { |
| 1875 subarray = array; | 1871 subarray = array; |
| 1876 } else { | 1872 } else { |
| 1877 subarray = array.slice(i, dart.notNull(i) + dart.notNull(kMaxApply) <
dart.notNull(end) ? dart.notNull(i) + dart.notNull(kMaxApply) : end); | 1873 subarray = array.slice(i, dart.notNull(i) + dart.notNull(kMaxApply) <
dart.notNull(end) ? dart.notNull(i) + dart.notNull(kMaxApply) : end); |
| 1878 } | 1874 } |
| 1879 result = result + String.fromCharCode.apply(null, subarray); | 1875 result = result + String.fromCharCode.apply(null, subarray); |
| 1880 } | 1876 } |
| 1881 return result; | 1877 return result; |
| 1882 } | 1878 } |
| 1883 static stringFromCodePoints(codePoints) { | 1879 static stringFromCodePoints(codePoints) { |
| 1884 let a = dart.setType([], core.List$(core.int)); | 1880 let a = dart.setType([], core.List$(core.int)); |
| 1885 for (let i of dart.as(codePoints, core.Iterable)) { | 1881 for (let i of dart.as(codePoints, core.Iterable)) { |
| 1886 if (!(typeof i == 'number')) | 1882 if (!(typeof i == 'number')) |
| 1887 throw new core.ArgumentError(i); | 1883 throw new core.ArgumentError(i); |
| 1888 if (dart.dsend(i, '<=', 65535)) { | 1884 if (dart.dsend(i, '<=', 65535)) { |
| 1889 a[core.$add](dart.as(i, core.int)); | 1885 a[core.$add](dart.as(i, core.int)); |
| 1890 } else if (dart.dsend(i, '<=', 1114111)) { | 1886 } else if (dart.dsend(i, '<=', 1114111)) { |
| 1891 a[core.$add](core.int['+'](55296, dart.dsend(dart.dsend(dart.dsend(i,
'-', 65536), '>>', 10), '&', 1023))); | 1887 a[core.$add](core.int['+'](55296, dart.dsend(dart.dsend(dart.dsend(i,
'-', 65536), '>>', 10), '&', 1023))); |
| 1892 a[core.$add](core.int['+'](56320, dart.dsend(i, '&', 1023))); | 1888 a[core.$add](core.int['+'](56320, dart.dsend(i, '&', 1023))); |
| 1893 } else { | 1889 } else { |
| 1894 throw new core.ArgumentError(i); | 1890 throw new core.ArgumentError(i); |
| 1895 } | 1891 } |
| 1896 } | 1892 } |
| 1897 return Primitives[_fromCharCodeApply](a); | 1893 return Primitives._fromCharCodeApply(a); |
| 1898 } | 1894 } |
| 1899 static stringFromCharCodes(charCodes) { | 1895 static stringFromCharCodes(charCodes) { |
| 1900 for (let i of dart.as(charCodes, core.Iterable)) { | 1896 for (let i of dart.as(charCodes, core.Iterable)) { |
| 1901 if (!(typeof i == 'number')) | 1897 if (!(typeof i == 'number')) |
| 1902 throw new core.ArgumentError(i); | 1898 throw new core.ArgumentError(i); |
| 1903 if (dart.dsend(i, '<', 0)) | 1899 if (dart.dsend(i, '<', 0)) |
| 1904 throw new core.ArgumentError(i); | 1900 throw new core.ArgumentError(i); |
| 1905 if (dart.dsend(i, '>', 65535)) | 1901 if (dart.dsend(i, '>', 65535)) |
| 1906 return Primitives.stringFromCodePoints(charCodes); | 1902 return Primitives.stringFromCodePoints(charCodes); |
| 1907 } | 1903 } |
| 1908 return Primitives[_fromCharCodeApply](dart.as(charCodes, core.List$(core.i
nt))); | 1904 return Primitives._fromCharCodeApply(dart.as(charCodes, core.List$(core.in
t))); |
| 1909 } | 1905 } |
| 1910 static stringFromCharCode(charCode) { | 1906 static stringFromCharCode(charCode) { |
| 1911 if (core.int['<='](0, charCode)) { | 1907 if (core.int['<='](0, charCode)) { |
| 1912 if (dart.dsend(charCode, '<=', 65535)) { | 1908 if (dart.dsend(charCode, '<=', 65535)) { |
| 1913 return String.fromCharCode(charCode); | 1909 return String.fromCharCode(charCode); |
| 1914 } | 1910 } |
| 1915 if (dart.dsend(charCode, '<=', 1114111)) { | 1911 if (dart.dsend(charCode, '<=', 1114111)) { |
| 1916 let bits = dart.dsend(charCode, '-', 65536); | 1912 let bits = dart.dsend(charCode, '-', 65536); |
| 1917 let low = core.int['|'](56320, dart.dsend(bits, '&', 1023)); | 1913 let low = core.int['|'](56320, dart.dsend(bits, '&', 1023)); |
| 1918 let high = core.int['|'](55296, dart.dsend(bits, '>>', 10)); | 1914 let high = core.int['|'](55296, dart.dsend(bits, '>>', 10)); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 } else { | 2102 } else { |
| 2107 bad = true; | 2103 bad = true; |
| 2108 } | 2104 } |
| 2109 }); | 2105 }); |
| 2110 if (bad) { | 2106 if (bad) { |
| 2111 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); | 2107 return Primitives.functionNoSuchMethod(func, positionalArguments, namedA
rguments); |
| 2112 } | 2108 } |
| 2113 positionalArguments[core.$addAll](defaultArguments.values); | 2109 positionalArguments[core.$addAll](defaultArguments.values); |
| 2114 return jsFunction.apply(func, positionalArguments); | 2110 return jsFunction.apply(func, positionalArguments); |
| 2115 } | 2111 } |
| 2116 static [_mangledNameMatchesType](mangledName, type) { | 2112 static _mangledNameMatchesType(mangledName, type) { |
| 2117 return mangledName == type[_typeName]; | 2113 return mangledName == type[_typeName]; |
| 2118 } | 2114 } |
| 2119 static identicalImplementation(a, b) { | 2115 static identicalImplementation(a, b) { |
| 2120 return a == null ? b == null : a === b; | 2116 return a == null ? b == null : a === b; |
| 2121 } | 2117 } |
| 2122 static extractStackTrace(error) { | 2118 static extractStackTrace(error) { |
| 2123 return getTraceFromException(error.$thrownJsError); | 2119 return getTraceFromException(error.$thrownJsError); |
| 2124 } | 2120 } |
| 2125 } | 2121 } |
| 2126 Primitives.mirrorFunctionCacheName = '$cachedFunction'; | 2122 Primitives.mirrorFunctionCacheName = '$cachedFunction'; |
| (...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3705 // Function getIsolateAffinityTag: (String) → String | 3701 // Function getIsolateAffinityTag: (String) → String |
| 3706 function getIsolateAffinityTag(name) { | 3702 function getIsolateAffinityTag(name) { |
| 3707 let isolateTagGetter = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_n
ames.GET_ISOLATE_TAG); | 3703 let isolateTagGetter = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_n
ames.GET_ISOLATE_TAG); |
| 3708 return isolateTagGetter(name); | 3704 return isolateTagGetter(name); |
| 3709 } | 3705 } |
| 3710 let LoadLibraryFunctionType = dart.typedef('LoadLibraryFunctionType', () => da
rt.functionType(async.Future$(core.Null), [])); | 3706 let LoadLibraryFunctionType = dart.typedef('LoadLibraryFunctionType', () => da
rt.functionType(async.Future$(core.Null), [])); |
| 3711 // Function _loadLibraryWrapper: (String) → () → Future<Null> | 3707 // Function _loadLibraryWrapper: (String) → () → Future<Null> |
| 3712 function _loadLibraryWrapper(loadId) { | 3708 function _loadLibraryWrapper(loadId) { |
| 3713 return () => loadDeferredLibrary(loadId); | 3709 return () => loadDeferredLibrary(loadId); |
| 3714 } | 3710 } |
| 3715 let _loadingLibraries = Symbol('_loadingLibraries'); | |
| 3716 let _loadedLibraries = Symbol('_loadedLibraries'); | |
| 3717 dart.defineLazyProperties(exports, { | 3711 dart.defineLazyProperties(exports, { |
| 3718 get [_loadingLibraries]() { | 3712 get _loadingLibraries() { |
| 3719 return dart.map(); | 3713 return dart.map(); |
| 3720 }, | 3714 }, |
| 3721 get [_loadedLibraries]() { | 3715 get _loadedLibraries() { |
| 3722 return new (core.Set$(core.String))(); | 3716 return new (core.Set$(core.String))(); |
| 3723 } | 3717 } |
| 3724 }); | 3718 }); |
| 3725 let DeferredLoadCallback = dart.typedef('DeferredLoadCallback', () => dart.fun
ctionType(dart.void, [])); | 3719 let DeferredLoadCallback = dart.typedef('DeferredLoadCallback', () => dart.fun
ctionType(dart.void, [])); |
| 3726 exports.deferredLoadHook = null; | 3720 exports.deferredLoadHook = null; |
| 3727 // Function loadDeferredLibrary: (String) → Future<Null> | 3721 // Function loadDeferredLibrary: (String) → Future<Null> |
| 3728 function loadDeferredLibrary(loadId) { | 3722 function loadDeferredLibrary(loadId) { |
| 3729 let urisMap = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.DEFE
RRED_LIBRARY_URIS); | 3723 let urisMap = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.DEFE
RRED_LIBRARY_URIS); |
| 3730 let uris = dart.as(urisMap[loadId], core.List$(core.String)); | 3724 let uris = dart.as(urisMap[loadId], core.List$(core.String)); |
| 3731 let hashesMap = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.DE
FERRED_LIBRARY_HASHES); | 3725 let hashesMap = _foreign_helper.JS_EMBEDDED_GLOBAL('', _js_embedded_names.DE
FERRED_LIBRARY_HASHES); |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4069 exports.jsonEncodeNative = jsonEncodeNative; | 4063 exports.jsonEncodeNative = jsonEncodeNative; |
| 4070 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4064 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
| 4071 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4065 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
| 4072 exports.DeferredLoadCallback = DeferredLoadCallback; | 4066 exports.DeferredLoadCallback = DeferredLoadCallback; |
| 4073 exports.loadDeferredLibrary = loadDeferredLibrary; | 4067 exports.loadDeferredLibrary = loadDeferredLibrary; |
| 4074 exports.MainError = MainError; | 4068 exports.MainError = MainError; |
| 4075 exports.missingMain = missingMain; | 4069 exports.missingMain = missingMain; |
| 4076 exports.badMain = badMain; | 4070 exports.badMain = badMain; |
| 4077 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4071 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
| 4078 })(_js_helper || (_js_helper = {})); | 4072 })(_js_helper || (_js_helper = {})); |
| OLD | NEW |