Lines Matching refs:Array
71 // Load the built-in Array function from the current context.
78 // Load the Array function from the global context.
91 // Allocate an empty JSArray. The allocated array is put into the result
103 // Load the initial map from the array function.
107 // Allocate the JSArray object together with space for a fixed array with the
118 // array.
129 // Calculate the location of the elements array and set elements array member
136 // Clear the heap tag on the elements array.
142 // scratch1: elements array (untagged)
161 // register array_function holds the built-in Array function and the register
162 // array_size holds the size of the array as a smi. The allocated array is put
170 Register array_function, // Array function.
181 // Load the initial map from the array function.
186 // Check whether an empty sized array is requested.
190 // If an empty array is requested allocate a small elements array anyway. This
191 // keeps the code below free of special casing for the empty array.
219 // array.
222 // array_size: size of array (smi)
231 // Calculate the location of the elements array and set elements array member
234 // array_size: size of array (smi)
239 // Clear the heap tag on the elements array.
243 // Initialize the fixed array and fill it with holes. FixedArray length is not
246 // elements_array_storage: elements array (untagged)
247 // array_size: size of array (smi)
264 // Calculate elements array and elements array end.
266 // elements_array_storage: elements array element storage
267 // array_size: size of elements array
274 // elements_array_storage: elements array element storage
289 // Create a new array for the built-in Array function. This function allocates
290 // the JSArray object and the FixedArray elements array and initializes these.
291 // If the Array cannot be constructed in native code the runtime is called. This
294 // r1: constructor (built-in Array function)
297 // This function is used for both construct and normal calls of Array. The only
307 // Check for array construction with zero arguments or one.
311 // Handle construction of an empty array.
336 // Handle construction of an empty array of a certain size. Bail out if size
337 // is too large to actually allocate an elements array.
362 // Handle construction of an array from a list of arguments.
382 // Fill arguments as array elements. Copy from the top of the stack (last
383 // element) to the array backing store filling it backwards. Note:
419 // Get the Array function.
423 // Initial map for the builtin Array function shoud be a map.
426 __ Assert(ne, "Unexpected initial map for Array function");
428 __ Assert(eq, "Unexpected initial map for Array function");
431 // Run the native code for the Array function called as a normal function.
434 // Jump to the generic array code if the specialized code cannot handle
453 // The array construct code is only set for the builtin Array function which
457 __ Assert(eq, "Unexpected Array function");
458 // Initial map for the builtin Array function should be a map.
461 __ Assert(ne, "Unexpected initial map for Array function");
463 __ Assert(eq, "Unexpected initial map for Array function");
466 // Run the native code for the Array function called as a constructor.
567 // map and properties and elements are set to empty fixed array.
606 // Check if a non-empty properties array is needed. Continue with allocated
630 // r3: number of elements in properties array
644 // r3: number of elements in properties array
652 ASSERT_EQ(1 * kPointerSize, Array::kLengthOffset);
658 // r3: number of elements in properties array
1068 __ ldr(r0, MemOperand(fp, kArgsOffset)); // get the args array
1141 // Copy all arguments from the array to the stack.
1146 // Load the current argument from the arguments array and push it to the
1154 // Call the runtime to access the property in the arguments array.