Lines Matching defs:limit
416 unsigned int limit) {
417 DCHECK_LT(0, limit);
419 // Stop after finding at most limit values.
423 while (limit > 0) {
429 limit--;
435 unsigned int limit) {
436 DCHECK_LT(0, limit);
439 for (const base::uc16* pos = subject_start; pos < subject_end && limit > 0;
443 limit--;
452 std::vector<int>* indices, unsigned int limit) {
453 DCHECK_LT(0, limit);
455 // Stop after finding at most limit values.
459 while (limit > 0) {
464 limit--;
469 std::vector<int>* indices, unsigned int limit) {
484 limit);
487 limit);
491 pattern_content.ToUC16Vector(), indices, limit);
501 limit);
504 limit);
511 limit);
514 limit);
805 uint32_t limit = NumberToUint32(args[2]);
806 CHECK_LT(0, limit);
812 if (limit == 0xFFFFFFFFu) {
827 // The limit can be very large (0xFFFFFFFFu), but since the pattern
836 FindStringIndicesDispatch(isolate, *subject, *pattern, indices, limit);
838 if (static_cast<uint32_t>(indices->size()) < limit) {
868 if (limit == 0xFFFFFFFFu) {
1641 // RegExp.prototype [ @@split ] ( string, limit )
1694 uint32_t limit;
1695 RETURN_FAILURE_ON_EXCEPTION(isolate, ToUint32(isolate, limit_obj, &limit));
1699 if (limit == 0) return *factory->NewJSArray(0);
1754 if (num_elems == limit) {
1776 if (num_elems == limit) {