Lines Matching full:jsarray
89 // This constant has the same value as JSArray::kPreallocatedArrayElements and
90 // if JSArray::kPreallocatedArrayElements is changed handling of loop unfolding
95 // Allocate an empty JSArray. The allocated array is put into the result
111 // Allocate the JSArray object together with space for a fixed array with the
113 int size = JSArray::kSize + FixedArray::SizeFor(initial_capacity);
121 // Allocated the JSArray. Now initialize the fields except for the elements
128 __ str(scratch1, FieldMemOperand(result, JSArray::kPropertiesOffset));
129 // Field JSArray::kElementsOffset is initialized later.
131 __ str(scratch3, FieldMemOperand(result, JSArray::kLengthOffset));
134 // of the JSArray.
137 __ add(scratch1, result, Operand(JSArray::kSize));
138 __ str(scratch1, FieldMemOperand(result, JSArray::kElementsOffset));
165 // Allocate a JSArray with the number of elements stored in a register. The
197 int size = JSArray::kSize +
198 FixedArray::SizeFor(JSArray::kPreallocatedArrayElements);
207 // Allocate the JSArray object together with space for a FixedArray with the
212 Operand((JSArray::kSize + FixedArray::kHeaderSize) / kPointerSize));
224 // Allocated the JSArray. Now initialize the fields except for the elements
233 FieldMemOperand(result, JSArray::kPropertiesOffset));
234 // Field JSArray::kElementsOffset is initialized later.
235 __ str(array_size, FieldMemOperand(result, JSArray::kLengthOffset));
238 // of the JSArray.
241 __ add(elements_array_storage, result, Operand(JSArray::kSize));
243 FieldMemOperand(result, JSArray::kElementsOffset));
261 // the actual JSArray has length 0 and the size of the JSArray for non-empty
264 Operand(Smi::FromInt(JSArray::kPreallocatedArrayElements)),
298 // the JSArray object and the FixedArray elements array and initializes these.
327 JSArray::kPreallocatedArrayElements,
396 // r3: JSArray
412 // r3: JSArray