Lines Matching defs:nextSourcePosition
1158 // 15. Let nextSourcePosition be 0.
1159 uint32_t nextSourcePosition = 0;
1283 // p. If position ≥ nextSourcePosition, then
1284 if (position >= nextSourcePosition) {
1286 // of accumulatedResult with the substring of S consisting of the code units from nextSourcePosition
1291 bits |= ReplaceLengthField::Encode(position - nextSourcePosition);
1292 bits |= ReplacePositionField::Encode(nextSourcePosition);
1295 resultStrLength += (position - nextSourcePosition);
1297 thread->GetEcmaVM(), srcString, nextSourcePosition, position - nextSourcePosition);
1306 // iii. Let nextSourcePosition be position + matchLength.
1307 nextSourcePosition = position + matchLength;
1311 // 17. If nextSourcePosition ≥ lengthS, return accumulatedResult.
1312 if (nextSourcePosition < length) {
1316 bits |= ReplaceLengthField::Encode(length - nextSourcePosition);
1317 bits |= ReplacePositionField::Encode(nextSourcePosition);
1319 thread->GetEcmaVM(), srcString, nextSourcePosition, length - nextSourcePosition);
1323 resultStrLength += (length - nextSourcePosition);
1329 // consisting of the code units from nextSourcePosition (inclusive) up through the final code unit of S(inclusive).