Home | History | Annotate | Download | only in js

Lines Matching refs:start_i

206 function SparseSlice(array, start_i, del_count, len, deleted_elements) {
208 var indices = %GetArrayKeys(array, start_i + del_count);
211 for (var i = start_i; i < limit; ++i) {
214 %CreateDataProperty(deleted_elements, i - start_i, current);
221 if (key >= start_i) {
224 %CreateDataProperty(deleted_elements, key - start_i, current);
234 function SparseMove(array, start_i, del_count, len, num_additional_args) {
245 for (var i = 0; i < start_i && i < limit; ++i) {
251 for (var i = start_i + del_count; i < limit; ++i) {
261 if (key < start_i) {
266 } else if (key >= start_i + del_count) {
295 function SimpleSlice(array, start_i, del_count, len, deleted_elements) {
297 var index = start_i + i;
306 function SimpleMove(array, start_i, del_count, len, num_additional_args) {
311 for (var i = len - del_count; i > start_i; i--) {
321 for (var i = start_i; i < len - del_count; i++) {
468 function ComputeSpliceStartIndex(start_i, len) {
469 if (start_i < 0) {
470 start_i += len;
471 return start_i < 0 ? 0 : start_i;
474 return start_i > len ? len : start_i;
478 function ComputeSpliceDeleteCount(delete_count, num_arguments, len, start_i) {
486 return len - start_i;
492 if (del_count > len - start_i)
493 return len - start_i;
503 var start_i = ComputeSpliceStartIndex(TO_INTEGER(start), len);
505 start_i);
518 changed_elements += len - start_i - del_count;
523 SparseSlice(array, start_i, del_count, len, deleted_elements);
524 SparseMove(array, start_i, del_count, len, num_elements_to_add);
526 SimpleSlice(array, start_i, del_count, len, deleted_elements);
527 SimpleMove(array, start_i, del_count, len, num_elements_to_add);
532 var i = start_i;