Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: lib/runtime/dart/typed_data.js

Issue 1317933005: Some preliminary support for quasi-generics (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('dart/typed_data', null, /* Imports */[
2 "dart_runtime/dart",
3 'dart/core'
4 ], /* Lazy imports */[
5 'dart/_native_typed_data'
6 ], function(exports, dart, core, _native_typed_data) {
7 'use strict';
8 let dartx = dart.dartx;
9 class ByteBuffer extends core.Object {}
10 class TypedData extends core.Object {}
11 let _littleEndian = Symbol('_littleEndian');
12 class Endianness extends core.Object {
13 _(littleEndian) {
14 this[_littleEndian] = littleEndian;
15 }
16 }
17 dart.defineNamedConstructor(Endianness, '_');
18 dart.setSignature(Endianness, {
19 constructors: () => ({_: [Endianness, [core.bool]]})
20 });
21 Endianness.BIG_ENDIAN = dart.const(new Endianness._(false));
22 Endianness.LITTLE_ENDIAN = dart.const(new Endianness._(true));
23 dart.defineLazyProperties(Endianness, {
24 get HOST_ENDIAN() {
25 return ByteData.view(Uint16List.fromList(dart.list([1], core.int)).buffer) .getInt8(0) == 1 ? Endianness.LITTLE_ENDIAN : Endianness.BIG_ENDIAN;
26 }
27 });
28 class ByteData extends core.Object {
29 static new(length) {
30 return _native_typed_data.NativeByteData.new(length);
31 }
32 static view(buffer, offsetInBytes, length) {
33 if (offsetInBytes === void 0)
34 offsetInBytes = 0;
35 if (length === void 0)
36 length = null;
37 return buffer.asByteData(offsetInBytes, length);
38 }
39 }
40 ByteData[dart.implements] = () => [TypedData];
41 dart.setSignature(ByteData, {
42 constructors: () => ({
43 new: [ByteData, [core.int]],
44 view: [ByteData, [ByteBuffer], [core.int, core.int]]
45 })
46 });
47 class Int8List extends core.Object {
48 static new(length) {
49 return _native_typed_data.NativeInt8List.new(length);
50 }
51 static fromList(elements) {
52 return _native_typed_data.NativeInt8List.fromList(elements);
53 }
54 static view(buffer, offsetInBytes, length) {
55 if (offsetInBytes === void 0)
56 offsetInBytes = 0;
57 if (length === void 0)
58 length = null;
59 return buffer.asInt8List(offsetInBytes, length);
60 }
61 }
62 Int8List[dart.implements] = () => [core.List$(core.int), TypedData];
63 dart.setSignature(Int8List, {
64 constructors: () => ({
65 new: [Int8List, [core.int]],
66 fromList: [Int8List, [core.List$(core.int)]],
67 view: [Int8List, [ByteBuffer], [core.int, core.int]]
68 })
69 });
70 Int8List.BYTES_PER_ELEMENT = 1;
71 class Uint8List extends core.Object {
72 static new(length) {
73 return _native_typed_data.NativeUint8List.new(length);
74 }
75 static fromList(elements) {
76 return _native_typed_data.NativeUint8List.fromList(elements);
77 }
78 static view(buffer, offsetInBytes, length) {
79 if (offsetInBytes === void 0)
80 offsetInBytes = 0;
81 if (length === void 0)
82 length = null;
83 return buffer.asUint8List(offsetInBytes, length);
84 }
85 }
86 Uint8List[dart.implements] = () => [core.List$(core.int), TypedData];
87 dart.setSignature(Uint8List, {
88 constructors: () => ({
89 new: [Uint8List, [core.int]],
90 fromList: [Uint8List, [core.List$(core.int)]],
91 view: [Uint8List, [ByteBuffer], [core.int, core.int]]
92 })
93 });
94 Uint8List.BYTES_PER_ELEMENT = 1;
95 class Uint8ClampedList extends core.Object {
96 static new(length) {
97 return _native_typed_data.NativeUint8ClampedList.new(length);
98 }
99 static fromList(elements) {
100 return _native_typed_data.NativeUint8ClampedList.fromList(elements);
101 }
102 static view(buffer, offsetInBytes, length) {
103 if (offsetInBytes === void 0)
104 offsetInBytes = 0;
105 if (length === void 0)
106 length = null;
107 return buffer.asUint8ClampedList(offsetInBytes, length);
108 }
109 }
110 Uint8ClampedList[dart.implements] = () => [core.List$(core.int), TypedData];
111 dart.setSignature(Uint8ClampedList, {
112 constructors: () => ({
113 new: [Uint8ClampedList, [core.int]],
114 fromList: [Uint8ClampedList, [core.List$(core.int)]],
115 view: [Uint8ClampedList, [ByteBuffer], [core.int, core.int]]
116 })
117 });
118 Uint8ClampedList.BYTES_PER_ELEMENT = 1;
119 class Int16List extends core.Object {
120 static new(length) {
121 return _native_typed_data.NativeInt16List.new(length);
122 }
123 static fromList(elements) {
124 return _native_typed_data.NativeInt16List.fromList(elements);
125 }
126 static view(buffer, offsetInBytes, length) {
127 if (offsetInBytes === void 0)
128 offsetInBytes = 0;
129 if (length === void 0)
130 length = null;
131 return buffer.asInt16List(offsetInBytes, length);
132 }
133 }
134 Int16List[dart.implements] = () => [core.List$(core.int), TypedData];
135 dart.setSignature(Int16List, {
136 constructors: () => ({
137 new: [Int16List, [core.int]],
138 fromList: [Int16List, [core.List$(core.int)]],
139 view: [Int16List, [ByteBuffer], [core.int, core.int]]
140 })
141 });
142 Int16List.BYTES_PER_ELEMENT = 2;
143 class Uint16List extends core.Object {
144 static new(length) {
145 return _native_typed_data.NativeUint16List.new(length);
146 }
147 static fromList(elements) {
148 return _native_typed_data.NativeUint16List.fromList(elements);
149 }
150 static view(buffer, offsetInBytes, length) {
151 if (offsetInBytes === void 0)
152 offsetInBytes = 0;
153 if (length === void 0)
154 length = null;
155 return buffer.asUint16List(offsetInBytes, length);
156 }
157 }
158 Uint16List[dart.implements] = () => [core.List$(core.int), TypedData];
159 dart.setSignature(Uint16List, {
160 constructors: () => ({
161 new: [Uint16List, [core.int]],
162 fromList: [Uint16List, [core.List$(core.int)]],
163 view: [Uint16List, [ByteBuffer], [core.int, core.int]]
164 })
165 });
166 Uint16List.BYTES_PER_ELEMENT = 2;
167 class Int32List extends core.Object {
168 static new(length) {
169 return _native_typed_data.NativeInt32List.new(length);
170 }
171 static fromList(elements) {
172 return _native_typed_data.NativeInt32List.fromList(elements);
173 }
174 static view(buffer, offsetInBytes, length) {
175 if (offsetInBytes === void 0)
176 offsetInBytes = 0;
177 if (length === void 0)
178 length = null;
179 return buffer.asInt32List(offsetInBytes, length);
180 }
181 }
182 Int32List[dart.implements] = () => [core.List$(core.int), TypedData];
183 dart.setSignature(Int32List, {
184 constructors: () => ({
185 new: [Int32List, [core.int]],
186 fromList: [Int32List, [core.List$(core.int)]],
187 view: [Int32List, [ByteBuffer], [core.int, core.int]]
188 })
189 });
190 Int32List.BYTES_PER_ELEMENT = 4;
191 class Uint32List extends core.Object {
192 static new(length) {
193 return _native_typed_data.NativeUint32List.new(length);
194 }
195 static fromList(elements) {
196 return _native_typed_data.NativeUint32List.fromList(elements);
197 }
198 static view(buffer, offsetInBytes, length) {
199 if (offsetInBytes === void 0)
200 offsetInBytes = 0;
201 if (length === void 0)
202 length = null;
203 return buffer.asUint32List(offsetInBytes, length);
204 }
205 }
206 Uint32List[dart.implements] = () => [core.List$(core.int), TypedData];
207 dart.setSignature(Uint32List, {
208 constructors: () => ({
209 new: [Uint32List, [core.int]],
210 fromList: [Uint32List, [core.List$(core.int)]],
211 view: [Uint32List, [ByteBuffer], [core.int, core.int]]
212 })
213 });
214 Uint32List.BYTES_PER_ELEMENT = 4;
215 class Int64List extends core.Object {
216 static new(length) {
217 dart.throw(new core.UnsupportedError("Int64List not supported by dart2js." ));
218 }
219 static fromList(elements) {
220 dart.throw(new core.UnsupportedError("Int64List not supported by dart2js." ));
221 }
222 static view(buffer, offsetInBytes, length) {
223 if (offsetInBytes === void 0)
224 offsetInBytes = 0;
225 if (length === void 0)
226 length = null;
227 return buffer.asInt64List(offsetInBytes, length);
228 }
229 }
230 Int64List[dart.implements] = () => [core.List$(core.int), TypedData];
231 dart.setSignature(Int64List, {
232 constructors: () => ({
233 new: [Int64List, [core.int]],
234 fromList: [Int64List, [core.List$(core.int)]],
235 view: [Int64List, [ByteBuffer], [core.int, core.int]]
236 })
237 });
238 Int64List.BYTES_PER_ELEMENT = 8;
239 class Uint64List extends core.Object {
240 static new(length) {
241 dart.throw(new core.UnsupportedError("Uint64List not supported by dart2js. "));
242 }
243 static fromList(elements) {
244 dart.throw(new core.UnsupportedError("Uint64List not supported by dart2js. "));
245 }
246 static view(buffer, offsetInBytes, length) {
247 if (offsetInBytes === void 0)
248 offsetInBytes = 0;
249 if (length === void 0)
250 length = null;
251 return buffer.asUint64List(offsetInBytes, length);
252 }
253 }
254 Uint64List[dart.implements] = () => [core.List$(core.int), TypedData];
255 dart.setSignature(Uint64List, {
256 constructors: () => ({
257 new: [Uint64List, [core.int]],
258 fromList: [Uint64List, [core.List$(core.int)]],
259 view: [Uint64List, [ByteBuffer], [core.int, core.int]]
260 })
261 });
262 Uint64List.BYTES_PER_ELEMENT = 8;
263 class Float32List extends core.Object {
264 static new(length) {
265 return _native_typed_data.NativeFloat32List.new(length);
266 }
267 static fromList(elements) {
268 return _native_typed_data.NativeFloat32List.fromList(elements);
269 }
270 static view(buffer, offsetInBytes, length) {
271 if (offsetInBytes === void 0)
272 offsetInBytes = 0;
273 if (length === void 0)
274 length = null;
275 return buffer.asFloat32List(offsetInBytes, length);
276 }
277 }
278 Float32List[dart.implements] = () => [core.List$(core.double), TypedData];
279 dart.setSignature(Float32List, {
280 constructors: () => ({
281 new: [Float32List, [core.int]],
282 fromList: [Float32List, [core.List$(core.double)]],
283 view: [Float32List, [ByteBuffer], [core.int, core.int]]
284 })
285 });
286 Float32List.BYTES_PER_ELEMENT = 4;
287 class Float64List extends core.Object {
288 static new(length) {
289 return _native_typed_data.NativeFloat64List.new(length);
290 }
291 static fromList(elements) {
292 return _native_typed_data.NativeFloat64List.fromList(elements);
293 }
294 static view(buffer, offsetInBytes, length) {
295 if (offsetInBytes === void 0)
296 offsetInBytes = 0;
297 if (length === void 0)
298 length = null;
299 return buffer.asFloat64List(offsetInBytes, length);
300 }
301 }
302 Float64List[dart.implements] = () => [core.List$(core.double), TypedData];
303 dart.setSignature(Float64List, {
304 constructors: () => ({
305 new: [Float64List, [core.int]],
306 fromList: [Float64List, [core.List$(core.double)]],
307 view: [Float64List, [ByteBuffer], [core.int, core.int]]
308 })
309 });
310 Float64List.BYTES_PER_ELEMENT = 8;
311 class Float32x4List extends core.Object {
312 static new(length) {
313 return new _native_typed_data.NativeFloat32x4List(length);
314 }
315 static fromList(elements) {
316 return _native_typed_data.NativeFloat32x4List.fromList(elements);
317 }
318 static view(buffer, offsetInBytes, length) {
319 if (offsetInBytes === void 0)
320 offsetInBytes = 0;
321 if (length === void 0)
322 length = null;
323 return buffer.asFloat32x4List(offsetInBytes, length);
324 }
325 }
326 Float32x4List[dart.implements] = () => [core.List$(Float32x4), TypedData];
327 dart.setSignature(Float32x4List, {
328 constructors: () => ({
329 new: [Float32x4List, [core.int]],
330 fromList: [Float32x4List, [core.List$(Float32x4)]],
331 view: [Float32x4List, [ByteBuffer], [core.int, core.int]]
332 })
333 });
334 Float32x4List.BYTES_PER_ELEMENT = 16;
335 class Int32x4List extends core.Object {
336 static new(length) {
337 return new _native_typed_data.NativeInt32x4List(length);
338 }
339 static fromList(elements) {
340 return _native_typed_data.NativeInt32x4List.fromList(elements);
341 }
342 static view(buffer, offsetInBytes, length) {
343 if (offsetInBytes === void 0)
344 offsetInBytes = 0;
345 if (length === void 0)
346 length = null;
347 return buffer.asInt32x4List(offsetInBytes, length);
348 }
349 }
350 Int32x4List[dart.implements] = () => [core.List$(Int32x4), TypedData];
351 dart.setSignature(Int32x4List, {
352 constructors: () => ({
353 new: [Int32x4List, [core.int]],
354 fromList: [Int32x4List, [core.List$(Int32x4)]],
355 view: [Int32x4List, [ByteBuffer], [core.int, core.int]]
356 })
357 });
358 Int32x4List.BYTES_PER_ELEMENT = 16;
359 class Float64x2List extends core.Object {
360 static new(length) {
361 return new _native_typed_data.NativeFloat64x2List(length);
362 }
363 static fromList(elements) {
364 return _native_typed_data.NativeFloat64x2List.fromList(elements);
365 }
366 static view(buffer, offsetInBytes, length) {
367 if (offsetInBytes === void 0)
368 offsetInBytes = 0;
369 if (length === void 0)
370 length = null;
371 return buffer.asFloat64x2List(offsetInBytes, length);
372 }
373 }
374 Float64x2List[dart.implements] = () => [core.List$(Float64x2), TypedData];
375 dart.setSignature(Float64x2List, {
376 constructors: () => ({
377 new: [Float64x2List, [core.int]],
378 fromList: [Float64x2List, [core.List$(Float64x2)]],
379 view: [Float64x2List, [ByteBuffer], [core.int, core.int]]
380 })
381 });
382 Float64x2List.BYTES_PER_ELEMENT = 16;
383 class Float32x4 extends core.Object {
384 static new(x, y, z, w) {
385 return new _native_typed_data.NativeFloat32x4(x, y, z, w);
386 }
387 static splat(v) {
388 return new _native_typed_data.NativeFloat32x4.splat(v);
389 }
390 static zero() {
391 return new _native_typed_data.NativeFloat32x4.zero();
392 }
393 static fromInt32x4Bits(x) {
394 return _native_typed_data.NativeFloat32x4.fromInt32x4Bits(x);
395 }
396 static fromFloat64x2(v) {
397 return new _native_typed_data.NativeFloat32x4.fromFloat64x2(v);
398 }
399 }
400 dart.setSignature(Float32x4, {
401 constructors: () => ({
402 new: [Float32x4, [core.double, core.double, core.double, core.double]],
403 splat: [Float32x4, [core.double]],
404 zero: [Float32x4, []],
405 fromInt32x4Bits: [Float32x4, [Int32x4]],
406 fromFloat64x2: [Float32x4, [Float64x2]]
407 })
408 });
409 Float32x4.XXXX = 0;
410 Float32x4.XXXY = 64;
411 Float32x4.XXXZ = 128;
412 Float32x4.XXXW = 192;
413 Float32x4.XXYX = 16;
414 Float32x4.XXYY = 80;
415 Float32x4.XXYZ = 144;
416 Float32x4.XXYW = 208;
417 Float32x4.XXZX = 32;
418 Float32x4.XXZY = 96;
419 Float32x4.XXZZ = 160;
420 Float32x4.XXZW = 224;
421 Float32x4.XXWX = 48;
422 Float32x4.XXWY = 112;
423 Float32x4.XXWZ = 176;
424 Float32x4.XXWW = 240;
425 Float32x4.XYXX = 4;
426 Float32x4.XYXY = 68;
427 Float32x4.XYXZ = 132;
428 Float32x4.XYXW = 196;
429 Float32x4.XYYX = 20;
430 Float32x4.XYYY = 84;
431 Float32x4.XYYZ = 148;
432 Float32x4.XYYW = 212;
433 Float32x4.XYZX = 36;
434 Float32x4.XYZY = 100;
435 Float32x4.XYZZ = 164;
436 Float32x4.XYZW = 228;
437 Float32x4.XYWX = 52;
438 Float32x4.XYWY = 116;
439 Float32x4.XYWZ = 180;
440 Float32x4.XYWW = 244;
441 Float32x4.XZXX = 8;
442 Float32x4.XZXY = 72;
443 Float32x4.XZXZ = 136;
444 Float32x4.XZXW = 200;
445 Float32x4.XZYX = 24;
446 Float32x4.XZYY = 88;
447 Float32x4.XZYZ = 152;
448 Float32x4.XZYW = 216;
449 Float32x4.XZZX = 40;
450 Float32x4.XZZY = 104;
451 Float32x4.XZZZ = 168;
452 Float32x4.XZZW = 232;
453 Float32x4.XZWX = 56;
454 Float32x4.XZWY = 120;
455 Float32x4.XZWZ = 184;
456 Float32x4.XZWW = 248;
457 Float32x4.XWXX = 12;
458 Float32x4.XWXY = 76;
459 Float32x4.XWXZ = 140;
460 Float32x4.XWXW = 204;
461 Float32x4.XWYX = 28;
462 Float32x4.XWYY = 92;
463 Float32x4.XWYZ = 156;
464 Float32x4.XWYW = 220;
465 Float32x4.XWZX = 44;
466 Float32x4.XWZY = 108;
467 Float32x4.XWZZ = 172;
468 Float32x4.XWZW = 236;
469 Float32x4.XWWX = 60;
470 Float32x4.XWWY = 124;
471 Float32x4.XWWZ = 188;
472 Float32x4.XWWW = 252;
473 Float32x4.YXXX = 1;
474 Float32x4.YXXY = 65;
475 Float32x4.YXXZ = 129;
476 Float32x4.YXXW = 193;
477 Float32x4.YXYX = 17;
478 Float32x4.YXYY = 81;
479 Float32x4.YXYZ = 145;
480 Float32x4.YXYW = 209;
481 Float32x4.YXZX = 33;
482 Float32x4.YXZY = 97;
483 Float32x4.YXZZ = 161;
484 Float32x4.YXZW = 225;
485 Float32x4.YXWX = 49;
486 Float32x4.YXWY = 113;
487 Float32x4.YXWZ = 177;
488 Float32x4.YXWW = 241;
489 Float32x4.YYXX = 5;
490 Float32x4.YYXY = 69;
491 Float32x4.YYXZ = 133;
492 Float32x4.YYXW = 197;
493 Float32x4.YYYX = 21;
494 Float32x4.YYYY = 85;
495 Float32x4.YYYZ = 149;
496 Float32x4.YYYW = 213;
497 Float32x4.YYZX = 37;
498 Float32x4.YYZY = 101;
499 Float32x4.YYZZ = 165;
500 Float32x4.YYZW = 229;
501 Float32x4.YYWX = 53;
502 Float32x4.YYWY = 117;
503 Float32x4.YYWZ = 181;
504 Float32x4.YYWW = 245;
505 Float32x4.YZXX = 9;
506 Float32x4.YZXY = 73;
507 Float32x4.YZXZ = 137;
508 Float32x4.YZXW = 201;
509 Float32x4.YZYX = 25;
510 Float32x4.YZYY = 89;
511 Float32x4.YZYZ = 153;
512 Float32x4.YZYW = 217;
513 Float32x4.YZZX = 41;
514 Float32x4.YZZY = 105;
515 Float32x4.YZZZ = 169;
516 Float32x4.YZZW = 233;
517 Float32x4.YZWX = 57;
518 Float32x4.YZWY = 121;
519 Float32x4.YZWZ = 185;
520 Float32x4.YZWW = 249;
521 Float32x4.YWXX = 13;
522 Float32x4.YWXY = 77;
523 Float32x4.YWXZ = 141;
524 Float32x4.YWXW = 205;
525 Float32x4.YWYX = 29;
526 Float32x4.YWYY = 93;
527 Float32x4.YWYZ = 157;
528 Float32x4.YWYW = 221;
529 Float32x4.YWZX = 45;
530 Float32x4.YWZY = 109;
531 Float32x4.YWZZ = 173;
532 Float32x4.YWZW = 237;
533 Float32x4.YWWX = 61;
534 Float32x4.YWWY = 125;
535 Float32x4.YWWZ = 189;
536 Float32x4.YWWW = 253;
537 Float32x4.ZXXX = 2;
538 Float32x4.ZXXY = 66;
539 Float32x4.ZXXZ = 130;
540 Float32x4.ZXXW = 194;
541 Float32x4.ZXYX = 18;
542 Float32x4.ZXYY = 82;
543 Float32x4.ZXYZ = 146;
544 Float32x4.ZXYW = 210;
545 Float32x4.ZXZX = 34;
546 Float32x4.ZXZY = 98;
547 Float32x4.ZXZZ = 162;
548 Float32x4.ZXZW = 226;
549 Float32x4.ZXWX = 50;
550 Float32x4.ZXWY = 114;
551 Float32x4.ZXWZ = 178;
552 Float32x4.ZXWW = 242;
553 Float32x4.ZYXX = 6;
554 Float32x4.ZYXY = 70;
555 Float32x4.ZYXZ = 134;
556 Float32x4.ZYXW = 198;
557 Float32x4.ZYYX = 22;
558 Float32x4.ZYYY = 86;
559 Float32x4.ZYYZ = 150;
560 Float32x4.ZYYW = 214;
561 Float32x4.ZYZX = 38;
562 Float32x4.ZYZY = 102;
563 Float32x4.ZYZZ = 166;
564 Float32x4.ZYZW = 230;
565 Float32x4.ZYWX = 54;
566 Float32x4.ZYWY = 118;
567 Float32x4.ZYWZ = 182;
568 Float32x4.ZYWW = 246;
569 Float32x4.ZZXX = 10;
570 Float32x4.ZZXY = 74;
571 Float32x4.ZZXZ = 138;
572 Float32x4.ZZXW = 202;
573 Float32x4.ZZYX = 26;
574 Float32x4.ZZYY = 90;
575 Float32x4.ZZYZ = 154;
576 Float32x4.ZZYW = 218;
577 Float32x4.ZZZX = 42;
578 Float32x4.ZZZY = 106;
579 Float32x4.ZZZZ = 170;
580 Float32x4.ZZZW = 234;
581 Float32x4.ZZWX = 58;
582 Float32x4.ZZWY = 122;
583 Float32x4.ZZWZ = 186;
584 Float32x4.ZZWW = 250;
585 Float32x4.ZWXX = 14;
586 Float32x4.ZWXY = 78;
587 Float32x4.ZWXZ = 142;
588 Float32x4.ZWXW = 206;
589 Float32x4.ZWYX = 30;
590 Float32x4.ZWYY = 94;
591 Float32x4.ZWYZ = 158;
592 Float32x4.ZWYW = 222;
593 Float32x4.ZWZX = 46;
594 Float32x4.ZWZY = 110;
595 Float32x4.ZWZZ = 174;
596 Float32x4.ZWZW = 238;
597 Float32x4.ZWWX = 62;
598 Float32x4.ZWWY = 126;
599 Float32x4.ZWWZ = 190;
600 Float32x4.ZWWW = 254;
601 Float32x4.WXXX = 3;
602 Float32x4.WXXY = 67;
603 Float32x4.WXXZ = 131;
604 Float32x4.WXXW = 195;
605 Float32x4.WXYX = 19;
606 Float32x4.WXYY = 83;
607 Float32x4.WXYZ = 147;
608 Float32x4.WXYW = 211;
609 Float32x4.WXZX = 35;
610 Float32x4.WXZY = 99;
611 Float32x4.WXZZ = 163;
612 Float32x4.WXZW = 227;
613 Float32x4.WXWX = 51;
614 Float32x4.WXWY = 115;
615 Float32x4.WXWZ = 179;
616 Float32x4.WXWW = 243;
617 Float32x4.WYXX = 7;
618 Float32x4.WYXY = 71;
619 Float32x4.WYXZ = 135;
620 Float32x4.WYXW = 199;
621 Float32x4.WYYX = 23;
622 Float32x4.WYYY = 87;
623 Float32x4.WYYZ = 151;
624 Float32x4.WYYW = 215;
625 Float32x4.WYZX = 39;
626 Float32x4.WYZY = 103;
627 Float32x4.WYZZ = 167;
628 Float32x4.WYZW = 231;
629 Float32x4.WYWX = 55;
630 Float32x4.WYWY = 119;
631 Float32x4.WYWZ = 183;
632 Float32x4.WYWW = 247;
633 Float32x4.WZXX = 11;
634 Float32x4.WZXY = 75;
635 Float32x4.WZXZ = 139;
636 Float32x4.WZXW = 203;
637 Float32x4.WZYX = 27;
638 Float32x4.WZYY = 91;
639 Float32x4.WZYZ = 155;
640 Float32x4.WZYW = 219;
641 Float32x4.WZZX = 43;
642 Float32x4.WZZY = 107;
643 Float32x4.WZZZ = 171;
644 Float32x4.WZZW = 235;
645 Float32x4.WZWX = 59;
646 Float32x4.WZWY = 123;
647 Float32x4.WZWZ = 187;
648 Float32x4.WZWW = 251;
649 Float32x4.WWXX = 15;
650 Float32x4.WWXY = 79;
651 Float32x4.WWXZ = 143;
652 Float32x4.WWXW = 207;
653 Float32x4.WWYX = 31;
654 Float32x4.WWYY = 95;
655 Float32x4.WWYZ = 159;
656 Float32x4.WWYW = 223;
657 Float32x4.WWZX = 47;
658 Float32x4.WWZY = 111;
659 Float32x4.WWZZ = 175;
660 Float32x4.WWZW = 239;
661 Float32x4.WWWX = 63;
662 Float32x4.WWWY = 127;
663 Float32x4.WWWZ = 191;
664 Float32x4.WWWW = 255;
665 class Int32x4 extends core.Object {
666 static new(x, y, z, w) {
667 return new _native_typed_data.NativeInt32x4(x, y, z, w);
668 }
669 static bool(x, y, z, w) {
670 return new _native_typed_data.NativeInt32x4.bool(x, y, z, w);
671 }
672 static fromFloat32x4Bits(x) {
673 return _native_typed_data.NativeInt32x4.fromFloat32x4Bits(x);
674 }
675 }
676 dart.setSignature(Int32x4, {
677 constructors: () => ({
678 new: [Int32x4, [core.int, core.int, core.int, core.int]],
679 bool: [Int32x4, [core.bool, core.bool, core.bool, core.bool]],
680 fromFloat32x4Bits: [Int32x4, [Float32x4]]
681 })
682 });
683 Int32x4.XXXX = 0;
684 Int32x4.XXXY = 64;
685 Int32x4.XXXZ = 128;
686 Int32x4.XXXW = 192;
687 Int32x4.XXYX = 16;
688 Int32x4.XXYY = 80;
689 Int32x4.XXYZ = 144;
690 Int32x4.XXYW = 208;
691 Int32x4.XXZX = 32;
692 Int32x4.XXZY = 96;
693 Int32x4.XXZZ = 160;
694 Int32x4.XXZW = 224;
695 Int32x4.XXWX = 48;
696 Int32x4.XXWY = 112;
697 Int32x4.XXWZ = 176;
698 Int32x4.XXWW = 240;
699 Int32x4.XYXX = 4;
700 Int32x4.XYXY = 68;
701 Int32x4.XYXZ = 132;
702 Int32x4.XYXW = 196;
703 Int32x4.XYYX = 20;
704 Int32x4.XYYY = 84;
705 Int32x4.XYYZ = 148;
706 Int32x4.XYYW = 212;
707 Int32x4.XYZX = 36;
708 Int32x4.XYZY = 100;
709 Int32x4.XYZZ = 164;
710 Int32x4.XYZW = 228;
711 Int32x4.XYWX = 52;
712 Int32x4.XYWY = 116;
713 Int32x4.XYWZ = 180;
714 Int32x4.XYWW = 244;
715 Int32x4.XZXX = 8;
716 Int32x4.XZXY = 72;
717 Int32x4.XZXZ = 136;
718 Int32x4.XZXW = 200;
719 Int32x4.XZYX = 24;
720 Int32x4.XZYY = 88;
721 Int32x4.XZYZ = 152;
722 Int32x4.XZYW = 216;
723 Int32x4.XZZX = 40;
724 Int32x4.XZZY = 104;
725 Int32x4.XZZZ = 168;
726 Int32x4.XZZW = 232;
727 Int32x4.XZWX = 56;
728 Int32x4.XZWY = 120;
729 Int32x4.XZWZ = 184;
730 Int32x4.XZWW = 248;
731 Int32x4.XWXX = 12;
732 Int32x4.XWXY = 76;
733 Int32x4.XWXZ = 140;
734 Int32x4.XWXW = 204;
735 Int32x4.XWYX = 28;
736 Int32x4.XWYY = 92;
737 Int32x4.XWYZ = 156;
738 Int32x4.XWYW = 220;
739 Int32x4.XWZX = 44;
740 Int32x4.XWZY = 108;
741 Int32x4.XWZZ = 172;
742 Int32x4.XWZW = 236;
743 Int32x4.XWWX = 60;
744 Int32x4.XWWY = 124;
745 Int32x4.XWWZ = 188;
746 Int32x4.XWWW = 252;
747 Int32x4.YXXX = 1;
748 Int32x4.YXXY = 65;
749 Int32x4.YXXZ = 129;
750 Int32x4.YXXW = 193;
751 Int32x4.YXYX = 17;
752 Int32x4.YXYY = 81;
753 Int32x4.YXYZ = 145;
754 Int32x4.YXYW = 209;
755 Int32x4.YXZX = 33;
756 Int32x4.YXZY = 97;
757 Int32x4.YXZZ = 161;
758 Int32x4.YXZW = 225;
759 Int32x4.YXWX = 49;
760 Int32x4.YXWY = 113;
761 Int32x4.YXWZ = 177;
762 Int32x4.YXWW = 241;
763 Int32x4.YYXX = 5;
764 Int32x4.YYXY = 69;
765 Int32x4.YYXZ = 133;
766 Int32x4.YYXW = 197;
767 Int32x4.YYYX = 21;
768 Int32x4.YYYY = 85;
769 Int32x4.YYYZ = 149;
770 Int32x4.YYYW = 213;
771 Int32x4.YYZX = 37;
772 Int32x4.YYZY = 101;
773 Int32x4.YYZZ = 165;
774 Int32x4.YYZW = 229;
775 Int32x4.YYWX = 53;
776 Int32x4.YYWY = 117;
777 Int32x4.YYWZ = 181;
778 Int32x4.YYWW = 245;
779 Int32x4.YZXX = 9;
780 Int32x4.YZXY = 73;
781 Int32x4.YZXZ = 137;
782 Int32x4.YZXW = 201;
783 Int32x4.YZYX = 25;
784 Int32x4.YZYY = 89;
785 Int32x4.YZYZ = 153;
786 Int32x4.YZYW = 217;
787 Int32x4.YZZX = 41;
788 Int32x4.YZZY = 105;
789 Int32x4.YZZZ = 169;
790 Int32x4.YZZW = 233;
791 Int32x4.YZWX = 57;
792 Int32x4.YZWY = 121;
793 Int32x4.YZWZ = 185;
794 Int32x4.YZWW = 249;
795 Int32x4.YWXX = 13;
796 Int32x4.YWXY = 77;
797 Int32x4.YWXZ = 141;
798 Int32x4.YWXW = 205;
799 Int32x4.YWYX = 29;
800 Int32x4.YWYY = 93;
801 Int32x4.YWYZ = 157;
802 Int32x4.YWYW = 221;
803 Int32x4.YWZX = 45;
804 Int32x4.YWZY = 109;
805 Int32x4.YWZZ = 173;
806 Int32x4.YWZW = 237;
807 Int32x4.YWWX = 61;
808 Int32x4.YWWY = 125;
809 Int32x4.YWWZ = 189;
810 Int32x4.YWWW = 253;
811 Int32x4.ZXXX = 2;
812 Int32x4.ZXXY = 66;
813 Int32x4.ZXXZ = 130;
814 Int32x4.ZXXW = 194;
815 Int32x4.ZXYX = 18;
816 Int32x4.ZXYY = 82;
817 Int32x4.ZXYZ = 146;
818 Int32x4.ZXYW = 210;
819 Int32x4.ZXZX = 34;
820 Int32x4.ZXZY = 98;
821 Int32x4.ZXZZ = 162;
822 Int32x4.ZXZW = 226;
823 Int32x4.ZXWX = 50;
824 Int32x4.ZXWY = 114;
825 Int32x4.ZXWZ = 178;
826 Int32x4.ZXWW = 242;
827 Int32x4.ZYXX = 6;
828 Int32x4.ZYXY = 70;
829 Int32x4.ZYXZ = 134;
830 Int32x4.ZYXW = 198;
831 Int32x4.ZYYX = 22;
832 Int32x4.ZYYY = 86;
833 Int32x4.ZYYZ = 150;
834 Int32x4.ZYYW = 214;
835 Int32x4.ZYZX = 38;
836 Int32x4.ZYZY = 102;
837 Int32x4.ZYZZ = 166;
838 Int32x4.ZYZW = 230;
839 Int32x4.ZYWX = 54;
840 Int32x4.ZYWY = 118;
841 Int32x4.ZYWZ = 182;
842 Int32x4.ZYWW = 246;
843 Int32x4.ZZXX = 10;
844 Int32x4.ZZXY = 74;
845 Int32x4.ZZXZ = 138;
846 Int32x4.ZZXW = 202;
847 Int32x4.ZZYX = 26;
848 Int32x4.ZZYY = 90;
849 Int32x4.ZZYZ = 154;
850 Int32x4.ZZYW = 218;
851 Int32x4.ZZZX = 42;
852 Int32x4.ZZZY = 106;
853 Int32x4.ZZZZ = 170;
854 Int32x4.ZZZW = 234;
855 Int32x4.ZZWX = 58;
856 Int32x4.ZZWY = 122;
857 Int32x4.ZZWZ = 186;
858 Int32x4.ZZWW = 250;
859 Int32x4.ZWXX = 14;
860 Int32x4.ZWXY = 78;
861 Int32x4.ZWXZ = 142;
862 Int32x4.ZWXW = 206;
863 Int32x4.ZWYX = 30;
864 Int32x4.ZWYY = 94;
865 Int32x4.ZWYZ = 158;
866 Int32x4.ZWYW = 222;
867 Int32x4.ZWZX = 46;
868 Int32x4.ZWZY = 110;
869 Int32x4.ZWZZ = 174;
870 Int32x4.ZWZW = 238;
871 Int32x4.ZWWX = 62;
872 Int32x4.ZWWY = 126;
873 Int32x4.ZWWZ = 190;
874 Int32x4.ZWWW = 254;
875 Int32x4.WXXX = 3;
876 Int32x4.WXXY = 67;
877 Int32x4.WXXZ = 131;
878 Int32x4.WXXW = 195;
879 Int32x4.WXYX = 19;
880 Int32x4.WXYY = 83;
881 Int32x4.WXYZ = 147;
882 Int32x4.WXYW = 211;
883 Int32x4.WXZX = 35;
884 Int32x4.WXZY = 99;
885 Int32x4.WXZZ = 163;
886 Int32x4.WXZW = 227;
887 Int32x4.WXWX = 51;
888 Int32x4.WXWY = 115;
889 Int32x4.WXWZ = 179;
890 Int32x4.WXWW = 243;
891 Int32x4.WYXX = 7;
892 Int32x4.WYXY = 71;
893 Int32x4.WYXZ = 135;
894 Int32x4.WYXW = 199;
895 Int32x4.WYYX = 23;
896 Int32x4.WYYY = 87;
897 Int32x4.WYYZ = 151;
898 Int32x4.WYYW = 215;
899 Int32x4.WYZX = 39;
900 Int32x4.WYZY = 103;
901 Int32x4.WYZZ = 167;
902 Int32x4.WYZW = 231;
903 Int32x4.WYWX = 55;
904 Int32x4.WYWY = 119;
905 Int32x4.WYWZ = 183;
906 Int32x4.WYWW = 247;
907 Int32x4.WZXX = 11;
908 Int32x4.WZXY = 75;
909 Int32x4.WZXZ = 139;
910 Int32x4.WZXW = 203;
911 Int32x4.WZYX = 27;
912 Int32x4.WZYY = 91;
913 Int32x4.WZYZ = 155;
914 Int32x4.WZYW = 219;
915 Int32x4.WZZX = 43;
916 Int32x4.WZZY = 107;
917 Int32x4.WZZZ = 171;
918 Int32x4.WZZW = 235;
919 Int32x4.WZWX = 59;
920 Int32x4.WZWY = 123;
921 Int32x4.WZWZ = 187;
922 Int32x4.WZWW = 251;
923 Int32x4.WWXX = 15;
924 Int32x4.WWXY = 79;
925 Int32x4.WWXZ = 143;
926 Int32x4.WWXW = 207;
927 Int32x4.WWYX = 31;
928 Int32x4.WWYY = 95;
929 Int32x4.WWYZ = 159;
930 Int32x4.WWYW = 223;
931 Int32x4.WWZX = 47;
932 Int32x4.WWZY = 111;
933 Int32x4.WWZZ = 175;
934 Int32x4.WWZW = 239;
935 Int32x4.WWWX = 63;
936 Int32x4.WWWY = 127;
937 Int32x4.WWWZ = 191;
938 Int32x4.WWWW = 255;
939 class Float64x2 extends core.Object {
940 static new(x, y) {
941 return new _native_typed_data.NativeFloat64x2(x, y);
942 }
943 static splat(v) {
944 return new _native_typed_data.NativeFloat64x2.splat(v);
945 }
946 static zero() {
947 return new _native_typed_data.NativeFloat64x2.zero();
948 }
949 static fromFloat32x4(v) {
950 return new _native_typed_data.NativeFloat64x2.fromFloat32x4(v);
951 }
952 }
953 dart.setSignature(Float64x2, {
954 constructors: () => ({
955 new: [Float64x2, [core.double, core.double]],
956 splat: [Float64x2, [core.double]],
957 zero: [Float64x2, []],
958 fromFloat32x4: [Float64x2, [Float32x4]]
959 })
960 });
961 // Exports:
962 exports.ByteBuffer = ByteBuffer;
963 exports.TypedData = TypedData;
964 exports.Endianness = Endianness;
965 exports.ByteData = ByteData;
966 exports.Int8List = Int8List;
967 exports.Uint8List = Uint8List;
968 exports.Uint8ClampedList = Uint8ClampedList;
969 exports.Int16List = Int16List;
970 exports.Uint16List = Uint16List;
971 exports.Int32List = Int32List;
972 exports.Uint32List = Uint32List;
973 exports.Int64List = Int64List;
974 exports.Uint64List = Uint64List;
975 exports.Float32List = Float32List;
976 exports.Float64List = Float64List;
977 exports.Float32x4List = Float32x4List;
978 exports.Int32x4List = Int32x4List;
979 exports.Float64x2List = Float64x2List;
980 exports.Float32x4 = Float32x4;
981 exports.Int32x4 = Int32x4;
982 exports.Float64x2 = Float64x2;
983 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698