| 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 dart.setSignature(ByteBuffer, {}); | |
| 8 class TypedData extends core.Object {} | 7 class TypedData extends core.Object {} |
| 9 dart.setSignature(TypedData, {}); | |
| 10 let _littleEndian = Symbol('_littleEndian'); | 8 let _littleEndian = Symbol('_littleEndian'); |
| 11 class Endianness extends core.Object { | 9 class Endianness extends core.Object { |
| 12 _(littleEndian) { | 10 _(littleEndian) { |
| 13 this[_littleEndian] = littleEndian; | 11 this[_littleEndian] = littleEndian; |
| 14 } | 12 } |
| 15 } | 13 } |
| 16 dart.defineNamedConstructor(Endianness, '_'); | 14 dart.defineNamedConstructor(Endianness, '_'); |
| 17 dart.setSignature(Endianness, {}); | |
| 18 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); | 15 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false)); |
| 19 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); | 16 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true)); |
| 20 dart.defineLazyProperties(Endianness, { | 17 dart.defineLazyProperties(Endianness, { |
| 21 get HOST_ENDIAN() { | 18 get HOST_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; | 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; |
| 23 } | 20 } |
| 24 }); | 21 }); |
| 25 class ByteData extends core.Object { | 22 class ByteData extends core.Object { |
| 26 ByteData(length) { | 23 ByteData(length) { |
| 27 return new _native_typed_data.NativeByteData(length); | 24 return new _native_typed_data.NativeByteData(length); |
| 28 } | 25 } |
| 29 view(buffer, offsetInBytes, length) { | 26 view(buffer, offsetInBytes, length) { |
| 30 if (offsetInBytes === void 0) | 27 if (offsetInBytes === void 0) |
| 31 offsetInBytes = 0; | 28 offsetInBytes = 0; |
| 32 if (length === void 0) | 29 if (length === void 0) |
| 33 length = null; | 30 length = null; |
| 34 return buffer.asByteData(offsetInBytes, length); | 31 return buffer.asByteData(offsetInBytes, length); |
| 35 } | 32 } |
| 36 } | 33 } |
| 37 ByteData[dart.implements] = () => [TypedData]; | 34 ByteData[dart.implements] = () => [TypedData]; |
| 38 dart.defineNamedConstructor(ByteData, 'view'); | 35 dart.defineNamedConstructor(ByteData, 'view'); |
| 39 dart.setSignature(ByteData, {}); | |
| 40 class Int8List extends core.Object { | 36 class Int8List extends core.Object { |
| 41 Int8List(length) { | 37 Int8List(length) { |
| 42 return new _native_typed_data.NativeInt8List(length); | 38 return new _native_typed_data.NativeInt8List(length); |
| 43 } | 39 } |
| 44 fromList(elements) { | 40 fromList(elements) { |
| 45 return new _native_typed_data.NativeInt8List.fromList(elements); | 41 return new _native_typed_data.NativeInt8List.fromList(elements); |
| 46 } | 42 } |
| 47 view(buffer, offsetInBytes, length) { | 43 view(buffer, offsetInBytes, length) { |
| 48 if (offsetInBytes === void 0) | 44 if (offsetInBytes === void 0) |
| 49 offsetInBytes = 0; | 45 offsetInBytes = 0; |
| 50 if (length === void 0) | 46 if (length === void 0) |
| 51 length = null; | 47 length = null; |
| 52 return buffer.asInt8List(offsetInBytes, length); | 48 return buffer.asInt8List(offsetInBytes, length); |
| 53 } | 49 } |
| 54 } | 50 } |
| 55 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; | 51 Int8List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 56 dart.defineNamedConstructor(Int8List, 'fromList'); | 52 dart.defineNamedConstructor(Int8List, 'fromList'); |
| 57 dart.defineNamedConstructor(Int8List, 'view'); | 53 dart.defineNamedConstructor(Int8List, 'view'); |
| 58 dart.setSignature(Int8List, {}); | |
| 59 Int8List.BYTES_PER_ELEMENT = 1; | 54 Int8List.BYTES_PER_ELEMENT = 1; |
| 60 class Uint8List extends core.Object { | 55 class Uint8List extends core.Object { |
| 61 Uint8List(length) { | 56 Uint8List(length) { |
| 62 return new _native_typed_data.NativeUint8List(length); | 57 return new _native_typed_data.NativeUint8List(length); |
| 63 } | 58 } |
| 64 fromList(elements) { | 59 fromList(elements) { |
| 65 return new _native_typed_data.NativeUint8List.fromList(elements); | 60 return new _native_typed_data.NativeUint8List.fromList(elements); |
| 66 } | 61 } |
| 67 view(buffer, offsetInBytes, length) { | 62 view(buffer, offsetInBytes, length) { |
| 68 if (offsetInBytes === void 0) | 63 if (offsetInBytes === void 0) |
| 69 offsetInBytes = 0; | 64 offsetInBytes = 0; |
| 70 if (length === void 0) | 65 if (length === void 0) |
| 71 length = null; | 66 length = null; |
| 72 return buffer.asUint8List(offsetInBytes, length); | 67 return buffer.asUint8List(offsetInBytes, length); |
| 73 } | 68 } |
| 74 } | 69 } |
| 75 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; | 70 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 76 dart.defineNamedConstructor(Uint8List, 'fromList'); | 71 dart.defineNamedConstructor(Uint8List, 'fromList'); |
| 77 dart.defineNamedConstructor(Uint8List, 'view'); | 72 dart.defineNamedConstructor(Uint8List, 'view'); |
| 78 dart.setSignature(Uint8List, {}); | |
| 79 Uint8List.BYTES_PER_ELEMENT = 1; | 73 Uint8List.BYTES_PER_ELEMENT = 1; |
| 80 class Uint8ClampedList extends core.Object { | 74 class Uint8ClampedList extends core.Object { |
| 81 Uint8ClampedList(length) { | 75 Uint8ClampedList(length) { |
| 82 return new _native_typed_data.NativeUint8ClampedList(length); | 76 return new _native_typed_data.NativeUint8ClampedList(length); |
| 83 } | 77 } |
| 84 fromList(elements) { | 78 fromList(elements) { |
| 85 return new _native_typed_data.NativeUint8ClampedList.fromList(elements); | 79 return new _native_typed_data.NativeUint8ClampedList.fromList(elements); |
| 86 } | 80 } |
| 87 view(buffer, offsetInBytes, length) { | 81 view(buffer, offsetInBytes, length) { |
| 88 if (offsetInBytes === void 0) | 82 if (offsetInBytes === void 0) |
| 89 offsetInBytes = 0; | 83 offsetInBytes = 0; |
| 90 if (length === void 0) | 84 if (length === void 0) |
| 91 length = null; | 85 length = null; |
| 92 return buffer.asUint8ClampedList(offsetInBytes, length); | 86 return buffer.asUint8ClampedList(offsetInBytes, length); |
| 93 } | 87 } |
| 94 } | 88 } |
| 95 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; | 89 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 96 dart.defineNamedConstructor(Uint8ClampedList, 'fromList'); | 90 dart.defineNamedConstructor(Uint8ClampedList, 'fromList'); |
| 97 dart.defineNamedConstructor(Uint8ClampedList, 'view'); | 91 dart.defineNamedConstructor(Uint8ClampedList, 'view'); |
| 98 dart.setSignature(Uint8ClampedList, {}); | |
| 99 Uint8ClampedList.BYTES_PER_ELEMENT = 1; | 92 Uint8ClampedList.BYTES_PER_ELEMENT = 1; |
| 100 class Int16List extends core.Object { | 93 class Int16List extends core.Object { |
| 101 Int16List(length) { | 94 Int16List(length) { |
| 102 return new _native_typed_data.NativeInt16List(length); | 95 return new _native_typed_data.NativeInt16List(length); |
| 103 } | 96 } |
| 104 fromList(elements) { | 97 fromList(elements) { |
| 105 return new _native_typed_data.NativeInt16List.fromList(elements); | 98 return new _native_typed_data.NativeInt16List.fromList(elements); |
| 106 } | 99 } |
| 107 view(buffer, offsetInBytes, length) { | 100 view(buffer, offsetInBytes, length) { |
| 108 if (offsetInBytes === void 0) | 101 if (offsetInBytes === void 0) |
| 109 offsetInBytes = 0; | 102 offsetInBytes = 0; |
| 110 if (length === void 0) | 103 if (length === void 0) |
| 111 length = null; | 104 length = null; |
| 112 return buffer.asInt16List(offsetInBytes, length); | 105 return buffer.asInt16List(offsetInBytes, length); |
| 113 } | 106 } |
| 114 } | 107 } |
| 115 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; | 108 Int16List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 116 dart.defineNamedConstructor(Int16List, 'fromList'); | 109 dart.defineNamedConstructor(Int16List, 'fromList'); |
| 117 dart.defineNamedConstructor(Int16List, 'view'); | 110 dart.defineNamedConstructor(Int16List, 'view'); |
| 118 dart.setSignature(Int16List, {}); | |
| 119 Int16List.BYTES_PER_ELEMENT = 2; | 111 Int16List.BYTES_PER_ELEMENT = 2; |
| 120 class Uint16List extends core.Object { | 112 class Uint16List extends core.Object { |
| 121 Uint16List(length) { | 113 Uint16List(length) { |
| 122 return new _native_typed_data.NativeUint16List(length); | 114 return new _native_typed_data.NativeUint16List(length); |
| 123 } | 115 } |
| 124 fromList(elements) { | 116 fromList(elements) { |
| 125 return new _native_typed_data.NativeUint16List.fromList(elements); | 117 return new _native_typed_data.NativeUint16List.fromList(elements); |
| 126 } | 118 } |
| 127 view(buffer, offsetInBytes, length) { | 119 view(buffer, offsetInBytes, length) { |
| 128 if (offsetInBytes === void 0) | 120 if (offsetInBytes === void 0) |
| 129 offsetInBytes = 0; | 121 offsetInBytes = 0; |
| 130 if (length === void 0) | 122 if (length === void 0) |
| 131 length = null; | 123 length = null; |
| 132 return buffer.asUint16List(offsetInBytes, length); | 124 return buffer.asUint16List(offsetInBytes, length); |
| 133 } | 125 } |
| 134 } | 126 } |
| 135 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; | 127 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 136 dart.defineNamedConstructor(Uint16List, 'fromList'); | 128 dart.defineNamedConstructor(Uint16List, 'fromList'); |
| 137 dart.defineNamedConstructor(Uint16List, 'view'); | 129 dart.defineNamedConstructor(Uint16List, 'view'); |
| 138 dart.setSignature(Uint16List, {}); | |
| 139 Uint16List.BYTES_PER_ELEMENT = 2; | 130 Uint16List.BYTES_PER_ELEMENT = 2; |
| 140 class Int32List extends core.Object { | 131 class Int32List extends core.Object { |
| 141 Int32List(length) { | 132 Int32List(length) { |
| 142 return new _native_typed_data.NativeInt32List(length); | 133 return new _native_typed_data.NativeInt32List(length); |
| 143 } | 134 } |
| 144 fromList(elements) { | 135 fromList(elements) { |
| 145 return new _native_typed_data.NativeInt32List.fromList(elements); | 136 return new _native_typed_data.NativeInt32List.fromList(elements); |
| 146 } | 137 } |
| 147 view(buffer, offsetInBytes, length) { | 138 view(buffer, offsetInBytes, length) { |
| 148 if (offsetInBytes === void 0) | 139 if (offsetInBytes === void 0) |
| 149 offsetInBytes = 0; | 140 offsetInBytes = 0; |
| 150 if (length === void 0) | 141 if (length === void 0) |
| 151 length = null; | 142 length = null; |
| 152 return buffer.asInt32List(offsetInBytes, length); | 143 return buffer.asInt32List(offsetInBytes, length); |
| 153 } | 144 } |
| 154 } | 145 } |
| 155 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; | 146 Int32List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 156 dart.defineNamedConstructor(Int32List, 'fromList'); | 147 dart.defineNamedConstructor(Int32List, 'fromList'); |
| 157 dart.defineNamedConstructor(Int32List, 'view'); | 148 dart.defineNamedConstructor(Int32List, 'view'); |
| 158 dart.setSignature(Int32List, {}); | |
| 159 Int32List.BYTES_PER_ELEMENT = 4; | 149 Int32List.BYTES_PER_ELEMENT = 4; |
| 160 class Uint32List extends core.Object { | 150 class Uint32List extends core.Object { |
| 161 Uint32List(length) { | 151 Uint32List(length) { |
| 162 return new _native_typed_data.NativeUint32List(length); | 152 return new _native_typed_data.NativeUint32List(length); |
| 163 } | 153 } |
| 164 fromList(elements) { | 154 fromList(elements) { |
| 165 return new _native_typed_data.NativeUint32List.fromList(elements); | 155 return new _native_typed_data.NativeUint32List.fromList(elements); |
| 166 } | 156 } |
| 167 view(buffer, offsetInBytes, length) { | 157 view(buffer, offsetInBytes, length) { |
| 168 if (offsetInBytes === void 0) | 158 if (offsetInBytes === void 0) |
| 169 offsetInBytes = 0; | 159 offsetInBytes = 0; |
| 170 if (length === void 0) | 160 if (length === void 0) |
| 171 length = null; | 161 length = null; |
| 172 return buffer.asUint32List(offsetInBytes, length); | 162 return buffer.asUint32List(offsetInBytes, length); |
| 173 } | 163 } |
| 174 } | 164 } |
| 175 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; | 165 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 176 dart.defineNamedConstructor(Uint32List, 'fromList'); | 166 dart.defineNamedConstructor(Uint32List, 'fromList'); |
| 177 dart.defineNamedConstructor(Uint32List, 'view'); | 167 dart.defineNamedConstructor(Uint32List, 'view'); |
| 178 dart.setSignature(Uint32List, {}); | |
| 179 Uint32List.BYTES_PER_ELEMENT = 4; | 168 Uint32List.BYTES_PER_ELEMENT = 4; |
| 180 class Int64List extends core.Object { | 169 class Int64List extends core.Object { |
| 181 Int64List(length) { | 170 Int64List(length) { |
| 182 throw new core.UnsupportedError("Int64List not supported by dart2js."); | 171 throw new core.UnsupportedError("Int64List not supported by dart2js."); |
| 183 } | 172 } |
| 184 fromList(elements) { | 173 fromList(elements) { |
| 185 throw new core.UnsupportedError("Int64List not supported by dart2js."); | 174 throw new core.UnsupportedError("Int64List not supported by dart2js."); |
| 186 } | 175 } |
| 187 view(buffer, offsetInBytes, length) { | 176 view(buffer, offsetInBytes, length) { |
| 188 if (offsetInBytes === void 0) | 177 if (offsetInBytes === void 0) |
| 189 offsetInBytes = 0; | 178 offsetInBytes = 0; |
| 190 if (length === void 0) | 179 if (length === void 0) |
| 191 length = null; | 180 length = null; |
| 192 return buffer.asInt64List(offsetInBytes, length); | 181 return buffer.asInt64List(offsetInBytes, length); |
| 193 } | 182 } |
| 194 } | 183 } |
| 195 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; | 184 Int64List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 196 dart.defineNamedConstructor(Int64List, 'fromList'); | 185 dart.defineNamedConstructor(Int64List, 'fromList'); |
| 197 dart.defineNamedConstructor(Int64List, 'view'); | 186 dart.defineNamedConstructor(Int64List, 'view'); |
| 198 dart.setSignature(Int64List, {}); | |
| 199 Int64List.BYTES_PER_ELEMENT = 8; | 187 Int64List.BYTES_PER_ELEMENT = 8; |
| 200 class Uint64List extends core.Object { | 188 class Uint64List extends core.Object { |
| 201 Uint64List(length) { | 189 Uint64List(length) { |
| 202 throw new core.UnsupportedError("Uint64List not supported by dart2js."); | 190 throw new core.UnsupportedError("Uint64List not supported by dart2js."); |
| 203 } | 191 } |
| 204 fromList(elements) { | 192 fromList(elements) { |
| 205 throw new core.UnsupportedError("Uint64List not supported by dart2js."); | 193 throw new core.UnsupportedError("Uint64List not supported by dart2js."); |
| 206 } | 194 } |
| 207 view(buffer, offsetInBytes, length) { | 195 view(buffer, offsetInBytes, length) { |
| 208 if (offsetInBytes === void 0) | 196 if (offsetInBytes === void 0) |
| 209 offsetInBytes = 0; | 197 offsetInBytes = 0; |
| 210 if (length === void 0) | 198 if (length === void 0) |
| 211 length = null; | 199 length = null; |
| 212 return buffer.asUint64List(offsetInBytes, length); | 200 return buffer.asUint64List(offsetInBytes, length); |
| 213 } | 201 } |
| 214 } | 202 } |
| 215 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; | 203 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData]; |
| 216 dart.defineNamedConstructor(Uint64List, 'fromList'); | 204 dart.defineNamedConstructor(Uint64List, 'fromList'); |
| 217 dart.defineNamedConstructor(Uint64List, 'view'); | 205 dart.defineNamedConstructor(Uint64List, 'view'); |
| 218 dart.setSignature(Uint64List, {}); | |
| 219 Uint64List.BYTES_PER_ELEMENT = 8; | 206 Uint64List.BYTES_PER_ELEMENT = 8; |
| 220 class Float32List extends core.Object { | 207 class Float32List extends core.Object { |
| 221 Float32List(length) { | 208 Float32List(length) { |
| 222 return new _native_typed_data.NativeFloat32List(length); | 209 return new _native_typed_data.NativeFloat32List(length); |
| 223 } | 210 } |
| 224 fromList(elements) { | 211 fromList(elements) { |
| 225 return new _native_typed_data.NativeFloat32List.fromList(elements); | 212 return new _native_typed_data.NativeFloat32List.fromList(elements); |
| 226 } | 213 } |
| 227 view(buffer, offsetInBytes, length) { | 214 view(buffer, offsetInBytes, length) { |
| 228 if (offsetInBytes === void 0) | 215 if (offsetInBytes === void 0) |
| 229 offsetInBytes = 0; | 216 offsetInBytes = 0; |
| 230 if (length === void 0) | 217 if (length === void 0) |
| 231 length = null; | 218 length = null; |
| 232 return buffer.asFloat32List(offsetInBytes, length); | 219 return buffer.asFloat32List(offsetInBytes, length); |
| 233 } | 220 } |
| 234 } | 221 } |
| 235 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; | 222 Float32List[dart.implements] = () => [core.List$(core.double), TypedData]; |
| 236 dart.defineNamedConstructor(Float32List, 'fromList'); | 223 dart.defineNamedConstructor(Float32List, 'fromList'); |
| 237 dart.defineNamedConstructor(Float32List, 'view'); | 224 dart.defineNamedConstructor(Float32List, 'view'); |
| 238 dart.setSignature(Float32List, {}); | |
| 239 Float32List.BYTES_PER_ELEMENT = 4; | 225 Float32List.BYTES_PER_ELEMENT = 4; |
| 240 class Float64List extends core.Object { | 226 class Float64List extends core.Object { |
| 241 Float64List(length) { | 227 Float64List(length) { |
| 242 return new _native_typed_data.NativeFloat64List(length); | 228 return new _native_typed_data.NativeFloat64List(length); |
| 243 } | 229 } |
| 244 fromList(elements) { | 230 fromList(elements) { |
| 245 return new _native_typed_data.NativeFloat64List.fromList(elements); | 231 return new _native_typed_data.NativeFloat64List.fromList(elements); |
| 246 } | 232 } |
| 247 view(buffer, offsetInBytes, length) { | 233 view(buffer, offsetInBytes, length) { |
| 248 if (offsetInBytes === void 0) | 234 if (offsetInBytes === void 0) |
| 249 offsetInBytes = 0; | 235 offsetInBytes = 0; |
| 250 if (length === void 0) | 236 if (length === void 0) |
| 251 length = null; | 237 length = null; |
| 252 return buffer.asFloat64List(offsetInBytes, length); | 238 return buffer.asFloat64List(offsetInBytes, length); |
| 253 } | 239 } |
| 254 } | 240 } |
| 255 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; | 241 Float64List[dart.implements] = () => [core.List$(core.double), TypedData]; |
| 256 dart.defineNamedConstructor(Float64List, 'fromList'); | 242 dart.defineNamedConstructor(Float64List, 'fromList'); |
| 257 dart.defineNamedConstructor(Float64List, 'view'); | 243 dart.defineNamedConstructor(Float64List, 'view'); |
| 258 dart.setSignature(Float64List, {}); | |
| 259 Float64List.BYTES_PER_ELEMENT = 8; | 244 Float64List.BYTES_PER_ELEMENT = 8; |
| 260 class Float32x4List extends core.Object { | 245 class Float32x4List extends core.Object { |
| 261 Float32x4List(length) { | 246 Float32x4List(length) { |
| 262 return new _native_typed_data.NativeFloat32x4List(length); | 247 return new _native_typed_data.NativeFloat32x4List(length); |
| 263 } | 248 } |
| 264 fromList(elements) { | 249 fromList(elements) { |
| 265 return new _native_typed_data.NativeFloat32x4List.fromList(elements); | 250 return new _native_typed_data.NativeFloat32x4List.fromList(elements); |
| 266 } | 251 } |
| 267 view(buffer, offsetInBytes, length) { | 252 view(buffer, offsetInBytes, length) { |
| 268 if (offsetInBytes === void 0) | 253 if (offsetInBytes === void 0) |
| 269 offsetInBytes = 0; | 254 offsetInBytes = 0; |
| 270 if (length === void 0) | 255 if (length === void 0) |
| 271 length = null; | 256 length = null; |
| 272 return buffer.asFloat32x4List(offsetInBytes, length); | 257 return buffer.asFloat32x4List(offsetInBytes, length); |
| 273 } | 258 } |
| 274 } | 259 } |
| 275 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; | 260 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData]; |
| 276 dart.defineNamedConstructor(Float32x4List, 'fromList'); | 261 dart.defineNamedConstructor(Float32x4List, 'fromList'); |
| 277 dart.defineNamedConstructor(Float32x4List, 'view'); | 262 dart.defineNamedConstructor(Float32x4List, 'view'); |
| 278 dart.setSignature(Float32x4List, {}); | |
| 279 Float32x4List.BYTES_PER_ELEMENT = 16; | 263 Float32x4List.BYTES_PER_ELEMENT = 16; |
| 280 class Int32x4List extends core.Object { | 264 class Int32x4List extends core.Object { |
| 281 Int32x4List(length) { | 265 Int32x4List(length) { |
| 282 return new _native_typed_data.NativeInt32x4List(length); | 266 return new _native_typed_data.NativeInt32x4List(length); |
| 283 } | 267 } |
| 284 fromList(elements) { | 268 fromList(elements) { |
| 285 return new _native_typed_data.NativeInt32x4List.fromList(elements); | 269 return new _native_typed_data.NativeInt32x4List.fromList(elements); |
| 286 } | 270 } |
| 287 view(buffer, offsetInBytes, length) { | 271 view(buffer, offsetInBytes, length) { |
| 288 if (offsetInBytes === void 0) | 272 if (offsetInBytes === void 0) |
| 289 offsetInBytes = 0; | 273 offsetInBytes = 0; |
| 290 if (length === void 0) | 274 if (length === void 0) |
| 291 length = null; | 275 length = null; |
| 292 return buffer.asInt32x4List(offsetInBytes, length); | 276 return buffer.asInt32x4List(offsetInBytes, length); |
| 293 } | 277 } |
| 294 } | 278 } |
| 295 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; | 279 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData]; |
| 296 dart.defineNamedConstructor(Int32x4List, 'fromList'); | 280 dart.defineNamedConstructor(Int32x4List, 'fromList'); |
| 297 dart.defineNamedConstructor(Int32x4List, 'view'); | 281 dart.defineNamedConstructor(Int32x4List, 'view'); |
| 298 dart.setSignature(Int32x4List, {}); | |
| 299 Int32x4List.BYTES_PER_ELEMENT = 16; | 282 Int32x4List.BYTES_PER_ELEMENT = 16; |
| 300 class Float64x2List extends core.Object { | 283 class Float64x2List extends core.Object { |
| 301 Float64x2List(length) { | 284 Float64x2List(length) { |
| 302 return new _native_typed_data.NativeFloat64x2List(length); | 285 return new _native_typed_data.NativeFloat64x2List(length); |
| 303 } | 286 } |
| 304 fromList(elements) { | 287 fromList(elements) { |
| 305 return new _native_typed_data.NativeFloat64x2List.fromList(elements); | 288 return new _native_typed_data.NativeFloat64x2List.fromList(elements); |
| 306 } | 289 } |
| 307 view(buffer, offsetInBytes, length) { | 290 view(buffer, offsetInBytes, length) { |
| 308 if (offsetInBytes === void 0) | 291 if (offsetInBytes === void 0) |
| 309 offsetInBytes = 0; | 292 offsetInBytes = 0; |
| 310 if (length === void 0) | 293 if (length === void 0) |
| 311 length = null; | 294 length = null; |
| 312 return buffer.asFloat64x2List(offsetInBytes, length); | 295 return buffer.asFloat64x2List(offsetInBytes, length); |
| 313 } | 296 } |
| 314 } | 297 } |
| 315 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; | 298 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData]; |
| 316 dart.defineNamedConstructor(Float64x2List, 'fromList'); | 299 dart.defineNamedConstructor(Float64x2List, 'fromList'); |
| 317 dart.defineNamedConstructor(Float64x2List, 'view'); | 300 dart.defineNamedConstructor(Float64x2List, 'view'); |
| 318 dart.setSignature(Float64x2List, {}); | |
| 319 Float64x2List.BYTES_PER_ELEMENT = 16; | 301 Float64x2List.BYTES_PER_ELEMENT = 16; |
| 320 class Float32x4 extends core.Object { | 302 class Float32x4 extends core.Object { |
| 321 Float32x4(x, y, z, w) { | 303 Float32x4(x, y, z, w) { |
| 322 return new _native_typed_data.NativeFloat32x4(x, y, z, w); | 304 return new _native_typed_data.NativeFloat32x4(x, y, z, w); |
| 323 } | 305 } |
| 324 splat(v) { | 306 splat(v) { |
| 325 return new _native_typed_data.NativeFloat32x4.splat(v); | 307 return new _native_typed_data.NativeFloat32x4.splat(v); |
| 326 } | 308 } |
| 327 zero() { | 309 zero() { |
| 328 return new _native_typed_data.NativeFloat32x4.zero(); | 310 return new _native_typed_data.NativeFloat32x4.zero(); |
| 329 } | 311 } |
| 330 fromInt32x4Bits(x) { | 312 fromInt32x4Bits(x) { |
| 331 return new _native_typed_data.NativeFloat32x4.fromInt32x4Bits(x); | 313 return new _native_typed_data.NativeFloat32x4.fromInt32x4Bits(x); |
| 332 } | 314 } |
| 333 fromFloat64x2(v) { | 315 fromFloat64x2(v) { |
| 334 return new _native_typed_data.NativeFloat32x4.fromFloat64x2(v); | 316 return new _native_typed_data.NativeFloat32x4.fromFloat64x2(v); |
| 335 } | 317 } |
| 336 } | 318 } |
| 337 dart.defineNamedConstructor(Float32x4, 'splat'); | 319 dart.defineNamedConstructor(Float32x4, 'splat'); |
| 338 dart.defineNamedConstructor(Float32x4, 'zero'); | 320 dart.defineNamedConstructor(Float32x4, 'zero'); |
| 339 dart.defineNamedConstructor(Float32x4, 'fromInt32x4Bits'); | 321 dart.defineNamedConstructor(Float32x4, 'fromInt32x4Bits'); |
| 340 dart.defineNamedConstructor(Float32x4, 'fromFloat64x2'); | 322 dart.defineNamedConstructor(Float32x4, 'fromFloat64x2'); |
| 341 dart.setSignature(Float32x4, {}); | |
| 342 Float32x4.XXXX = 0; | 323 Float32x4.XXXX = 0; |
| 343 Float32x4.XXXY = 64; | 324 Float32x4.XXXY = 64; |
| 344 Float32x4.XXXZ = 128; | 325 Float32x4.XXXZ = 128; |
| 345 Float32x4.XXXW = 192; | 326 Float32x4.XXXW = 192; |
| 346 Float32x4.XXYX = 16; | 327 Float32x4.XXYX = 16; |
| 347 Float32x4.XXYY = 80; | 328 Float32x4.XXYY = 80; |
| 348 Float32x4.XXYZ = 144; | 329 Float32x4.XXYZ = 144; |
| 349 Float32x4.XXYW = 208; | 330 Float32x4.XXYW = 208; |
| 350 Float32x4.XXZX = 32; | 331 Float32x4.XXZX = 32; |
| 351 Float32x4.XXZY = 96; | 332 Float32x4.XXZY = 96; |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 } | 582 } |
| 602 bool(x, y, z, w) { | 583 bool(x, y, z, w) { |
| 603 return new _native_typed_data.NativeInt32x4.bool(x, y, z, w); | 584 return new _native_typed_data.NativeInt32x4.bool(x, y, z, w); |
| 604 } | 585 } |
| 605 fromFloat32x4Bits(x) { | 586 fromFloat32x4Bits(x) { |
| 606 return new _native_typed_data.NativeInt32x4.fromFloat32x4Bits(x); | 587 return new _native_typed_data.NativeInt32x4.fromFloat32x4Bits(x); |
| 607 } | 588 } |
| 608 } | 589 } |
| 609 dart.defineNamedConstructor(Int32x4, 'bool'); | 590 dart.defineNamedConstructor(Int32x4, 'bool'); |
| 610 dart.defineNamedConstructor(Int32x4, 'fromFloat32x4Bits'); | 591 dart.defineNamedConstructor(Int32x4, 'fromFloat32x4Bits'); |
| 611 dart.setSignature(Int32x4, {}); | |
| 612 Int32x4.XXXX = 0; | 592 Int32x4.XXXX = 0; |
| 613 Int32x4.XXXY = 64; | 593 Int32x4.XXXY = 64; |
| 614 Int32x4.XXXZ = 128; | 594 Int32x4.XXXZ = 128; |
| 615 Int32x4.XXXW = 192; | 595 Int32x4.XXXW = 192; |
| 616 Int32x4.XXYX = 16; | 596 Int32x4.XXYX = 16; |
| 617 Int32x4.XXYY = 80; | 597 Int32x4.XXYY = 80; |
| 618 Int32x4.XXYZ = 144; | 598 Int32x4.XXYZ = 144; |
| 619 Int32x4.XXYW = 208; | 599 Int32x4.XXYW = 208; |
| 620 Int32x4.XXZX = 32; | 600 Int32x4.XXZX = 32; |
| 621 Int32x4.XXZY = 96; | 601 Int32x4.XXZY = 96; |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 875 zero() { | 855 zero() { |
| 876 return new _native_typed_data.NativeFloat64x2.zero(); | 856 return new _native_typed_data.NativeFloat64x2.zero(); |
| 877 } | 857 } |
| 878 fromFloat32x4(v) { | 858 fromFloat32x4(v) { |
| 879 return new _native_typed_data.NativeFloat64x2.fromFloat32x4(v); | 859 return new _native_typed_data.NativeFloat64x2.fromFloat32x4(v); |
| 880 } | 860 } |
| 881 } | 861 } |
| 882 dart.defineNamedConstructor(Float64x2, 'splat'); | 862 dart.defineNamedConstructor(Float64x2, 'splat'); |
| 883 dart.defineNamedConstructor(Float64x2, 'zero'); | 863 dart.defineNamedConstructor(Float64x2, 'zero'); |
| 884 dart.defineNamedConstructor(Float64x2, 'fromFloat32x4'); | 864 dart.defineNamedConstructor(Float64x2, 'fromFloat32x4'); |
| 885 dart.setSignature(Float64x2, {}); | |
| 886 // Exports: | 865 // Exports: |
| 887 exports.ByteBuffer = ByteBuffer; | 866 exports.ByteBuffer = ByteBuffer; |
| 888 exports.TypedData = TypedData; | 867 exports.TypedData = TypedData; |
| 889 exports.Endianness = Endianness; | 868 exports.Endianness = Endianness; |
| 890 exports.ByteData = ByteData; | 869 exports.ByteData = ByteData; |
| 891 exports.Int8List = Int8List; | 870 exports.Int8List = Int8List; |
| 892 exports.Uint8List = Uint8List; | 871 exports.Uint8List = Uint8List; |
| 893 exports.Uint8ClampedList = Uint8ClampedList; | 872 exports.Uint8ClampedList = Uint8ClampedList; |
| 894 exports.Int16List = Int16List; | 873 exports.Int16List = Int16List; |
| 895 exports.Uint16List = Uint16List; | 874 exports.Uint16List = Uint16List; |
| 896 exports.Int32List = Int32List; | 875 exports.Int32List = Int32List; |
| 897 exports.Uint32List = Uint32List; | 876 exports.Uint32List = Uint32List; |
| 898 exports.Int64List = Int64List; | 877 exports.Int64List = Int64List; |
| 899 exports.Uint64List = Uint64List; | 878 exports.Uint64List = Uint64List; |
| 900 exports.Float32List = Float32List; | 879 exports.Float32List = Float32List; |
| 901 exports.Float64List = Float64List; | 880 exports.Float64List = Float64List; |
| 902 exports.Float32x4List = Float32x4List; | 881 exports.Float32x4List = Float32x4List; |
| 903 exports.Int32x4List = Int32x4List; | 882 exports.Int32x4List = Int32x4List; |
| 904 exports.Float64x2List = Float64x2List; | 883 exports.Float64x2List = Float64x2List; |
| 905 exports.Float32x4 = Float32x4; | 884 exports.Float32x4 = Float32x4; |
| 906 exports.Int32x4 = Int32x4; | 885 exports.Int32x4 = Int32x4; |
| 907 exports.Float64x2 = Float64x2; | 886 exports.Float64x2 = Float64x2; |
| 908 })(typed_data, core, _native_typed_data); | 887 })(typed_data, core, _native_typed_data); |
| OLD | NEW |