Lines Matching refs:index
95 TNode<Context> context, TNode<Smi> length, TNode<Smi> index,
149 StoreObjectFieldNoWriteBarrier(result, JSRegExpResult::kIndexOffset, index);
314 // index at odd indices.
358 TNode<Smi> index = CAST(LoadFixedArrayElement(names, i_plus_1));
360 CAST(LoadFixedArrayElement(result_elements, SmiUntag(index)));
581 // Argument 1: Previous index.
1407 TNode<String> string, TNode<Number> index, TNode<BoolT> is_unicode,
1409 CSA_DCHECK(this, IsNumberNormalized(index));
1410 if (is_fastpath) CSA_DCHECK(this, TaggedIsPositiveSmi(index));
1415 TNode<Number> index_plus_one = NumberInc(index);
1418 // TODO(v8:9880): Given that we have to convert index from Number to UintPtrT
1419 // anyway, consider using UintPtrT index to simplify the code below.
1421 // Advancing the index has some subtle issues involving the distinction
1423 // * {index} is a Smi, {index_plus_one} is a Smi. The standard case.
1424 // * {index} is a Smi, {index_plus_one} overflows into a HeapNumber.
1427 // * {index} is a HeapNumber, {index_plus_one} is a HeapNumber. This can only
1428 // occur when {index} is outside the Smi range since we normalize
1431 // Must be in Smi range on the fast path. We control the value of {index}
1451 StringCharCodeAt(string, Unsigned(SmiUntag(CAST(index))));
1461 // At a surrogate pair, return index + 2.
1629 // Advance index and continue if the match is empty.