Home | History | Annotate | Download | only in mjsunit

Lines Matching refs:new

42 var a = new Int32Array(2);
53 var ab = new ArrayBuffer(12);
55 var derived_uint8 = new Uint8Array(ab);
62 var derived_uint8_2 = new Uint8Array(ab,7);
69 var derived_int16 = new Int16Array(ab);
76 var derived_int16_2 = new Int16Array(ab,6);
83 var derived_uint32 = new Uint32Array(ab);
90 var derived_uint32_2 = new Uint32Array(ab,4);
97 var derived_uint32_3 = new Uint32Array(ab,4,1);
104 var derived_float64 = new Float64Array(ab,0,1);
115 new Uint32Array(ab,4,3);
119 new Uint32Array(ab,16);
126 new Uint32Array(ab,5);
133 var ab2 = new ArrayBuffer(13);
135 new Uint32Array(ab2,4);
140 a = new Uint8Array(31);
144 a = new Int16Array(5);
147 a = new Float64Array(7);
152 a = new Float64Array(7);
153 assertSame(a.buffer, (new Uint16Array(a.buffer)).buffer);
154 assertSame(a.buffer, (new Float32Array(a.buffer,4)).buffer);
155 assertSame(a.buffer, (new Int8Array(a.buffer,3,51)).buffer);
159 a = new Int32Array(2);
162 a = new Uint8Array(2);
164 a = new Int16Array(2);
175 var array = new Float64Array(2);
195 var array_with_length_from_non_number = new Int32Array("2");
318 var a = new type(kElementCount);
381 var float32_array = new Float32Array(1);
397 var float64_array = new Float64Array(1);
411 ab = new ArrayBuffer(0);
414 a = new Int8Array(ab);
420 ab = new ArrayBuffer(16);
422 a = new Float32Array(ab,4,0);
428 a = new Uint16Array(0);
437 a = new Uint32Array([]);
444 a = new Uint16Array([1,2,3]);
453 a = new Uint32Array(a);
464 a = new Uint16Array([1,2,3,4,5,6]);
541 var a11 = new Int16Array([1, 2, 3, 4, 0, -1])
542 var a12 = new Uint16Array(15)
548 var a22 = new Int32Array(12)
552 var a31 = new Float32Array([2, 4, 6, 8, 11, NaN, 1/0, -3])
558 var a4 = new Uint8ClampedArray([3,2,5,6])
563 var b = new ArrayBuffer(4)
564 var a5 = new Int16Array(b)
565 var a50 = new Int8Array(b)
566 var a51 = new Int8Array(b, 0, 2)
567 var a52 = new Int8Array(b, 1, 2)
568 var a53 = new Int8Array(b, 2, 2)
601 var a61 = new Float32Array([1.2, 12.3])
602 var a62 = new Int32Array(2)
617 var a0 = new Int8Array([1, 2, 3, 4, 5, 6])
622 assertArrayPrefix([1, 2, 3, 4, 5, 6], new Int8Array(b1))
626 assertArrayPrefix([4, 5, 6], new Int8Array(b2))
630 assertArrayPrefix([3, 4], new Int8Array(b3))
641 var t_array = new constructor([1, 2, 3, 4, 5, 6]);
663 var built_in_array = new Array(1, 2, 3, 4, 5, 6);
673 built_in_array = new Array(1.5, 2, 3, 4, 5, 6);
688 var a7 = new Uint32Array(2); var a71 = new Int32Array(2);
689 var a72 = new Uint16Array(2); var a73 = new Int16Array(2);
690 var a74 = new Uint8Array(2); var a75 = new Int8Array(2);