Lines Matching defs:elements_kind
51 var elements_kind = {
68 if (%HasFastSmiElements(obj)) return elements_kind.fast_smi_only;
69 if (%HasFastObjectElements(obj)) return elements_kind.fast;
70 if (%HasFastDoubleElements(obj)) return elements_kind.fast_double;
71 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
75 return elements_kind.external_byte;
78 return elements_kind.external_unsigned_byte;
81 return elements_kind.external_short;
84 return elements_kind.external_unsigned_short;
87 return elements_kind.external_int;
90 return elements_kind.external_unsigned_int;
93 return elements_kind.external_float;
96 return elements_kind.external_double;
99 return elements_kind.external_pixel;
105 expected == elements_kind.fast_smi_only) {
106 expected = elements_kind.fast;
112 assertKind(elements_kind.fast, me);
115 assertKind(elements_kind.fast, me);
119 assertKind(elements_kind.fast_smi_only, too);
122 assertKind(elements_kind.fast_smi_only, too);
127 assertKind(elements_kind.fast_smi_only, you);
131 assertKind(elements_kind.fast_smi_only, you);
136 assertKind(elements_kind.fast, you);
138 assertKind(elements_kind.dictionary, new Array(0xDECAF));
142 assertKind(elements_kind.fast_double, fast_double_array);
144 assertKind(elements_kind.external_byte, new Int8Array(9001));
145 assertKind(elements_kind.external_unsigned_byte, new Uint8Array(007));
146 assertKind(elements_kind.external_short, new Int16Array(666));
147 assertKind(elements_kind.external_unsigned_short, new Uint16Array(42));
148 assertKind(elements_kind.external_int, new Int32Array(0xF));
149 assertKind(elements_kind.external_unsigned_int, new Uint32Array(23));
150 assertKind(elements_kind.external_float, new Float32Array(7));
151 assertKind(elements_kind.external_double, new Float64Array(0));
152 assertKind(elements_kind.external_pixel, new Uint8ClampedArray(512));
156 assertKind(elements_kind.fast_smi_only, array);
160 assertKind(elements_kind.fast_smi_only, array);
167 assertKind(elements_kind.fast_smi_only, smi_only);
177 assertKind(elements_kind.fast_smi_only, a);
184 assertKind(elements_kind.fast_double, a);
191 assertKind(elements_kind.fast, a);
199 assertKind(elements_kind.fast_double, array);
211 assertKind(elements_kind.fast, array);
233 convert_mixed(smis, 1.5, elements_kind.fast_double);
237 convert_mixed(doubles, "three", elements_kind.fast);
239 convert_mixed(construct_smis(), "three", elements_kind.fast);
240 convert_mixed(construct_doubles(), "three", elements_kind.fast);
244 convert_mixed(smis, 1, elements_kind.fast);
245 convert_mixed(doubles, 1, elements_kind.fast);
255 assertKind(elements_kind.fast_smi_only, a1);
258 assertKind(elements_kind.fast_smi_only, a2);
260 assertKind(elements_kind.fast, b);
263 assertKind(elements_kind.fast_double, c);
272 // Elements_kind transitions for arrays.
274 // A map can have three different elements_kind transitions: SMI->DOUBLE,
284 assertKind(elements_kind.fast_smi_only, a);
291 assertKind(elements_kind.fast_smi_only, c);
299 assertKind(elements_kind.fast_smi_only, e);
302 assertKind(elements_kind.fast_double, a);
304 assertKind(elements_kind.fast, a);
309 assertKind(elements_kind.fast_double, c);
312 assertKind(elements_kind.fast, d);
318 assertKind(elements_kind.fast, e);
321 assertKind(elements_kind.fast_double, f);
324 assertKind(elements_kind.fast, f);
331 assertKind(elements_kind.fast_smi_only, a);
333 assertKind(elements_kind.fast_double, b);
336 assertKind(elements_kind.fast_double, c);
342 assertKind(elements_kind.fast_smi_only, a);
344 assertKind(elements_kind.fast_smi_only, a);
351 assertKind(elements_kind.fast, a);
353 assertKind(elements_kind.fast, b);
355 assertKind(elements_kind.fast, c);