| OLD | NEW |
| 1 var typed_data = dart.defineLibrary(typed_data, {}); | 1 var typed_data = dart.defineLibrary(typed_data, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 var _native_typed_data = dart.lazyImport(_native_typed_data); | 3 var _native_typed_data = dart.lazyImport(_native_typed_data); |
| 4 (function(exports, core, _native_typed_data) { | 4 (function(exports, core, _native_typed_data) { |
| 5 'use strict'; | 5 'use strict'; |
| 6 class ByteBuffer extends core.Object {} | 6 class ByteBuffer extends core.Object {} |
| 7 class TypedData extends core.Object {} | 7 class TypedData extends core.Object {} |
| 8 let _littleEndian = Symbol('_littleEndian'); | 8 let _littleEndian = Symbol('_littleEndian'); |
| 9 class Endianness extends core.Object { | 9 class Endianness extends core.Object { |
| 10 _(littleEndian) { | 10 _(littleEndian) { |
| 11 this[_littleEndian] = littleEndian; | 11 this[_littleEndian] = littleEndian; |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 dart.defineNamedConstructor(Endianness, '_'); | 14 dart.defineNamedConstructor(Endianness, '_'); |
| 15 dart.setSignature(Endianness, { |
| 16 constructors: () => ({_: [Endianness, [core.bool]]}) |
| 17 }); |
| 15 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); | 18 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); |
| 16 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); | 19 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); |
| 17 dart.defineLazyProperties(Endianness, { | 20 dart.defineLazyProperties(Endianness, { |
| 18 get HOST_ENDIAN() { | 21 get HOST_ENDIAN() { |
| 19 return new ByteData.view(new Uint16List.fromList(dart.setType([1], core.Li
st$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.
BIG_ENDIAN; | 22 return new ByteData.view(new Uint16List.fromList(dart.setType([1], core.Li
st$(core.int))).buffer).getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.
BIG_ENDIAN; |
| 20 } | 23 } |
| 21 }); | 24 }); |
| 22 class ByteData extends core.Object { | 25 class ByteData extends core.Object { |
| 23 ByteData(length) { | 26 ByteData(length) { |
| 24 return new _native_typed_data.NativeByteData(length); | 27 return new _native_typed_data.NativeByteData(length); |
| 25 } | 28 } |
| 26 view(buffer, offsetInBytes, length) { | 29 view(buffer, offsetInBytes, length) { |
| 27 if (offsetInBytes === void 0) | 30 if (offsetInBytes === void 0) |
| 28 offsetInBytes = 0; | 31 offsetInBytes = 0; |
| 29 if (length === void 0) | 32 if (length === void 0) |
| 30 length = null; | 33 length = null; |
| 31 return buffer.asByteData(offsetInBytes, length); | 34 return buffer.asByteData(offsetInBytes, length); |
| 32 } | 35 } |
| 33 } | 36 } |
| 34 ByteData[dart.implements] = () => [TypedData]; | 37 ByteData[dart.implements] = () => [TypedData]; |
| 35 dart.defineNamedConstructor(ByteData, 'view'); | 38 dart.defineNamedConstructor(ByteData, 'view'); |
| 39 dart.setSignature(ByteData, { |
| 40 constructors: () => ({ |
| 41 ByteData: [ByteData, [core.int]], |
| 42 view: [ByteData, [ByteBuffer], [core.int, core.int]] |
| 43 }) |
| 44 }); |
| 36 class Int8List extends core.Object { | 45 class Int8List extends core.Object { |
| 37 Int8List(length) { | 46 Int8List(length) { |
| 38 return new _native_typed_data.NativeInt8List(length); | 47 return new _native_typed_data.NativeInt8List(length); |
| 39 } | 48 } |
| 40 fromList(elements) { | 49 fromList(elements) { |
| 41 return new _native_typed_data.NativeInt8List.fromList(elements); | 50 return new _native_typed_data.NativeInt8List.fromList(elements); |
| 42 } | 51 } |
| 43 view(buffer, offsetInBytes, length) { | 52 view(buffer, offsetInBytes, length) { |
| 44 if (offsetInBytes === void 0) | 53 if (offsetInBytes === void 0) |
| 45 offsetInBytes = 0; | 54 offsetInBytes = 0; |
| 46 if (length === void 0) | 55 if (length === void 0) |
| 47 length = null; | 56 length = null; |
| 48 return buffer.asInt8List(offsetInBytes, length); | 57 return buffer.asInt8List(offsetInBytes, length); |
| 49 } | 58 } |
| 50 } | 59 } |
| 51 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; | 60 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 52 dart.defineNamedConstructor(Int8List, 'fromList'); | 61 dart.defineNamedConstructor(Int8List, 'fromList'); |
| 53 dart.defineNamedConstructor(Int8List, 'view'); | 62 dart.defineNamedConstructor(Int8List, 'view'); |
| 63 dart.setSignature(Int8List, { |
| 64 constructors: () => ({ |
| 65 Int8List: [Int8List, [core.int]], |
| 66 fromList: [Int8List, [core.List$(core.int)]], |
| 67 view: [Int8List, [ByteBuffer], [core.int, core.int]] |
| 68 }) |
| 69 }); |
| 54 Int8List.BYTES_PER_ELEMENT = 1; | 70 Int8List.BYTES_PER_ELEMENT = 1; |
| 55 class Uint8List extends core.Object { | 71 class Uint8List extends core.Object { |
| 56 Uint8List(length) { | 72 Uint8List(length) { |
| 57 return new _native_typed_data.NativeUint8List(length); | 73 return new _native_typed_data.NativeUint8List(length); |
| 58 } | 74 } |
| 59 fromList(elements) { | 75 fromList(elements) { |
| 60 return new _native_typed_data.NativeUint8List.fromList(elements); | 76 return new _native_typed_data.NativeUint8List.fromList(elements); |
| 61 } | 77 } |
| 62 view(buffer, offsetInBytes, length) { | 78 view(buffer, offsetInBytes, length) { |
| 63 if (offsetInBytes === void 0) | 79 if (offsetInBytes === void 0) |
| 64 offsetInBytes = 0; | 80 offsetInBytes = 0; |
| 65 if (length === void 0) | 81 if (length === void 0) |
| 66 length = null; | 82 length = null; |
| 67 return buffer.asUint8List(offsetInBytes, length); | 83 return buffer.asUint8List(offsetInBytes, length); |
| 68 } | 84 } |
| 69 } | 85 } |
| 70 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; | 86 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 71 dart.defineNamedConstructor(Uint8List, 'fromList'); | 87 dart.defineNamedConstructor(Uint8List, 'fromList'); |
| 72 dart.defineNamedConstructor(Uint8List, 'view'); | 88 dart.defineNamedConstructor(Uint8List, 'view'); |
| 89 dart.setSignature(Uint8List, { |
| 90 constructors: () => ({ |
| 91 Uint8List: [Uint8List, [core.int]], |
| 92 fromList: [Uint8List, [core.List$(core.int)]], |
| 93 view: [Uint8List, [ByteBuffer], [core.int, core.int]] |
| 94 }) |
| 95 }); |
| 73 Uint8List.BYTES_PER_ELEMENT = 1; | 96 Uint8List.BYTES_PER_ELEMENT = 1; |
| 74 class Uint8ClampedList extends core.Object { | 97 class Uint8ClampedList extends core.Object { |
| 75 Uint8ClampedList(length) { | 98 Uint8ClampedList(length) { |
| 76 return new _native_typed_data.NativeUint8ClampedList(length); | 99 return new _native_typed_data.NativeUint8ClampedList(length); |
| 77 } | 100 } |
| 78 fromList(elements) { | 101 fromList(elements) { |
| 79 return new _native_typed_data.NativeUint8ClampedList.fromList(elements); | 102 return new _native_typed_data.NativeUint8ClampedList.fromList(elements); |
| 80 } | 103 } |
| 81 view(buffer, offsetInBytes, length) { | 104 view(buffer, offsetInBytes, length) { |
| 82 if (offsetInBytes === void 0) | 105 if (offsetInBytes === void 0) |
| 83 offsetInBytes = 0; | 106 offsetInBytes = 0; |
| 84 if (length === void 0) | 107 if (length === void 0) |
| 85 length = null; | 108 length = null; |
| 86 return buffer.asUint8ClampedList(offsetInBytes, length); | 109 return buffer.asUint8ClampedList(offsetInBytes, length); |
| 87 } | 110 } |
| 88 } | 111 } |
| 89 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; | 112 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 90 dart.defineNamedConstructor(Uint8ClampedList, 'fromList'); | 113 dart.defineNamedConstructor(Uint8ClampedList, 'fromList'); |
| 91 dart.defineNamedConstructor(Uint8ClampedList, 'view'); | 114 dart.defineNamedConstructor(Uint8ClampedList, 'view'); |
| 115 dart.setSignature(Uint8ClampedList, { |
| 116 constructors: () => ({ |
| 117 Uint8ClampedList: [Uint8ClampedList, [core.int]], |
| 118 fromList: [Uint8ClampedList, [core.List$(core.int)]], |
| 119 view: [Uint8ClampedList, [ByteBuffer], [core.int, core.int]] |
| 120 }) |
| 121 }); |
| 92 Uint8ClampedList.BYTES_PER_ELEMENT = 1; | 122 Uint8ClampedList.BYTES_PER_ELEMENT = 1; |
| 93 class Int16List extends core.Object { | 123 class Int16List extends core.Object { |
| 94 Int16List(length) { | 124 Int16List(length) { |
| 95 return new _native_typed_data.NativeInt16List(length); | 125 return new _native_typed_data.NativeInt16List(length); |
| 96 } | 126 } |
| 97 fromList(elements) { | 127 fromList(elements) { |
| 98 return new _native_typed_data.NativeInt16List.fromList(elements); | 128 return new _native_typed_data.NativeInt16List.fromList(elements); |
| 99 } | 129 } |
| 100 view(buffer, offsetInBytes, length) { | 130 view(buffer, offsetInBytes, length) { |
| 101 if (offsetInBytes === void 0) | 131 if (offsetInBytes === void 0) |
| 102 offsetInBytes = 0; | 132 offsetInBytes = 0; |
| 103 if (length === void 0) | 133 if (length === void 0) |
| 104 length = null; | 134 length = null; |
| 105 return buffer.asInt16List(offsetInBytes, length); | 135 return buffer.asInt16List(offsetInBytes, length); |
| 106 } | 136 } |
| 107 } | 137 } |
| 108 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; | 138 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 109 dart.defineNamedConstructor(Int16List, 'fromList'); | 139 dart.defineNamedConstructor(Int16List, 'fromList'); |
| 110 dart.defineNamedConstructor(Int16List, 'view'); | 140 dart.defineNamedConstructor(Int16List, 'view'); |
| 141 dart.setSignature(Int16List, { |
| 142 constructors: () => ({ |
| 143 Int16List: [Int16List, [core.int]], |
| 144 fromList: [Int16List, [core.List$(core.int)]], |
| 145 view: [Int16List, [ByteBuffer], [core.int, core.int]] |
| 146 }) |
| 147 }); |
| 111 Int16List.BYTES_PER_ELEMENT = 2; | 148 Int16List.BYTES_PER_ELEMENT = 2; |
| 112 class Uint16List extends core.Object { | 149 class Uint16List extends core.Object { |
| 113 Uint16List(length) { | 150 Uint16List(length) { |
| 114 return new _native_typed_data.NativeUint16List(length); | 151 return new _native_typed_data.NativeUint16List(length); |
| 115 } | 152 } |
| 116 fromList(elements) { | 153 fromList(elements) { |
| 117 return new _native_typed_data.NativeUint16List.fromList(elements); | 154 return new _native_typed_data.NativeUint16List.fromList(elements); |
| 118 } | 155 } |
| 119 view(buffer, offsetInBytes, length) { | 156 view(buffer, offsetInBytes, length) { |
| 120 if (offsetInBytes === void 0) | 157 if (offsetInBytes === void 0) |
| 121 offsetInBytes = 0; | 158 offsetInBytes = 0; |
| 122 if (length === void 0) | 159 if (length === void 0) |
| 123 length = null; | 160 length = null; |
| 124 return buffer.asUint16List(offsetInBytes, length); | 161 return buffer.asUint16List(offsetInBytes, length); |
| 125 } | 162 } |
| 126 } | 163 } |
| 127 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; | 164 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 128 dart.defineNamedConstructor(Uint16List, 'fromList'); | 165 dart.defineNamedConstructor(Uint16List, 'fromList'); |
| 129 dart.defineNamedConstructor(Uint16List, 'view'); | 166 dart.defineNamedConstructor(Uint16List, 'view'); |
| 167 dart.setSignature(Uint16List, { |
| 168 constructors: () => ({ |
| 169 Uint16List: [Uint16List, [core.int]], |
| 170 fromList: [Uint16List, [core.List$(core.int)]], |
| 171 view: [Uint16List, [ByteBuffer], [core.int, core.int]] |
| 172 }) |
| 173 }); |
| 130 Uint16List.BYTES_PER_ELEMENT = 2; | 174 Uint16List.BYTES_PER_ELEMENT = 2; |
| 131 class Int32List extends core.Object { | 175 class Int32List extends core.Object { |
| 132 Int32List(length) { | 176 Int32List(length) { |
| 133 return new _native_typed_data.NativeInt32List(length); | 177 return new _native_typed_data.NativeInt32List(length); |
| 134 } | 178 } |
| 135 fromList(elements) { | 179 fromList(elements) { |
| 136 return new _native_typed_data.NativeInt32List.fromList(elements); | 180 return new _native_typed_data.NativeInt32List.fromList(elements); |
| 137 } | 181 } |
| 138 view(buffer, offsetInBytes, length) { | 182 view(buffer, offsetInBytes, length) { |
| 139 if (offsetInBytes === void 0) | 183 if (offsetInBytes === void 0) |
| 140 offsetInBytes = 0; | 184 offsetInBytes = 0; |
| 141 if (length === void 0) | 185 if (length === void 0) |
| 142 length = null; | 186 length = null; |
| 143 return buffer.asInt32List(offsetInBytes, length); | 187 return buffer.asInt32List(offsetInBytes, length); |
| 144 } | 188 } |
| 145 } | 189 } |
| 146 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; | 190 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 147 dart.defineNamedConstructor(Int32List, 'fromList'); | 191 dart.defineNamedConstructor(Int32List, 'fromList'); |
| 148 dart.defineNamedConstructor(Int32List, 'view'); | 192 dart.defineNamedConstructor(Int32List, 'view'); |
| 193 dart.setSignature(Int32List, { |
| 194 constructors: () => ({ |
| 195 Int32List: [Int32List, [core.int]], |
| 196 fromList: [Int32List, [core.List$(core.int)]], |
| 197 view: [Int32List, [ByteBuffer], [core.int, core.int]] |
| 198 }) |
| 199 }); |
| 149 Int32List.BYTES_PER_ELEMENT = 4; | 200 Int32List.BYTES_PER_ELEMENT = 4; |
| 150 class Uint32List extends core.Object { | 201 class Uint32List extends core.Object { |
| 151 Uint32List(length) { | 202 Uint32List(length) { |
| 152 return new _native_typed_data.NativeUint32List(length); | 203 return new _native_typed_data.NativeUint32List(length); |
| 153 } | 204 } |
| 154 fromList(elements) { | 205 fromList(elements) { |
| 155 return new _native_typed_data.NativeUint32List.fromList(elements); | 206 return new _native_typed_data.NativeUint32List.fromList(elements); |
| 156 } | 207 } |
| 157 view(buffer, offsetInBytes, length) { | 208 view(buffer, offsetInBytes, length) { |
| 158 if (offsetInBytes === void 0) | 209 if (offsetInBytes === void 0) |
| 159 offsetInBytes = 0; | 210 offsetInBytes = 0; |
| 160 if (length === void 0) | 211 if (length === void 0) |
| 161 length = null; | 212 length = null; |
| 162 return buffer.asUint32List(offsetInBytes, length); | 213 return buffer.asUint32List(offsetInBytes, length); |
| 163 } | 214 } |
| 164 } | 215 } |
| 165 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; | 216 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 166 dart.defineNamedConstructor(Uint32List, 'fromList'); | 217 dart.defineNamedConstructor(Uint32List, 'fromList'); |
| 167 dart.defineNamedConstructor(Uint32List, 'view'); | 218 dart.defineNamedConstructor(Uint32List, 'view'); |
| 219 dart.setSignature(Uint32List, { |
| 220 constructors: () => ({ |
| 221 Uint32List: [Uint32List, [core.int]], |
| 222 fromList: [Uint32List, [core.List$(core.int)]], |
| 223 view: [Uint32List, [ByteBuffer], [core.int, core.int]] |
| 224 }) |
| 225 }); |
| 168 Uint32List.BYTES_PER_ELEMENT = 4; | 226 Uint32List.BYTES_PER_ELEMENT = 4; |
| 169 class Int64List extends core.Object { | 227 class Int64List extends core.Object { |
| 170 Int64List(length) { | 228 Int64List(length) { |
| 171 throw new core.UnsupportedError("Int64List not supported by dart2js."); | 229 throw new core.UnsupportedError("Int64List not supported by dart2js."); |
| 172 } | 230 } |
| 173 fromList(elements) { | 231 fromList(elements) { |
| 174 throw new core.UnsupportedError("Int64List not supported by dart2js."); | 232 throw new core.UnsupportedError("Int64List not supported by dart2js."); |
| 175 } | 233 } |
| 176 view(buffer, offsetInBytes, length) { | 234 view(buffer, offsetInBytes, length) { |
| 177 if (offsetInBytes === void 0) | 235 if (offsetInBytes === void 0) |
| 178 offsetInBytes = 0; | 236 offsetInBytes = 0; |
| 179 if (length === void 0) | 237 if (length === void 0) |
| 180 length = null; | 238 length = null; |
| 181 return buffer.asInt64List(offsetInBytes, length); | 239 return buffer.asInt64List(offsetInBytes, length); |
| 182 } | 240 } |
| 183 } | 241 } |
| 184 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; | 242 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 185 dart.defineNamedConstructor(Int64List, 'fromList'); | 243 dart.defineNamedConstructor(Int64List, 'fromList'); |
| 186 dart.defineNamedConstructor(Int64List, 'view'); | 244 dart.defineNamedConstructor(Int64List, 'view'); |
| 245 dart.setSignature(Int64List, { |
| 246 constructors: () => ({ |
| 247 Int64List: [Int64List, [core.int]], |
| 248 fromList: [Int64List, [core.List$(core.int)]], |
| 249 view: [Int64List, [ByteBuffer], [core.int, core.int]] |
| 250 }) |
| 251 }); |
| 187 Int64List.BYTES_PER_ELEMENT = 8; | 252 Int64List.BYTES_PER_ELEMENT = 8; |
| 188 class Uint64List extends core.Object { | 253 class Uint64List extends core.Object { |
| 189 Uint64List(length) { | 254 Uint64List(length) { |
| 190 throw new core.UnsupportedError("Uint64List not supported by dart2js."); | 255 throw new core.UnsupportedError("Uint64List not supported by dart2js."); |
| 191 } | 256 } |
| 192 fromList(elements) { | 257 fromList(elements) { |
| 193 throw new core.UnsupportedError("Uint64List not supported by dart2js."); | 258 throw new core.UnsupportedError("Uint64List not supported by dart2js."); |
| 194 } | 259 } |
| 195 view(buffer, offsetInBytes, length) { | 260 view(buffer, offsetInBytes, length) { |
| 196 if (offsetInBytes === void 0) | 261 if (offsetInBytes === void 0) |
| 197 offsetInBytes = 0; | 262 offsetInBytes = 0; |
| 198 if (length === void 0) | 263 if (length === void 0) |
| 199 length = null; | 264 length = null; |
| 200 return buffer.asUint64List(offsetInBytes, length); | 265 return buffer.asUint64List(offsetInBytes, length); |
| 201 } | 266 } |
| 202 } | 267 } |
| 203 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; | 268 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 204 dart.defineNamedConstructor(Uint64List, 'fromList'); | 269 dart.defineNamedConstructor(Uint64List, 'fromList'); |
| 205 dart.defineNamedConstructor(Uint64List, 'view'); | 270 dart.defineNamedConstructor(Uint64List, 'view'); |
| 271 dart.setSignature(Uint64List, { |
| 272 constructors: () => ({ |
| 273 Uint64List: [Uint64List, [core.int]], |
| 274 fromList: [Uint64List, [core.List$(core.int)]], |
| 275 view: [Uint64List, [ByteBuffer], [core.int, core.int]] |
| 276 }) |
| 277 }); |
| 206 Uint64List.BYTES_PER_ELEMENT = 8; | 278 Uint64List.BYTES_PER_ELEMENT = 8; |
| 207 class Float32List extends core.Object { | 279 class Float32List extends core.Object { |
| 208 Float32List(length) { | 280 Float32List(length) { |
| 209 return new _native_typed_data.NativeFloat32List(length); | 281 return new _native_typed_data.NativeFloat32List(length); |
| 210 } | 282 } |
| 211 fromList(elements) { | 283 fromList(elements) { |
| 212 return new _native_typed_data.NativeFloat32List.fromList(elements); | 284 return new _native_typed_data.NativeFloat32List.fromList(elements); |
| 213 } | 285 } |
| 214 view(buffer, offsetInBytes, length) { | 286 view(buffer, offsetInBytes, length) { |
| 215 if (offsetInBytes === void 0) | 287 if (offsetInBytes === void 0) |
| 216 offsetInBytes = 0; | 288 offsetInBytes = 0; |
| 217 if (length === void 0) | 289 if (length === void 0) |
| 218 length = null; | 290 length = null; |
| 219 return buffer.asFloat32List(offsetInBytes, length); | 291 return buffer.asFloat32List(offsetInBytes, length); |
| 220 } | 292 } |
| 221 } | 293 } |
| 222 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; | 294 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; |
| 223 dart.defineNamedConstructor(Float32List, 'fromList'); | 295 dart.defineNamedConstructor(Float32List, 'fromList'); |
| 224 dart.defineNamedConstructor(Float32List, 'view'); | 296 dart.defineNamedConstructor(Float32List, 'view'); |
| 297 dart.setSignature(Float32List, { |
| 298 constructors: () => ({ |
| 299 Float32List: [Float32List, [core.int]], |
| 300 fromList: [Float32List, [core.List$(core.double)]], |
| 301 view: [Float32List, [ByteBuffer], [core.int, core.int]] |
| 302 }) |
| 303 }); |
| 225 Float32List.BYTES_PER_ELEMENT = 4; | 304 Float32List.BYTES_PER_ELEMENT = 4; |
| 226 class Float64List extends core.Object { | 305 class Float64List extends core.Object { |
| 227 Float64List(length) { | 306 Float64List(length) { |
| 228 return new _native_typed_data.NativeFloat64List(length); | 307 return new _native_typed_data.NativeFloat64List(length); |
| 229 } | 308 } |
| 230 fromList(elements) { | 309 fromList(elements) { |
| 231 return new _native_typed_data.NativeFloat64List.fromList(elements); | 310 return new _native_typed_data.NativeFloat64List.fromList(elements); |
| 232 } | 311 } |
| 233 view(buffer, offsetInBytes, length) { | 312 view(buffer, offsetInBytes, length) { |
| 234 if (offsetInBytes === void 0) | 313 if (offsetInBytes === void 0) |
| 235 offsetInBytes = 0; | 314 offsetInBytes = 0; |
| 236 if (length === void 0) | 315 if (length === void 0) |
| 237 length = null; | 316 length = null; |
| 238 return buffer.asFloat64List(offsetInBytes, length); | 317 return buffer.asFloat64List(offsetInBytes, length); |
| 239 } | 318 } |
| 240 } | 319 } |
| 241 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; | 320 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; |
| 242 dart.defineNamedConstructor(Float64List, 'fromList'); | 321 dart.defineNamedConstructor(Float64List, 'fromList'); |
| 243 dart.defineNamedConstructor(Float64List, 'view'); | 322 dart.defineNamedConstructor(Float64List, 'view'); |
| 323 dart.setSignature(Float64List, { |
| 324 constructors: () => ({ |
| 325 Float64List: [Float64List, [core.int]], |
| 326 fromList: [Float64List, [core.List$(core.double)]], |
| 327 view: [Float64List, [ByteBuffer], [core.int, core.int]] |
| 328 }) |
| 329 }); |
| 244 Float64List.BYTES_PER_ELEMENT = 8; | 330 Float64List.BYTES_PER_ELEMENT = 8; |
| 245 class Float32x4List extends core.Object { | 331 class Float32x4List extends core.Object { |
| 246 Float32x4List(length) { | 332 Float32x4List(length) { |
| 247 return new _native_typed_data.NativeFloat32x4List(length); | 333 return new _native_typed_data.NativeFloat32x4List(length); |
| 248 } | 334 } |
| 249 fromList(elements) { | 335 fromList(elements) { |
| 250 return new _native_typed_data.NativeFloat32x4List.fromList(elements); | 336 return new _native_typed_data.NativeFloat32x4List.fromList(elements); |
| 251 } | 337 } |
| 252 view(buffer, offsetInBytes, length) { | 338 view(buffer, offsetInBytes, length) { |
| 253 if (offsetInBytes === void 0) | 339 if (offsetInBytes === void 0) |
| 254 offsetInBytes = 0; | 340 offsetInBytes = 0; |
| 255 if (length === void 0) | 341 if (length === void 0) |
| 256 length = null; | 342 length = null; |
| 257 return buffer.asFloat32x4List(offsetInBytes, length); | 343 return buffer.asFloat32x4List(offsetInBytes, length); |
| 258 } | 344 } |
| 259 } | 345 } |
| 260 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; | 346 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; |
| 261 dart.defineNamedConstructor(Float32x4List, 'fromList'); | 347 dart.defineNamedConstructor(Float32x4List, 'fromList'); |
| 262 dart.defineNamedConstructor(Float32x4List, 'view'); | 348 dart.defineNamedConstructor(Float32x4List, 'view'); |
| 349 dart.setSignature(Float32x4List, { |
| 350 constructors: () => ({ |
| 351 Float32x4List: [Float32x4List, [core.int]], |
| 352 fromList: [Float32x4List, [core.List$(Float32x4)]], |
| 353 view: [Float32x4List, [ByteBuffer], [core.int, core.int]] |
| 354 }) |
| 355 }); |
| 263 Float32x4List.BYTES_PER_ELEMENT = 16; | 356 Float32x4List.BYTES_PER_ELEMENT = 16; |
| 264 class Int32x4List extends core.Object { | 357 class Int32x4List extends core.Object { |
| 265 Int32x4List(length) { | 358 Int32x4List(length) { |
| 266 return new _native_typed_data.NativeInt32x4List(length); | 359 return new _native_typed_data.NativeInt32x4List(length); |
| 267 } | 360 } |
| 268 fromList(elements) { | 361 fromList(elements) { |
| 269 return new _native_typed_data.NativeInt32x4List.fromList(elements); | 362 return new _native_typed_data.NativeInt32x4List.fromList(elements); |
| 270 } | 363 } |
| 271 view(buffer, offsetInBytes, length) { | 364 view(buffer, offsetInBytes, length) { |
| 272 if (offsetInBytes === void 0) | 365 if (offsetInBytes === void 0) |
| 273 offsetInBytes = 0; | 366 offsetInBytes = 0; |
| 274 if (length === void 0) | 367 if (length === void 0) |
| 275 length = null; | 368 length = null; |
| 276 return buffer.asInt32x4List(offsetInBytes, length); | 369 return buffer.asInt32x4List(offsetInBytes, length); |
| 277 } | 370 } |
| 278 } | 371 } |
| 279 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; | 372 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; |
| 280 dart.defineNamedConstructor(Int32x4List, 'fromList'); | 373 dart.defineNamedConstructor(Int32x4List, 'fromList'); |
| 281 dart.defineNamedConstructor(Int32x4List, 'view'); | 374 dart.defineNamedConstructor(Int32x4List, 'view'); |
| 375 dart.setSignature(Int32x4List, { |
| 376 constructors: () => ({ |
| 377 Int32x4List: [Int32x4List, [core.int]], |
| 378 fromList: [Int32x4List, [core.List$(Int32x4)]], |
| 379 view: [Int32x4List, [ByteBuffer], [core.int, core.int]] |
| 380 }) |
| 381 }); |
| 282 Int32x4List.BYTES_PER_ELEMENT = 16; | 382 Int32x4List.BYTES_PER_ELEMENT = 16; |
| 283 class Float64x2List extends core.Object { | 383 class Float64x2List extends core.Object { |
| 284 Float64x2List(length) { | 384 Float64x2List(length) { |
| 285 return new _native_typed_data.NativeFloat64x2List(length); | 385 return new _native_typed_data.NativeFloat64x2List(length); |
| 286 } | 386 } |
| 287 fromList(elements) { | 387 fromList(elements) { |
| 288 return new _native_typed_data.NativeFloat64x2List.fromList(elements); | 388 return new _native_typed_data.NativeFloat64x2List.fromList(elements); |
| 289 } | 389 } |
| 290 view(buffer, offsetInBytes, length) { | 390 view(buffer, offsetInBytes, length) { |
| 291 if (offsetInBytes === void 0) | 391 if (offsetInBytes === void 0) |
| 292 offsetInBytes = 0; | 392 offsetInBytes = 0; |
| 293 if (length === void 0) | 393 if (length === void 0) |
| 294 length = null; | 394 length = null; |
| 295 return buffer.asFloat64x2List(offsetInBytes, length); | 395 return buffer.asFloat64x2List(offsetInBytes, length); |
| 296 } | 396 } |
| 297 } | 397 } |
| 298 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; | 398 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; |
| 299 dart.defineNamedConstructor(Float64x2List, 'fromList'); | 399 dart.defineNamedConstructor(Float64x2List, 'fromList'); |
| 300 dart.defineNamedConstructor(Float64x2List, 'view'); | 400 dart.defineNamedConstructor(Float64x2List, 'view'); |
| 401 dart.setSignature(Float64x2List, { |
| 402 constructors: () => ({ |
| 403 Float64x2List: [Float64x2List, [core.int]], |
| 404 fromList: [Float64x2List, [core.List$(Float64x2)]], |
| 405 view: [Float64x2List, [ByteBuffer], [core.int, core.int]] |
| 406 }) |
| 407 }); |
| 301 Float64x2List.BYTES_PER_ELEMENT = 16; | 408 Float64x2List.BYTES_PER_ELEMENT = 16; |
| 302 class Float32x4 extends core.Object { | 409 class Float32x4 extends core.Object { |
| 303 Float32x4(x, y, z, w) { | 410 Float32x4(x, y, z, w) { |
| 304 return new _native_typed_data.NativeFloat32x4(x, y, z, w); | 411 return new _native_typed_data.NativeFloat32x4(x, y, z, w); |
| 305 } | 412 } |
| 306 splat(v) { | 413 splat(v) { |
| 307 return new _native_typed_data.NativeFloat32x4.splat(v); | 414 return new _native_typed_data.NativeFloat32x4.splat(v); |
| 308 } | 415 } |
| 309 zero() { | 416 zero() { |
| 310 return new _native_typed_data.NativeFloat32x4.zero(); | 417 return new _native_typed_data.NativeFloat32x4.zero(); |
| 311 } | 418 } |
| 312 fromInt32x4Bits(x) { | 419 fromInt32x4Bits(x) { |
| 313 return new _native_typed_data.NativeFloat32x4.fromInt32x4Bits(x); | 420 return new _native_typed_data.NativeFloat32x4.fromInt32x4Bits(x); |
| 314 } | 421 } |
| 315 fromFloat64x2(v) { | 422 fromFloat64x2(v) { |
| 316 return new _native_typed_data.NativeFloat32x4.fromFloat64x2(v); | 423 return new _native_typed_data.NativeFloat32x4.fromFloat64x2(v); |
| 317 } | 424 } |
| 318 } | 425 } |
| 319 dart.defineNamedConstructor(Float32x4, 'splat'); | 426 dart.defineNamedConstructor(Float32x4, 'splat'); |
| 320 dart.defineNamedConstructor(Float32x4, 'zero'); | 427 dart.defineNamedConstructor(Float32x4, 'zero'); |
| 321 dart.defineNamedConstructor(Float32x4, 'fromInt32x4Bits'); | 428 dart.defineNamedConstructor(Float32x4, 'fromInt32x4Bits'); |
| 322 dart.defineNamedConstructor(Float32x4, 'fromFloat64x2'); | 429 dart.defineNamedConstructor(Float32x4, 'fromFloat64x2'); |
| 430 dart.setSignature(Float32x4, { |
| 431 constructors: () => ({ |
| 432 Float32x4: [Float32x4, [core.double, core.double, core.double, core.double
]], |
| 433 splat: [Float32x4, [core.double]], |
| 434 zero: [Float32x4, []], |
| 435 fromInt32x4Bits: [Float32x4, [Int32x4]], |
| 436 fromFloat64x2: [Float32x4, [Float64x2]] |
| 437 }) |
| 438 }); |
| 323 Float32x4.XXXX = 0; | 439 Float32x4.XXXX = 0; |
| 324 Float32x4.XXXY = 64; | 440 Float32x4.XXXY = 64; |
| 325 Float32x4.XXXZ = 128; | 441 Float32x4.XXXZ = 128; |
| 326 Float32x4.XXXW = 192; | 442 Float32x4.XXXW = 192; |
| 327 Float32x4.XXYX = 16; | 443 Float32x4.XXYX = 16; |
| 328 Float32x4.XXYY = 80; | 444 Float32x4.XXYY = 80; |
| 329 Float32x4.XXYZ = 144; | 445 Float32x4.XXYZ = 144; |
| 330 Float32x4.XXYW = 208; | 446 Float32x4.XXYW = 208; |
| 331 Float32x4.XXZX = 32; | 447 Float32x4.XXZX = 32; |
| 332 Float32x4.XXZY = 96; | 448 Float32x4.XXZY = 96; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 } | 698 } |
| 583 bool(x, y, z, w) { | 699 bool(x, y, z, w) { |
| 584 return new _native_typed_data.NativeInt32x4.bool(x, y, z, w); | 700 return new _native_typed_data.NativeInt32x4.bool(x, y, z, w); |
| 585 } | 701 } |
| 586 fromFloat32x4Bits(x) { | 702 fromFloat32x4Bits(x) { |
| 587 return new _native_typed_data.NativeInt32x4.fromFloat32x4Bits(x); | 703 return new _native_typed_data.NativeInt32x4.fromFloat32x4Bits(x); |
| 588 } | 704 } |
| 589 } | 705 } |
| 590 dart.defineNamedConstructor(Int32x4, 'bool'); | 706 dart.defineNamedConstructor(Int32x4, 'bool'); |
| 591 dart.defineNamedConstructor(Int32x4, 'fromFloat32x4Bits'); | 707 dart.defineNamedConstructor(Int32x4, 'fromFloat32x4Bits'); |
| 708 dart.setSignature(Int32x4, { |
| 709 constructors: () => ({ |
| 710 Int32x4: [Int32x4, [core.int, core.int, core.int, core.int]], |
| 711 bool: [Int32x4, [core.bool, core.bool, core.bool, core.bool]], |
| 712 fromFloat32x4Bits: [Int32x4, [Float32x4]] |
| 713 }) |
| 714 }); |
| 592 Int32x4.XXXX = 0; | 715 Int32x4.XXXX = 0; |
| 593 Int32x4.XXXY = 64; | 716 Int32x4.XXXY = 64; |
| 594 Int32x4.XXXZ = 128; | 717 Int32x4.XXXZ = 128; |
| 595 Int32x4.XXXW = 192; | 718 Int32x4.XXXW = 192; |
| 596 Int32x4.XXYX = 16; | 719 Int32x4.XXYX = 16; |
| 597 Int32x4.XXYY = 80; | 720 Int32x4.XXYY = 80; |
| 598 Int32x4.XXYZ = 144; | 721 Int32x4.XXYZ = 144; |
| 599 Int32x4.XXYW = 208; | 722 Int32x4.XXYW = 208; |
| 600 Int32x4.XXZX = 32; | 723 Int32x4.XXZX = 32; |
| 601 Int32x4.XXZY = 96; | 724 Int32x4.XXZY = 96; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 zero() { | 978 zero() { |
| 856 return new _native_typed_data.NativeFloat64x2.zero(); | 979 return new _native_typed_data.NativeFloat64x2.zero(); |
| 857 } | 980 } |
| 858 fromFloat32x4(v) { | 981 fromFloat32x4(v) { |
| 859 return new _native_typed_data.NativeFloat64x2.fromFloat32x4(v); | 982 return new _native_typed_data.NativeFloat64x2.fromFloat32x4(v); |
| 860 } | 983 } |
| 861 } | 984 } |
| 862 dart.defineNamedConstructor(Float64x2, 'splat'); | 985 dart.defineNamedConstructor(Float64x2, 'splat'); |
| 863 dart.defineNamedConstructor(Float64x2, 'zero'); | 986 dart.defineNamedConstructor(Float64x2, 'zero'); |
| 864 dart.defineNamedConstructor(Float64x2, 'fromFloat32x4'); | 987 dart.defineNamedConstructor(Float64x2, 'fromFloat32x4'); |
| 988 dart.setSignature(Float64x2, { |
| 989 constructors: () => ({ |
| 990 Float64x2: [Float64x2, [core.double, core.double]], |
| 991 splat: [Float64x2, [core.double]], |
| 992 zero: [Float64x2, []], |
| 993 fromFloat32x4: [Float64x2, [Float32x4]] |
| 994 }) |
| 995 }); |
| 865 // Exports: | 996 // Exports: |
| 866 exports.ByteBuffer = ByteBuffer; | 997 exports.ByteBuffer = ByteBuffer; |
| 867 exports.TypedData = TypedData; | 998 exports.TypedData = TypedData; |
| 868 exports.Endianness = Endianness; | 999 exports.Endianness = Endianness; |
| 869 exports.ByteData = ByteData; | 1000 exports.ByteData = ByteData; |
| 870 exports.Int8List = Int8List; | 1001 exports.Int8List = Int8List; |
| 871 exports.Uint8List = Uint8List; | 1002 exports.Uint8List = Uint8List; |
| 872 exports.Uint8ClampedList = Uint8ClampedList; | 1003 exports.Uint8ClampedList = Uint8ClampedList; |
| 873 exports.Int16List = Int16List; | 1004 exports.Int16List = Int16List; |
| 874 exports.Uint16List = Uint16List; | 1005 exports.Uint16List = Uint16List; |
| 875 exports.Int32List = Int32List; | 1006 exports.Int32List = Int32List; |
| 876 exports.Uint32List = Uint32List; | 1007 exports.Uint32List = Uint32List; |
| 877 exports.Int64List = Int64List; | 1008 exports.Int64List = Int64List; |
| 878 exports.Uint64List = Uint64List; | 1009 exports.Uint64List = Uint64List; |
| 879 exports.Float32List = Float32List; | 1010 exports.Float32List = Float32List; |
| 880 exports.Float64List = Float64List; | 1011 exports.Float64List = Float64List; |
| 881 exports.Float32x4List = Float32x4List; | 1012 exports.Float32x4List = Float32x4List; |
| 882 exports.Int32x4List = Int32x4List; | 1013 exports.Int32x4List = Int32x4List; |
| 883 exports.Float64x2List = Float64x2List; | 1014 exports.Float64x2List = Float64x2List; |
| 884 exports.Float32x4 = Float32x4; | 1015 exports.Float32x4 = Float32x4; |
| 885 exports.Int32x4 = Int32x4; | 1016 exports.Int32x4 = Int32x4; |
| 886 exports.Float64x2 = Float64x2; | 1017 exports.Float64x2 = Float64x2; |
| 887 })(typed_data, core, _native_typed_data); | 1018 })(typed_data, core, _native_typed_data); |
| OLD | NEW |