Lines Matching refs:to_add
320 int to_add = args.length() - 1;
321 if (to_add > 0 && JSArray::WouldChangeReadOnlyLength(array, len + to_add)) {
330 if (to_add == 0) {
335 DCHECK(to_add <= (Smi::kMaxValue - len));
337 int new_length = len + to_add;
356 for (int index = 0; index < to_add; index++) {
369 if (to_add == 0) {
374 DCHECK(to_add <= (Smi::kMaxValue - len));
376 int new_length = len + to_add;
394 // to_add is > 0 and new_length <= elms_len, so elms_obj cannot be the
402 for (index = 0; index < to_add; index++) {
515 int to_add = args.length() - 1;
516 int new_length = len + to_add;
519 DCHECK(to_add <= (Smi::kMaxValue - len));
521 if (to_add > 0 && JSArray::WouldChangeReadOnlyLength(array, len + to_add)) {
527 JSObject::EnsureCanContainElements(array, &args, 1, to_add,
539 elms, 0, kind, new_elms, to_add,
546 heap->MoveElements(*elms, to_add, 0, len);
552 for (int i = 0; i < to_add; i++) {