Lines Matching refs:elements_kind
30 var elements_kind = { variable
47 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
48 if (%HasFastObjectElements(obj)) return elements_kind.fast;
49 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
50 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
53 return elements_kind.fixed_int8;
56 return elements_kind.fixed_uint8;
59 return elements_kind.fixed_int16;
62 return elements_kind.fixed_uint16;
65 return elements_kind.fixed_int32;
68 return elements_kind.fixed_uint32;
71 return elements_kind.fixed_float32;
74 return elements_kind.fixed_float64;
77 return elements_kind.fixed_uint8_clamped;
86 assertKind(elements_kind.fast, me);
89 assertKind(elements_kind.fast, me);
92 assertKind(elements_kind.fast_smi_only, too);
95 assertKind(elements_kind.fast_smi_only, too);
100 assertKind(elements_kind.fast_smi_only, you);
104 assertKind(elements_kind.fast_smi_only, you);
109 assertKind(elements_kind.fast, you);
113 assertKind(elements_kind.dictionary, temp);
117 assertKind(elements_kind.fast_double, fast_double_array);
119 assertKind(elements_kind.fixed_int8, new Int8Array(007));
120 assertKind(elements_kind.fixed_uint8, new Uint8Array(007));
121 assertKind(elements_kind.fixed_int16, new Int16Array(666));
122 assertKind(elements_kind.fixed_uint16, new Uint16Array(42));
123 assertKind(elements_kind.fixed_int32, new Int32Array(0xF));
124 assertKind(elements_kind.fixed_uint32, new Uint32Array(23));
125 assertKind(elements_kind.fixed_float32, new Float32Array(7));
126 assertKind(elements_kind.fixed_float64, new Float64Array(0));
127 assertKind(elements_kind.fixed_uint8_clamped, new Uint8ClampedArray(512));
130 assertKind(elements_kind.fixed_int8, new Int8Array(ab));
131 assertKind(elements_kind.fixed_uint8, new Uint8Array(ab));
132 assertKind(elements_kind.fixed_int16, new Int16Array(ab));
133 assertKind(elements_kind.fixed_uint16, new Uint16Array(ab));
134 assertKind(elements_kind.fixed_int32, new Int32Array(ab));
135 assertKind(elements_kind.fixed_uint32, new Uint32Array(ab));
136 assertKind(elements_kind.fixed_float32, new Float32Array(ab));
137 assertKind(elements_kind.fixed_float64, new Float64Array(ab));
138 assertKind(elements_kind.fixed_uint8_clamped, new Uint8ClampedArray(ab));
142 assertKind(elements_kind.fast_smi_only, array);
146 assertKind(elements_kind.fast_smi_only, array);
153 assertKind(elements_kind.fast_smi_only, smi_only);
180 assertKind(elements_kind.fast_smi_only, a);
187 assertKind(elements_kind.fast_double, a);
194 assertKind(elements_kind.fast, a);
202 assertKind(elements_kind.fast_double, array);
214 assertKind(elements_kind.fast, array);
236 convert_mixed(smis, 1.5, elements_kind.fast_double);
240 convert_mixed(doubles, "three", elements_kind.fast);
242 convert_mixed(construct_smis(), "three", elements_kind.fast);
243 convert_mixed(construct_doubles(), "three", elements_kind.fast);
247 convert_mixed(smis, 1, elements_kind.fast);
248 convert_mixed(doubles, 1, elements_kind.fast);
256 assertKind(elements_kind.fast_smi_only, a1);
259 assertKind(elements_kind.fast_smi_only, a2);
261 assertKind(elements_kind.fast, b);
263 assertKind(elements_kind.fast_double, c);
281 assertKind(elements_kind.fast_smi_only, a);
288 assertKind(elements_kind.fast_smi_only, c);
296 assertKind(elements_kind.fast_smi_only, e);
299 assertKind(elements_kind.fast_double, a);
301 assertKind(elements_kind.fast, a);
306 assertKind(elements_kind.fast_double, c);
309 assertKind(elements_kind.fast, d);
315 assertKind(elements_kind.fast, e);
318 assertKind(elements_kind.fast_double, f);
321 assertKind(elements_kind.fast, f);
326 assertKind(elements_kind.fast_smi_only, a);
328 assertKind(elements_kind.fast_double, b);
331 assertKind(elements_kind.fast_double, c);
335 assertKind(elements_kind.fast_smi_only, a);
337 assertKind(elements_kind.fast_smi_only, a);
342 assertKind(elements_kind.fast, a);
344 assertKind(elements_kind.fast, b);
346 assertKind(elements_kind.fast, c);