Home | History | Annotate | Download | only in src

Lines Matching refs:if

18   if (IS_REGEXP(pattern)) {
19 if (!IS_UNDEFINED(flags)) {
25 if (harmony_regexps)
41 if (global) {
47 if (ignoreCase) {
53 if (multiline) {
59 if (!harmony_regexps || sticky) {
77 if (%_IsConstructCall()) {
81 if (IS_REGEXP(pattern) && IS_UNDEFINED(flags)) {
100 if (this == $RegExp.prototype) {
105 if (IS_UNDEFINED(pattern) && %_ArgumentsLength() != 0) {
115 if (result !== null) lastMatchInfoOverride = null;
132 if (numResults == 1) return result;
136 if (start != -1) {
149 if (matchInfo !== null) {
159 if (!IS_REGEXP(this)) {
168 // algorithm, step 5) even if the value is discarded for non-global RegExps.
172 if (updateLastIndex) {
173 if (i < 0 || i > string.length) {
184 if (IS_NULL(matchIndices)) {
191 if (updateLastIndex) {
207 if (!IS_REGEXP(this)) {
216 // algorithm, step 5) even if the value is discarded for non-global RegExps.
219 if (this.global || (harmony_regexps && this.sticky)) {
220 if (i < 0 || i > string.length) {
226 if (IS_NULL(matchIndices)) {
239 if (regexp.source.length >= 3 &&
247 if (IS_NULL(matchIndices)) {
257 if (!%_ObjectEquals(regexp_key, regexp)) {
269 if (!IS_REGEXP(this)) {
274 if (this.global) result += 'g';
275 if (this.ignoreCase) result += 'i';
276 if (this.multiline) result += 'm';
277 if (harmony_regexps && this.sticky) result += 'y';
287 if (lastMatchInfoOverride !== null) {
298 if (lastMatchInfoOverride) {
300 if (override.length <= 3) return '';
304 if (length <= 2) return ''; // There were no captures.
306 // last pair (after the first pair) of elements of the capture array even if
311 if (start != -1 && end != -1) {
321 if (!lastMatchInfoOverride) {
336 if (!lastMatchInfoOverride) {
354 if (lastMatchInfoOverride) {
355 if (n < lastMatchInfoOverride.length - 2) {
361 if (index >= NUMBER_OF_CAPTURES(lastMatchInfo)) return '';
364 if (matchStart == -1 || matchEnd == -1) return '';