| Index: lib/runtime/dart/_native_typed_data.js
|
| diff --git a/lib/runtime/dart/_native_typed_data.js b/lib/runtime/dart/_native_typed_data.js
|
| index f18bc3f23e12c837e26b1534f40fca266020b103..2e5f632dd35072061629df31243017eec04d83f4 100644
|
| --- a/lib/runtime/dart/_native_typed_data.js
|
| +++ b/lib/runtime/dart/_native_typed_data.js
|
| @@ -86,7 +86,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| offsetInBytes = 0;
|
| if (length === void 0)
|
| length = null;
|
| - let storage = dart.as(this.asInt32List(offsetInBytes, length != null ? dart.notNull(length) * 4 : null), NativeInt32List);
|
| + let storage = dart.as(dart.dcall(this.asInt32List, offsetInBytes, length != null ? dart.notNull(length) * 4 : null), NativeInt32List);
|
| return new NativeInt32x4List._externalStorage(storage);
|
| }
|
| asFloat32List(offsetInBytes, length) {
|
| @@ -108,7 +108,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| offsetInBytes = 0;
|
| if (length === void 0)
|
| length = null;
|
| - let storage = dart.as(this.asFloat32List(offsetInBytes, length != null ? dart.notNull(length) * 4 : null), NativeFloat32List);
|
| + let storage = dart.as(dart.dcall(this.asFloat32List, offsetInBytes, length != null ? dart.notNull(length) * 4 : null), NativeFloat32List);
|
| return new NativeFloat32x4List._externalStorage(storage);
|
| }
|
| asFloat64x2List(offsetInBytes, length) {
|
| @@ -116,7 +116,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| offsetInBytes = 0;
|
| if (length === void 0)
|
| length = null;
|
| - let storage = dart.as(this.asFloat64List(offsetInBytes, length != null ? dart.notNull(length) * 2 : null), NativeFloat64List);
|
| + let storage = dart.as(dart.dcall(this.asFloat64List, offsetInBytes, length != null ? dart.notNull(length) * 2 : null), NativeFloat64List);
|
| return new NativeFloat64x2List._externalStorage(storage);
|
| }
|
| asByteData(offsetInBytes, length) {
|
| @@ -163,10 +163,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| this[_storage] = NativeFloat32List.new(dart.notNull(list[dartx.length]) * 4);
|
| for (let i = 0; dart.notNull(i) < dart.notNull(list[dartx.length]); i = dart.notNull(i) + 1) {
|
| let e = list[dartx.get](i);
|
| - this[_storage].set(dart.notNull(i) * 4 + 0, e.x);
|
| - this[_storage].set(dart.notNull(i) * 4 + 1, e.y);
|
| - this[_storage].set(dart.notNull(i) * 4 + 2, e.z);
|
| - this[_storage].set(dart.notNull(i) * 4 + 3, e.w);
|
| + this[_storage].set(dart.notNull(i) * 4 + 0, dart.as(dart.dload(e, 'x'), core.num));
|
| + this[_storage].set(dart.notNull(i) * 4 + 1, dart.as(dart.dload(e, 'y'), core.num));
|
| + this[_storage].set(dart.notNull(i) * 4 + 2, dart.as(dart.dload(e, 'z'), core.num));
|
| + this[_storage].set(dart.notNull(i) * 4 + 3, dart.as(dart.dload(e, 'w'), core.num));
|
| }
|
| }
|
| get runtimeType() {
|
| @@ -202,15 +202,15 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| }
|
| }
|
| [_checkIndex](index, length) {
|
| - if (index >>> 0 != index || dart.notNull(index) >= dart.notNull(length)) {
|
| - this[_invalidIndex](index, length);
|
| + if (dart.notNull(dart.as(index >>> 0 != index, core.bool)) || dart.notNull(index) >= dart.notNull(length)) {
|
| + dart.dcall(this[_invalidIndex], index, length);
|
| }
|
| }
|
| [_checkSublistArguments](start, end, length) {
|
| - this[_checkIndex](start, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], start, dart.notNull(length) + 1);
|
| if (end == null)
|
| return length;
|
| - this[_checkIndex](end, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], end, dart.notNull(length) + 1);
|
| if (dart.notNull(start) > dart.notNull(end))
|
| dart.throw(new core.RangeError.range(start, 0, end));
|
| return end;
|
| @@ -219,7 +219,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return (dart.notNull(this[_storage].length) / 4)[dartx.truncate]();
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| let _x = this[_storage].get(dart.notNull(index) * 4 + 0);
|
| let _y = this[_storage].get(dart.notNull(index) * 4 + 1);
|
| let _z = this[_storage].get(dart.notNull(index) * 4 + 2);
|
| @@ -227,7 +227,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat32x4._truncated(_x, _y, _z, _w);
|
| }
|
| set(index, value) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| this[_storage].set(dart.notNull(index) * 4 + 0, value.x);
|
| this[_storage].set(dart.notNull(index) * 4 + 1, value.y);
|
| this[_storage].set(dart.notNull(index) * 4 + 2, value.z);
|
| @@ -237,8 +237,8 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| - return new NativeFloat32x4List._externalStorage(dart.as(this[_storage].sublist(dart.notNull(start) * 4, dart.notNull(end) * 4), NativeFloat32List));
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| + return new NativeFloat32x4List._externalStorage(dart.as(dart.dcall(this[_storage].sublist, dart.notNull(start) * 4, dart.notNull(end) * 4), NativeFloat32List));
|
| }
|
| }
|
| NativeFloat32x4List[dart.implements] = () => [typed_data.Float32x4List];
|
| @@ -272,10 +272,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| this[_storage] = NativeInt32List.new(dart.notNull(list[dartx.length]) * 4);
|
| for (let i = 0; dart.notNull(i) < dart.notNull(list[dartx.length]); i = dart.notNull(i) + 1) {
|
| let e = list[dartx.get](i);
|
| - this[_storage].set(dart.notNull(i) * 4 + 0, e.x);
|
| - this[_storage].set(dart.notNull(i) * 4 + 1, e.y);
|
| - this[_storage].set(dart.notNull(i) * 4 + 2, e.z);
|
| - this[_storage].set(dart.notNull(i) * 4 + 3, e.w);
|
| + this[_storage].set(dart.notNull(i) * 4 + 0, dart.as(dart.dload(e, 'x'), core.int));
|
| + this[_storage].set(dart.notNull(i) * 4 + 1, dart.as(dart.dload(e, 'y'), core.int));
|
| + this[_storage].set(dart.notNull(i) * 4 + 2, dart.as(dart.dload(e, 'z'), core.int));
|
| + this[_storage].set(dart.notNull(i) * 4 + 3, dart.as(dart.dload(e, 'w'), core.int));
|
| }
|
| }
|
| get runtimeType() {
|
| @@ -311,15 +311,15 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| }
|
| }
|
| [_checkIndex](index, length) {
|
| - if (index >>> 0 != index || index >= length) {
|
| - this[_invalidIndex](index, length);
|
| + if (dart.notNull(dart.as(index >>> 0 != index, core.bool)) || dart.notNull(dart.as(index >= length, core.bool))) {
|
| + dart.dcall(this[_invalidIndex], index, length);
|
| }
|
| }
|
| [_checkSublistArguments](start, end, length) {
|
| - this[_checkIndex](start, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], start, dart.notNull(length) + 1);
|
| if (end == null)
|
| return length;
|
| - this[_checkIndex](end, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], end, dart.notNull(length) + 1);
|
| if (dart.notNull(start) > dart.notNull(end))
|
| dart.throw(new core.RangeError.range(start, 0, end));
|
| return end;
|
| @@ -328,7 +328,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return (dart.notNull(this[_storage].length) / 4)[dartx.truncate]();
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| let _x = this[_storage].get(dart.notNull(index) * 4 + 0);
|
| let _y = this[_storage].get(dart.notNull(index) * 4 + 1);
|
| let _z = this[_storage].get(dart.notNull(index) * 4 + 2);
|
| @@ -336,7 +336,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeInt32x4._truncated(_x, _y, _z, _w);
|
| }
|
| set(index, value) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| this[_storage].set(dart.notNull(index) * 4 + 0, value.x);
|
| this[_storage].set(dart.notNull(index) * 4 + 1, value.y);
|
| this[_storage].set(dart.notNull(index) * 4 + 2, value.z);
|
| @@ -346,8 +346,8 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| - return new NativeInt32x4List._externalStorage(dart.as(this[_storage].sublist(dart.notNull(start) * 4, dart.notNull(end) * 4), typed_data.Int32List));
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| + return new NativeInt32x4List._externalStorage(dart.as(dart.dcall(this[_storage].sublist, dart.notNull(start) * 4, dart.notNull(end) * 4), typed_data.Int32List));
|
| }
|
| }
|
| NativeInt32x4List[dart.implements] = () => [typed_data.Int32x4List];
|
| @@ -381,8 +381,8 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| this[_storage] = NativeFloat64List.new(dart.notNull(list[dartx.length]) * 2);
|
| for (let i = 0; dart.notNull(i) < dart.notNull(list[dartx.length]); i = dart.notNull(i) + 1) {
|
| let e = list[dartx.get](i);
|
| - this[_storage].set(dart.notNull(i) * 2 + 0, e.x);
|
| - this[_storage].set(dart.notNull(i) * 2 + 1, e.y);
|
| + this[_storage].set(dart.notNull(i) * 2 + 0, dart.as(dart.dload(e, 'x'), core.num));
|
| + this[_storage].set(dart.notNull(i) * 2 + 1, dart.as(dart.dload(e, 'y'), core.num));
|
| }
|
| }
|
| static fromList(list) {
|
| @@ -418,15 +418,15 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| }
|
| }
|
| [_checkIndex](index, length) {
|
| - if (index >>> 0 != index || dart.notNull(index) >= dart.notNull(length)) {
|
| - this[_invalidIndex](index, length);
|
| + if (dart.notNull(dart.as(index >>> 0 != index, core.bool)) || dart.notNull(index) >= dart.notNull(length)) {
|
| + dart.dcall(this[_invalidIndex], index, length);
|
| }
|
| }
|
| [_checkSublistArguments](start, end, length) {
|
| - this[_checkIndex](start, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], start, dart.notNull(length) + 1);
|
| if (end == null)
|
| return length;
|
| - this[_checkIndex](end, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], end, dart.notNull(length) + 1);
|
| if (dart.notNull(start) > dart.notNull(end))
|
| dart.throw(new core.RangeError.range(start, 0, end));
|
| return end;
|
| @@ -435,13 +435,13 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return (dart.notNull(this[_storage].length) / 2)[dartx.truncate]();
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| let _x = this[_storage].get(dart.notNull(index) * 2 + 0);
|
| let _y = this[_storage].get(dart.notNull(index) * 2 + 1);
|
| return typed_data.Float64x2.new(_x, _y);
|
| }
|
| set(index, value) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| this[_storage].set(dart.notNull(index) * 2 + 0, value.x);
|
| this[_storage].set(dart.notNull(index) * 2 + 1, value.y);
|
| return value;
|
| @@ -449,8 +449,8 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| - return new NativeFloat64x2List._externalStorage(dart.as(this[_storage].sublist(dart.notNull(start) * 2, dart.notNull(end) * 2), NativeFloat64List));
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| + return new NativeFloat64x2List._externalStorage(dart.as(dart.dcall(this[_storage].sublist, dart.notNull(start) * 2, dart.notNull(end) * 2), NativeFloat64List));
|
| }
|
| }
|
| NativeFloat64x2List[dart.implements] = () => [typed_data.Float64x2List];
|
| @@ -484,7 +484,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| if (dart.notNull(index) < 0 || dart.notNull(index) >= dart.notNull(length)) {
|
| if (dart.is(this, core.List)) {
|
| let list = this;
|
| - if (dart.equals(length, list.length)) {
|
| + if (dart.equals(length, dart.dload(list, 'length'))) {
|
| dart.throw(core.RangeError.index(index, this));
|
| }
|
| }
|
| @@ -494,15 +494,15 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| }
|
| }
|
| [_checkIndex](index, length) {
|
| - if (index >>> 0 !== index || index >= dart.notNull(length)) {
|
| - this[_invalidIndex](index, length);
|
| + if (dart.notNull(dart.as(index >>> 0 !== index, core.bool)) || dart.notNull(dart.as(dart.dsend(index, '>=', length), core.bool))) {
|
| + dart.dcall(this[_invalidIndex], index, length);
|
| }
|
| }
|
| [_checkSublistArguments](start, end, length) {
|
| - this[_checkIndex](start, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], start, dart.notNull(length) + 1);
|
| if (end == null)
|
| return length;
|
| - this[_checkIndex](end, dart.notNull(length) + 1);
|
| + dart.dcall(this[_checkIndex], end, dart.notNull(length) + 1);
|
| if (dart.notNull(start) > dart.notNull(end))
|
| dart.throw(new core.RangeError.range(start, 0, end));
|
| return end;
|
| @@ -559,11 +559,11 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| let _setUint32 = Symbol('_setUint32');
|
| class NativeByteData extends NativeTypedData {
|
| static new(length) {
|
| - return NativeByteData._create1(_checkLength(length));
|
| + return dart.dcall(NativeByteData._create1, dart.dcall(_checkLength, length));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeByteData._create2(buffer, offsetInBytes) : NativeByteData._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeByteData._create2, buffer, offsetInBytes) : dart.dcall(NativeByteData._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.ByteData;
|
| @@ -574,22 +574,22 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| getFloat32(byteOffset, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_getFloat32](byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_getFloat32], byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| getFloat64(byteOffset, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_getFloat64](byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_getFloat64], byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| getInt16(byteOffset, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_getInt16](byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_getInt16], byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| getInt32(byteOffset, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_getInt32](byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_getInt32], byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| getInt64(byteOffset, endian) {
|
| if (endian === void 0)
|
| @@ -599,12 +599,12 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| getUint16(byteOffset, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_getUint16](byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_getUint16], byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| getUint32(byteOffset, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_getUint32](byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_getUint32], byteOffset, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| getUint64(byteOffset, endian) {
|
| if (endian === void 0)
|
| @@ -614,22 +614,22 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| setFloat32(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_setFloat32](byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_setFloat32], byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| setFloat64(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_setFloat64](byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_setFloat64], byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| setInt16(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_setInt16](byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_setInt16], byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| setInt32(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_setInt32](byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_setInt32], byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| setInt64(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| @@ -639,12 +639,12 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| setUint16(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_setUint16](byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_setUint16], byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| setUint32(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| endian = typed_data.Endianness.BIG_ENDIAN;
|
| - return this[_setUint32](byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| + return dart.dcall(this[_setUint32], byteOffset, value, dart.equals(typed_data.Endianness.LITTLE_ENDIAN, endian));
|
| }
|
| setUint64(byteOffset, value, endian) {
|
| if (endian === void 0)
|
| @@ -716,8 +716,8 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| }
|
| [_setRangeFast](start, end, source, skipCount) {
|
| let targetLength = this.length;
|
| - this[_checkIndex](start, dart.notNull(targetLength) + 1);
|
| - this[_checkIndex](end, dart.notNull(targetLength) + 1);
|
| + dart.dcall(this[_checkIndex], start, dart.notNull(targetLength) + 1);
|
| + dart.dcall(this[_checkIndex], end, dart.notNull(targetLength) + 1);
|
| if (dart.notNull(start) > dart.notNull(end))
|
| dart.throw(new core.RangeError.range(start, 0, end));
|
| let count = dart.notNull(end) - dart.notNull(start);
|
| @@ -742,11 +742,11 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return dart.as(this.length, core.int);
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| - return this[index];
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| + return dart.as(this[index], core.double);
|
| }
|
| set(index, value) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| this[index] = value;
|
| return value;
|
| }
|
| @@ -754,10 +754,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| if (skipCount === void 0)
|
| skipCount = 0;
|
| if (dart.is(iterable, NativeTypedArrayOfDouble)) {
|
| - this[_setRangeFast](start, end, iterable, skipCount);
|
| + dart.dcall(this[_setRangeFast], start, end, iterable, skipCount);
|
| return;
|
| }
|
| - super.setRange(start, end, iterable, skipCount);
|
| + dart.dcall(super.setRange, start, end, iterable, skipCount);
|
| }
|
| }
|
| dart.setSignature(NativeTypedArrayOfDouble, {
|
| @@ -773,7 +773,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return dart.as(this.length, core.int);
|
| }
|
| set(index, value) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| this[index] = value;
|
| return value;
|
| }
|
| @@ -781,10 +781,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| if (skipCount === void 0)
|
| skipCount = 0;
|
| if (dart.is(iterable, NativeTypedArrayOfInt)) {
|
| - this[_setRangeFast](start, end, iterable, skipCount);
|
| + dart.dcall(this[_setRangeFast], start, end, iterable, skipCount);
|
| return;
|
| }
|
| - super.setRange(start, end, iterable, skipCount);
|
| + dart.dcall(super.setRange, start, end, iterable, skipCount);
|
| }
|
| }
|
| NativeTypedArrayOfInt[dart.implements] = () => [core.List$(core.int)];
|
| @@ -797,14 +797,14 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| dart.defineExtensionMembers(NativeTypedArrayOfInt, ['set', 'setRange', 'length']);
|
| class NativeFloat32List extends NativeTypedArrayOfDouble {
|
| static new(length) {
|
| - return NativeFloat32List._create1(_checkLength(length));
|
| + return dart.dcall(NativeFloat32List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeFloat32List._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeFloat32List._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeFloat32List._create2(buffer, offsetInBytes) : NativeFloat32List._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeFloat32List._create2, buffer, offsetInBytes) : dart.dcall(NativeFloat32List._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Float32List;
|
| @@ -812,9 +812,9 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeFloat32List._create1(source);
|
| + return dart.dcall(NativeFloat32List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Float32Array(arg), NativeFloat32List);
|
| @@ -845,14 +845,14 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeFloat32List[dart.metadata] = () => [dart.const(new _js_helper.Native("Float32Array"))];
|
| class NativeFloat64List extends NativeTypedArrayOfDouble {
|
| static new(length) {
|
| - return NativeFloat64List._create1(_checkLength(length));
|
| + return dart.dcall(NativeFloat64List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeFloat64List._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeFloat64List._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeFloat64List._create2(buffer, offsetInBytes) : NativeFloat64List._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeFloat64List._create2, buffer, offsetInBytes) : dart.dcall(NativeFloat64List._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Float64List;
|
| @@ -860,9 +860,9 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeFloat64List._create1(source);
|
| + return dart.dcall(NativeFloat64List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Float64Array(arg), NativeFloat64List);
|
| @@ -893,28 +893,28 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeFloat64List[dart.metadata] = () => [dart.const(new _js_helper.Native("Float64Array"))];
|
| class NativeInt16List extends NativeTypedArrayOfInt {
|
| static new(length) {
|
| - return NativeInt16List._create1(_checkLength(length));
|
| + return dart.dcall(NativeInt16List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeInt16List._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeInt16List._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeInt16List._create2(buffer, offsetInBytes) : NativeInt16List._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeInt16List._create2, buffer, offsetInBytes) : dart.dcall(NativeInt16List._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Int16List;
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| - return this[index];
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| + return dart.as(this[index], core.int);
|
| }
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeInt16List._create1(source);
|
| + return dart.dcall(NativeInt16List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Int16Array(arg), NativeInt16List);
|
| @@ -948,28 +948,28 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeInt16List[dart.metadata] = () => [dart.const(new _js_helper.Native("Int16Array"))];
|
| class NativeInt32List extends NativeTypedArrayOfInt {
|
| static new(length) {
|
| - return NativeInt32List._create1(_checkLength(length));
|
| + return dart.dcall(NativeInt32List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeInt32List._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeInt32List._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeInt32List._create2(buffer, offsetInBytes) : NativeInt32List._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeInt32List._create2, buffer, offsetInBytes) : dart.dcall(NativeInt32List._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Int32List;
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| - return this[index];
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| + return dart.as(this[index], core.int);
|
| }
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeInt32List._create1(source);
|
| + return dart.dcall(NativeInt32List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Int32Array(arg), NativeInt32List);
|
| @@ -1003,28 +1003,28 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeInt32List[dart.metadata] = () => [dart.const(new _js_helper.Native("Int32Array"))];
|
| class NativeInt8List extends NativeTypedArrayOfInt {
|
| static new(length) {
|
| - return NativeInt8List._create1(_checkLength(length));
|
| + return dart.dcall(NativeInt8List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeInt8List._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeInt8List._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return dart.as(length == null ? NativeInt8List._create2(buffer, offsetInBytes) : NativeInt8List._create3(buffer, offsetInBytes, length), NativeInt8List);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return dart.as(length == null ? dart.dcall(NativeInt8List._create2, buffer, offsetInBytes) : dart.dcall(NativeInt8List._create3, buffer, offsetInBytes, length), NativeInt8List);
|
| }
|
| get runtimeType() {
|
| return typed_data.Int8List;
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| - return this[index];
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| + return dart.as(this[index], core.int);
|
| }
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeInt8List._create1(source);
|
| + return dart.dcall(NativeInt8List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Int8Array(arg), NativeInt8List);
|
| @@ -1058,28 +1058,28 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeInt8List[dart.metadata] = () => [dart.const(new _js_helper.Native("Int8Array"))];
|
| class NativeUint16List extends NativeTypedArrayOfInt {
|
| static new(length) {
|
| - return NativeUint16List._create1(_checkLength(length));
|
| + return dart.dcall(NativeUint16List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(list) {
|
| - return NativeUint16List._create1(_ensureNativeList(list));
|
| + return dart.dcall(NativeUint16List._create1, dart.dcall(_ensureNativeList, list));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeUint16List._create2(buffer, offsetInBytes) : NativeUint16List._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeUint16List._create2, buffer, offsetInBytes) : dart.dcall(NativeUint16List._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Uint16List;
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| return dart.as(this[index], core.int);
|
| }
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeUint16List._create1(source);
|
| + return dart.dcall(NativeUint16List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Uint16Array(arg), NativeUint16List);
|
| @@ -1113,28 +1113,28 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeUint16List[dart.metadata] = () => [dart.const(new _js_helper.Native("Uint16Array"))];
|
| class NativeUint32List extends NativeTypedArrayOfInt {
|
| static new(length) {
|
| - return NativeUint32List._create1(_checkLength(length));
|
| + return dart.dcall(NativeUint32List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeUint32List._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeUint32List._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeUint32List._create2(buffer, offsetInBytes) : NativeUint32List._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeUint32List._create2, buffer, offsetInBytes) : dart.dcall(NativeUint32List._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Uint32List;
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| return dart.as(this[index], core.int);
|
| }
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeUint32List._create1(source);
|
| + return dart.dcall(NativeUint32List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Uint32Array(arg), NativeUint32List);
|
| @@ -1168,14 +1168,14 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeUint32List[dart.metadata] = () => [dart.const(new _js_helper.Native("Uint32Array"))];
|
| class NativeUint8ClampedList extends NativeTypedArrayOfInt {
|
| static new(length) {
|
| - return NativeUint8ClampedList._create1(_checkLength(length));
|
| + return dart.dcall(NativeUint8ClampedList._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeUint8ClampedList._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeUint8ClampedList._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeUint8ClampedList._create2(buffer, offsetInBytes) : NativeUint8ClampedList._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeUint8ClampedList._create2, buffer, offsetInBytes) : dart.dcall(NativeUint8ClampedList._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Uint8ClampedList;
|
| @@ -1184,15 +1184,15 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return dart.as(this.length, core.int);
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| return dart.as(this[index], core.int);
|
| }
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeUint8ClampedList._create1(source);
|
| + return dart.dcall(NativeUint8ClampedList._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Uint8ClampedArray(arg), NativeUint8ClampedList);
|
| @@ -1226,14 +1226,14 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeUint8ClampedList[dart.metadata] = () => [dart.const(new _js_helper.Native("Uint8ClampedArray,CanvasPixelArray"))];
|
| class NativeUint8List extends NativeTypedArrayOfInt {
|
| static new(length) {
|
| - return NativeUint8List._create1(_checkLength(length));
|
| + return dart.dcall(NativeUint8List._create1, dart.dcall(_checkLength, length));
|
| }
|
| static fromList(elements) {
|
| - return NativeUint8List._create1(_ensureNativeList(elements));
|
| + return dart.dcall(NativeUint8List._create1, dart.dcall(_ensureNativeList, elements));
|
| }
|
| static view(buffer, offsetInBytes, length) {
|
| - _checkViewArguments(buffer, offsetInBytes, length);
|
| - return length == null ? NativeUint8List._create2(buffer, offsetInBytes) : NativeUint8List._create3(buffer, offsetInBytes, length);
|
| + dart.dcall(_checkViewArguments, buffer, offsetInBytes, length);
|
| + return length == null ? dart.dcall(NativeUint8List._create2, buffer, offsetInBytes) : dart.dcall(NativeUint8List._create3, buffer, offsetInBytes, length);
|
| }
|
| get runtimeType() {
|
| return typed_data.Uint8List;
|
| @@ -1242,15 +1242,15 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return dart.as(this.length, core.int);
|
| }
|
| get(index) {
|
| - this[_checkIndex](index, this.length);
|
| + dart.dcall(this[_checkIndex], index, this.length);
|
| return dart.as(this[index], core.int);
|
| }
|
| sublist(start, end) {
|
| if (end === void 0)
|
| end = null;
|
| - end = this[_checkSublistArguments](start, end, this.length);
|
| + end = dart.dcall(this[_checkSublistArguments], start, end, this.length);
|
| let source = this.subarray(start, end);
|
| - return NativeUint8List._create1(source);
|
| + return dart.dcall(NativeUint8List._create1, source);
|
| }
|
| static _create1(arg) {
|
| return dart.as(new Uint8Array(arg), NativeUint8List);
|
| @@ -1288,10 +1288,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return NativeFloat32x4._list.get(0);
|
| }
|
| NativeFloat32x4(x, y, z, w) {
|
| - this.x = dart.as(NativeFloat32x4._truncate(x), core.double);
|
| - this.y = dart.as(NativeFloat32x4._truncate(y), core.double);
|
| - this.z = dart.as(NativeFloat32x4._truncate(z), core.double);
|
| - this.w = dart.as(NativeFloat32x4._truncate(w), core.double);
|
| + this.x = dart.as(dart.dcall(NativeFloat32x4._truncate, x), core.double);
|
| + this.y = dart.as(dart.dcall(NativeFloat32x4._truncate, y), core.double);
|
| + this.z = dart.as(dart.dcall(NativeFloat32x4._truncate, z), core.double);
|
| + this.w = dart.as(dart.dcall(NativeFloat32x4._truncate, w), core.double);
|
| if (!dart.is(x, core.num))
|
| dart.throw(new core.ArgumentError(x));
|
| if (!dart.is(y, core.num))
|
| @@ -1315,13 +1315,13 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat32x4._truncated(NativeFloat32x4._list.get(0), NativeFloat32x4._list.get(1), NativeFloat32x4._list.get(2), NativeFloat32x4._list.get(3));
|
| }
|
| fromFloat64x2(v) {
|
| - this._truncated(dart.as(NativeFloat32x4._truncate(v.x), core.double), dart.as(NativeFloat32x4._truncate(v.y), core.double), 0.0, 0.0);
|
| + this._truncated(dart.as(dart.dcall(NativeFloat32x4._truncate, v.x), core.double), dart.as(dart.dcall(NativeFloat32x4._truncate, v.y), core.double), 0.0, 0.0);
|
| }
|
| _doubles(x, y, z, w) {
|
| - this.x = dart.as(NativeFloat32x4._truncate(x), core.double);
|
| - this.y = dart.as(NativeFloat32x4._truncate(y), core.double);
|
| - this.z = dart.as(NativeFloat32x4._truncate(z), core.double);
|
| - this.w = dart.as(NativeFloat32x4._truncate(w), core.double);
|
| + this.x = dart.as(dart.dcall(NativeFloat32x4._truncate, x), core.double);
|
| + this.y = dart.as(dart.dcall(NativeFloat32x4._truncate, y), core.double);
|
| + this.z = dart.as(dart.dcall(NativeFloat32x4._truncate, z), core.double);
|
| + this.w = dart.as(dart.dcall(NativeFloat32x4._truncate, w), core.double);
|
| }
|
| _truncated(x, y, z, w) {
|
| this.x = x;
|
| @@ -1413,10 +1413,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat32x4._doubles(_x, _y, _z, _w);
|
| }
|
| abs() {
|
| - let _x = this.x[dartx.abs]();
|
| - let _y = this.y[dartx.abs]();
|
| - let _z = this.z[dartx.abs]();
|
| - let _w = this.w[dartx.abs]();
|
| + let _x = dart.dcall(this.x[dartx.abs]);
|
| + let _y = dart.dcall(this.y[dartx.abs]);
|
| + let _z = dart.dcall(this.z[dartx.abs]);
|
| + let _w = dart.dcall(this.w[dartx.abs]);
|
| return new NativeFloat32x4._truncated(_x, _y, _z, _w);
|
| }
|
| clamp(lowerLimit, upperLimit) {
|
| @@ -1449,10 +1449,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| NativeFloat32x4._list.set(1, this.y);
|
| NativeFloat32x4._list.set(2, this.z);
|
| NativeFloat32x4._list.set(3, this.w);
|
| - mx = (dart.notNull(view.get(0)) & 2147483648) >> 31;
|
| - my = (dart.notNull(view.get(1)) & 2147483648) >> 30;
|
| - mz = (dart.notNull(view.get(2)) & 2147483648) >> 29;
|
| - mw = (dart.notNull(view.get(3)) & 2147483648) >> 28;
|
| + mx = dart.dsend(dart.dsend(dart.dindex(view, 0), '&', 2147483648), '>>', 31);
|
| + my = dart.dsend(dart.dsend(dart.dindex(view, 1), '&', 2147483648), '>>', 30);
|
| + mz = dart.dsend(dart.dsend(dart.dindex(view, 2), '&', 2147483648), '>>', 29);
|
| + mw = dart.dsend(dart.dsend(dart.dindex(view, 3), '&', 2147483648), '>>', 28);
|
| return dart.as(dart.dsend(dart.dsend(dart.dsend(mx, '|', my), '|', mz), '|', mw), core.int);
|
| }
|
| shuffle(m) {
|
| @@ -1488,16 +1488,16 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat32x4._truncated(_x, _y, _z, _w);
|
| }
|
| withX(newX) {
|
| - return new NativeFloat32x4._truncated(dart.as(NativeFloat32x4._truncate(newX), core.double), this.y, this.z, this.w);
|
| + return new NativeFloat32x4._truncated(dart.as(dart.dcall(NativeFloat32x4._truncate, newX), core.double), this.y, this.z, this.w);
|
| }
|
| withY(newY) {
|
| - return new NativeFloat32x4._truncated(this.x, dart.as(NativeFloat32x4._truncate(newY), core.double), this.z, this.w);
|
| + return new NativeFloat32x4._truncated(this.x, dart.as(dart.dcall(NativeFloat32x4._truncate, newY), core.double), this.z, this.w);
|
| }
|
| withZ(newZ) {
|
| - return new NativeFloat32x4._truncated(this.x, this.y, dart.as(NativeFloat32x4._truncate(newZ), core.double), this.w);
|
| + return new NativeFloat32x4._truncated(this.x, this.y, dart.as(dart.dcall(NativeFloat32x4._truncate, newZ), core.double), this.w);
|
| }
|
| withW(newW) {
|
| - return new NativeFloat32x4._truncated(this.x, this.y, this.z, dart.as(NativeFloat32x4._truncate(newW), core.double));
|
| + return new NativeFloat32x4._truncated(this.x, this.y, this.z, dart.as(dart.dcall(NativeFloat32x4._truncate, newW), core.double));
|
| }
|
| min(other) {
|
| let _x = dart.notNull(this.x) < dart.notNull(other.x) ? this.x : other.x;
|
| @@ -1514,10 +1514,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat32x4._truncated(_x, _y, _z, _w);
|
| }
|
| sqrt() {
|
| - let _x = math.sqrt(this.x);
|
| - let _y = math.sqrt(this.y);
|
| - let _z = math.sqrt(this.z);
|
| - let _w = math.sqrt(this.w);
|
| + let _x = dart.dcall(math.sqrt, this.x);
|
| + let _y = dart.dcall(math.sqrt, this.y);
|
| + let _z = dart.dcall(math.sqrt, this.z);
|
| + let _w = dart.dcall(math.sqrt, this.w);
|
| return new NativeFloat32x4._doubles(_x, _y, _z, _w);
|
| }
|
| reciprocal() {
|
| @@ -1528,10 +1528,10 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat32x4._doubles(_x, _y, _z, _w);
|
| }
|
| reciprocalSqrt() {
|
| - let _x = math.sqrt(1.0 / dart.notNull(this.x));
|
| - let _y = math.sqrt(1.0 / dart.notNull(this.y));
|
| - let _z = math.sqrt(1.0 / dart.notNull(this.z));
|
| - let _w = math.sqrt(1.0 / dart.notNull(this.w));
|
| + let _x = dart.dcall(math.sqrt, 1.0 / dart.notNull(this.x));
|
| + let _y = dart.dcall(math.sqrt, 1.0 / dart.notNull(this.y));
|
| + let _z = dart.dcall(math.sqrt, 1.0 / dart.notNull(this.z));
|
| + let _w = dart.dcall(math.sqrt, 1.0 / dart.notNull(this.w));
|
| return new NativeFloat32x4._doubles(_x, _y, _z, _w);
|
| }
|
| }
|
| @@ -1586,19 +1586,19 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return NativeFloat32List.new(4);
|
| },
|
| get _uint32view() {
|
| - return NativeFloat32x4._list.buffer.asUint32List();
|
| + return dart.dcall(NativeFloat32x4._list.buffer.asUint32List);
|
| }
|
| });
|
| class NativeInt32x4 extends core.Object {
|
| static _truncate(x) {
|
| - NativeInt32x4._list.set(0, dart.as(x, core.int));
|
| - return NativeInt32x4._list.get(0);
|
| + dart.dsetindex(NativeInt32x4._list, 0, x);
|
| + return dart.dindex(NativeInt32x4._list, 0);
|
| }
|
| NativeInt32x4(x, y, z, w) {
|
| - this.x = dart.as(NativeInt32x4._truncate(x), core.int);
|
| - this.y = dart.as(NativeInt32x4._truncate(y), core.int);
|
| - this.z = dart.as(NativeInt32x4._truncate(z), core.int);
|
| - this.w = dart.as(NativeInt32x4._truncate(w), core.int);
|
| + this.x = dart.as(dart.dcall(NativeInt32x4._truncate, x), core.int);
|
| + this.y = dart.as(dart.dcall(NativeInt32x4._truncate, y), core.int);
|
| + this.z = dart.as(dart.dcall(NativeInt32x4._truncate, z), core.int);
|
| + this.w = dart.as(dart.dcall(NativeInt32x4._truncate, w), core.int);
|
| if (x != this.x && !(typeof x == 'number'))
|
| dart.throw(new core.ArgumentError(x));
|
| if (y != this.y && !(typeof y == 'number'))
|
| @@ -1620,7 +1620,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| floatList.set(1, f.y);
|
| floatList.set(2, f.z);
|
| floatList.set(3, f.w);
|
| - let view = dart.as(floatList.buffer.asInt32List(), NativeInt32List);
|
| + let view = dart.as(dart.dcall(floatList.buffer.asInt32List), NativeInt32List);
|
| return new NativeInt32x4._truncated(view.get(0), view.get(1), view.get(2), view.get(3));
|
| }
|
| _truncated(x, y, z, w) {
|
| @@ -1633,22 +1633,22 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return `[${this.x}, ${this.y}, ${this.z}, ${this.w}]`;
|
| }
|
| ['|'](other) {
|
| - return new NativeInt32x4._truncated(this.x | other.x, this.y | other.y, this.z | other.z, this.w | other.w);
|
| + return new NativeInt32x4._truncated(dart.as(this.x | other.x, core.int), dart.as(this.y | other.y, core.int), dart.as(this.z | other.z, core.int), dart.as(this.w | other.w, core.int));
|
| }
|
| ['&'](other) {
|
| - return new NativeInt32x4._truncated(this.x & other.x, this.y & other.y, this.z & other.z, this.w & other.w);
|
| + return new NativeInt32x4._truncated(dart.as(this.x & other.x, core.int), dart.as(this.y & other.y, core.int), dart.as(this.z & other.z, core.int), dart.as(this.w & other.w, core.int));
|
| }
|
| ['^'](other) {
|
| - return new NativeInt32x4._truncated(this.x ^ other.x, this.y ^ other.y, this.z ^ other.z, this.w ^ other.w);
|
| + return new NativeInt32x4._truncated(dart.as(this.x ^ other.x, core.int), dart.as(this.y ^ other.y, core.int), dart.as(this.z ^ other.z, core.int), dart.as(this.w ^ other.w, core.int));
|
| }
|
| ['+'](other) {
|
| - return new NativeInt32x4._truncated(this.x + other.x | 0, this.y + other.y | 0, this.z + other.z | 0, this.w + other.w | 0);
|
| + return new NativeInt32x4._truncated(dart.as(this.x + other.x | 0, core.int), dart.as(this.y + other.y | 0, core.int), dart.as(this.z + other.z | 0, core.int), dart.as(this.w + other.w | 0, core.int));
|
| }
|
| ['-'](other) {
|
| - return new NativeInt32x4._truncated(this.x - other.x | 0, this.y - other.y | 0, this.z - other.z | 0, this.w - other.w | 0);
|
| + return new NativeInt32x4._truncated(dart.as(this.x - other.x | 0, core.int), dart.as(this.y - other.y | 0, core.int), dart.as(this.z - other.z | 0, core.int), dart.as(this.w - other.w | 0, core.int));
|
| }
|
| ['unary-']() {
|
| - return new NativeInt32x4._truncated(-this.x | 0, -this.y | 0, -this.z | 0, -this.w | 0);
|
| + return new NativeInt32x4._truncated(dart.as(-this.x | 0, core.int), dart.as(-this.y | 0, core.int), dart.as(-this.z | 0, core.int), dart.as(-this.w | 0, core.int));
|
| }
|
| get signMask() {
|
| let mx = (dart.notNull(this.x) & 2147483648) >> 31;
|
| @@ -1661,48 +1661,48 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| if (dart.notNull(mask) < 0 || dart.notNull(mask) > 255) {
|
| dart.throw(new core.RangeError(`mask ${mask} must be in the range [0..256)`));
|
| }
|
| - NativeInt32x4._list.set(0, this.x);
|
| - NativeInt32x4._list.set(1, this.y);
|
| - NativeInt32x4._list.set(2, this.z);
|
| - NativeInt32x4._list.set(3, this.w);
|
| - let _x = NativeInt32x4._list.get(dart.notNull(mask) & 3);
|
| - let _y = NativeInt32x4._list.get(dart.notNull(mask) >> 2 & 3);
|
| - let _z = NativeInt32x4._list.get(dart.notNull(mask) >> 4 & 3);
|
| - let _w = NativeInt32x4._list.get(dart.notNull(mask) >> 6 & 3);
|
| + dart.dsetindex(NativeInt32x4._list, 0, this.x);
|
| + dart.dsetindex(NativeInt32x4._list, 1, this.y);
|
| + dart.dsetindex(NativeInt32x4._list, 2, this.z);
|
| + dart.dsetindex(NativeInt32x4._list, 3, this.w);
|
| + let _x = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) & 3), core.int);
|
| + let _y = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) >> 2 & 3), core.int);
|
| + let _z = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) >> 4 & 3), core.int);
|
| + let _w = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) >> 6 & 3), core.int);
|
| return new NativeInt32x4._truncated(_x, _y, _z, _w);
|
| }
|
| shuffleMix(other, mask) {
|
| if (dart.notNull(mask) < 0 || dart.notNull(mask) > 255) {
|
| dart.throw(new core.RangeError(`mask ${mask} must be in the range [0..256)`));
|
| }
|
| - NativeInt32x4._list.set(0, this.x);
|
| - NativeInt32x4._list.set(1, this.y);
|
| - NativeInt32x4._list.set(2, this.z);
|
| - NativeInt32x4._list.set(3, this.w);
|
| - let _x = NativeInt32x4._list.get(dart.notNull(mask) & 3);
|
| - let _y = NativeInt32x4._list.get(dart.notNull(mask) >> 2 & 3);
|
| - NativeInt32x4._list.set(0, other.x);
|
| - NativeInt32x4._list.set(1, other.y);
|
| - NativeInt32x4._list.set(2, other.z);
|
| - NativeInt32x4._list.set(3, other.w);
|
| - let _z = NativeInt32x4._list.get(dart.notNull(mask) >> 4 & 3);
|
| - let _w = NativeInt32x4._list.get(dart.notNull(mask) >> 6 & 3);
|
| + dart.dsetindex(NativeInt32x4._list, 0, this.x);
|
| + dart.dsetindex(NativeInt32x4._list, 1, this.y);
|
| + dart.dsetindex(NativeInt32x4._list, 2, this.z);
|
| + dart.dsetindex(NativeInt32x4._list, 3, this.w);
|
| + let _x = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) & 3), core.int);
|
| + let _y = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) >> 2 & 3), core.int);
|
| + dart.dsetindex(NativeInt32x4._list, 0, other.x);
|
| + dart.dsetindex(NativeInt32x4._list, 1, other.y);
|
| + dart.dsetindex(NativeInt32x4._list, 2, other.z);
|
| + dart.dsetindex(NativeInt32x4._list, 3, other.w);
|
| + let _z = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) >> 4 & 3), core.int);
|
| + let _w = dart.as(dart.dindex(NativeInt32x4._list, dart.notNull(mask) >> 6 & 3), core.int);
|
| return new NativeInt32x4._truncated(_x, _y, _z, _w);
|
| }
|
| withX(x) {
|
| - let _x = dart.as(NativeInt32x4._truncate(x), core.int);
|
| + let _x = dart.as(dart.dcall(NativeInt32x4._truncate, x), core.int);
|
| return new NativeInt32x4._truncated(_x, this.y, this.z, this.w);
|
| }
|
| withY(y) {
|
| - let _y = dart.as(NativeInt32x4._truncate(y), core.int);
|
| + let _y = dart.as(dart.dcall(NativeInt32x4._truncate, y), core.int);
|
| return new NativeInt32x4._truncated(this.x, _y, this.z, this.w);
|
| }
|
| withZ(z) {
|
| - let _z = dart.as(NativeInt32x4._truncate(z), core.int);
|
| + let _z = dart.as(dart.dcall(NativeInt32x4._truncate, z), core.int);
|
| return new NativeInt32x4._truncated(this.x, this.y, _z, this.w);
|
| }
|
| withW(w) {
|
| - let _w = dart.as(NativeInt32x4._truncate(w), core.int);
|
| + let _w = dart.as(dart.dcall(NativeInt32x4._truncate, w), core.int);
|
| return new NativeInt32x4._truncated(this.x, this.y, this.z, _w);
|
| }
|
| get flagX() {
|
| @@ -1736,31 +1736,31 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| select(trueValue, falseValue) {
|
| let floatList = NativeFloat32x4._list;
|
| let intView = NativeFloat32x4._uint32view;
|
| - floatList.set(0, trueValue.x);
|
| - floatList.set(1, trueValue.y);
|
| - floatList.set(2, trueValue.z);
|
| - floatList.set(3, trueValue.w);
|
| - let stx = intView.get(0);
|
| - let sty = intView.get(1);
|
| - let stz = intView.get(2);
|
| - let stw = intView.get(3);
|
| - floatList.set(0, falseValue.x);
|
| - floatList.set(1, falseValue.y);
|
| - floatList.set(2, falseValue.z);
|
| - floatList.set(3, falseValue.w);
|
| - let sfx = intView.get(0);
|
| - let sfy = intView.get(1);
|
| - let sfz = intView.get(2);
|
| - let sfw = intView.get(3);
|
| + dart.dsetindex(floatList, 0, trueValue.x);
|
| + dart.dsetindex(floatList, 1, trueValue.y);
|
| + dart.dsetindex(floatList, 2, trueValue.z);
|
| + dart.dsetindex(floatList, 3, trueValue.w);
|
| + let stx = dart.as(dart.dindex(intView, 0), core.int);
|
| + let sty = dart.as(dart.dindex(intView, 1), core.int);
|
| + let stz = dart.as(dart.dindex(intView, 2), core.int);
|
| + let stw = dart.as(dart.dindex(intView, 3), core.int);
|
| + dart.dsetindex(floatList, 0, falseValue.x);
|
| + dart.dsetindex(floatList, 1, falseValue.y);
|
| + dart.dsetindex(floatList, 2, falseValue.z);
|
| + dart.dsetindex(floatList, 3, falseValue.w);
|
| + let sfx = dart.as(dart.dindex(intView, 0), core.int);
|
| + let sfy = dart.as(dart.dindex(intView, 1), core.int);
|
| + let sfz = dart.as(dart.dindex(intView, 2), core.int);
|
| + let sfw = dart.as(dart.dindex(intView, 3), core.int);
|
| let _x = dart.notNull(this.x) & dart.notNull(stx) | ~dart.notNull(this.x) & dart.notNull(sfx);
|
| let _y = dart.notNull(this.y) & dart.notNull(sty) | ~dart.notNull(this.y) & dart.notNull(sfy);
|
| let _z = dart.notNull(this.z) & dart.notNull(stz) | ~dart.notNull(this.z) & dart.notNull(sfz);
|
| let _w = dart.notNull(this.w) & dart.notNull(stw) | ~dart.notNull(this.w) & dart.notNull(sfw);
|
| - intView.set(0, _x);
|
| - intView.set(1, _y);
|
| - intView.set(2, _z);
|
| - intView.set(3, _w);
|
| - return new NativeFloat32x4._truncated(floatList.get(0), floatList.get(1), floatList.get(2), floatList.get(3));
|
| + dart.dsetindex(intView, 0, _x);
|
| + dart.dsetindex(intView, 1, _y);
|
| + dart.dsetindex(intView, 2, _z);
|
| + dart.dsetindex(intView, 3, _w);
|
| + return new NativeFloat32x4._truncated(dart.as(dart.dindex(floatList, 0), core.double), dart.as(dart.dindex(floatList, 1), core.double), dart.as(dart.dindex(floatList, 2), core.double), dart.as(dart.dindex(floatList, 3), core.double));
|
| }
|
| }
|
| NativeInt32x4[dart.implements] = () => [typed_data.Int32x4];
|
| @@ -1844,7 +1844,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat64x2._doubles(dart.notNull(this.x) * dart.notNull(s), dart.notNull(this.y) * dart.notNull(s));
|
| }
|
| abs() {
|
| - return new NativeFloat64x2._doubles(this.x[dartx.abs](), this.y[dartx.abs]());
|
| + return new NativeFloat64x2._doubles(dart.dcall(this.x[dartx.abs]), dart.dcall(this.y[dartx.abs]));
|
| }
|
| clamp(lowerLimit, upperLimit) {
|
| let _lx = lowerLimit.x;
|
| @@ -1863,9 +1863,9 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| let view = NativeFloat64x2._uint32View;
|
| NativeFloat64x2._list.set(0, this.x);
|
| NativeFloat64x2._list.set(1, this.y);
|
| - let mx = (dart.notNull(view.get(1)) & 2147483648) >> 31;
|
| - let my = (dart.notNull(view.get(3)) & 2147483648) >> 31;
|
| - return dart.notNull(mx) | dart.notNull(my) << 1;
|
| + let mx = dart.dsend(dart.dsend(dart.dindex(view, 1), '&', 2147483648), '>>', 31);
|
| + let my = dart.dsend(dart.dsend(dart.dindex(view, 3), '&', 2147483648), '>>', 31);
|
| + return dart.as(dart.dsend(mx, '|', dart.dsend(my, '<<', 1)), core.int);
|
| }
|
| withX(x) {
|
| if (!dart.is(x, core.num))
|
| @@ -1884,7 +1884,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| return new NativeFloat64x2._doubles(dart.notNull(this.x) > dart.notNull(other.x) ? this.x : other.x, dart.notNull(this.y) > dart.notNull(other.y) ? this.y : other.y);
|
| }
|
| sqrt() {
|
| - return new NativeFloat64x2._doubles(math.sqrt(this.x), math.sqrt(this.y));
|
| + return new NativeFloat64x2._doubles(dart.dcall(math.sqrt, this.x), dart.dcall(math.sqrt, this.y));
|
| }
|
| }
|
| NativeFloat64x2[dart.implements] = () => [typed_data.Float64x2];
|
| @@ -1922,7 +1922,7 @@ dart_library.library('dart/_native_typed_data', null, /* Imports */[
|
| },
|
| set _list(_) {},
|
| get _uint32View() {
|
| - return dart.as(NativeFloat64x2._list.buffer.asUint32List(), NativeUint32List);
|
| + return dart.as(dart.dcall(NativeFloat64x2._list.buffer.asUint32List), NativeUint32List);
|
| },
|
| set _uint32View(_) {}
|
| });
|
|
|