Lines Matching refs:JSRegExp
3573 void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, Handle<String> source,
3574 JSRegExp::Flags flags, Handle<Object> data) {
3576 *NewFixedArray(JSRegExp::kAtomDataSize, AllocationType::kYoung);
3578 store.set(JSRegExp::kTagIndex, Smi::FromInt(JSRegExp::ATOM));
3579 store.set(JSRegExp::kSourceIndex, *source, SKIP_WRITE_BARRIER);
3580 store.set(JSRegExp::kFlagsIndex, Smi::FromInt(flags));
3581 store.set(JSRegExp::kAtomPatternIndex, *data, SKIP_WRITE_BARRIER);
3585 void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp,
3587 JSRegExp::Flags flags, int capture_count,
3591 *NewFixedArray(JSRegExp::kIrregexpDataSize, AllocationType::kYoung);
3593 Smi uninitialized = Smi::FromInt(JSRegExp::kUninitializedValue);
3597 store.set(JSRegExp::kTagIndex, Smi::FromInt(JSRegExp::IRREGEXP));
3598 store.set(JSRegExp::kSourceIndex, *source, SKIP_WRITE_BARRIER);
3599 store.set(JSRegExp::kFlagsIndex, Smi::FromInt(flags));
3600 store.set(JSRegExp::kIrregexpLatin1CodeIndex, uninitialized);
3601 store.set(JSRegExp::kIrregexpUC16CodeIndex, uninitialized);
3602 store.set(JSRegExp::kIrregexpLatin1BytecodeIndex, uninitialized);
3603 store.set(JSRegExp::kIrregexpUC16BytecodeIndex, uninitialized);
3604 store.set(JSRegExp::kIrregexpMaxRegisterCountIndex, Smi::zero());
3605 store.set(JSRegExp::kIrregexpCaptureCountIndex, Smi::FromInt(capture_count));
3606 store.set(JSRegExp::kIrregexpCaptureNameMapIndex, uninitialized);
3607 store.set(JSRegExp::kIrregexpTicksUntilTierUpIndex, ticks_until_tier_up);
3608 store.set(JSRegExp::kIrregexpBacktrackLimit, Smi::FromInt(backtrack_limit));
3612 void Factory::SetRegExpExperimentalData(Handle<JSRegExp> regexp,
3614 JSRegExp::Flags flags,
3617 *NewFixedArray(JSRegExp::kExperimentalDataSize, AllocationType::kYoung);
3619 Smi uninitialized = Smi::FromInt(JSRegExp::kUninitializedValue);
3621 store.set(JSRegExp::kTagIndex, Smi::FromInt(JSRegExp::EXPERIMENTAL));
3622 store.set(JSRegExp::kSourceIndex, *source, SKIP_WRITE_BARRIER);
3623 store.set(JSRegExp::kFlagsIndex, Smi::FromInt(flags));
3624 store.set(JSRegExp::kIrregexpLatin1CodeIndex, uninitialized);
3625 store.set(JSRegExp::kIrregexpUC16CodeIndex, uninitialized);
3626 store.set(JSRegExp::kIrregexpLatin1BytecodeIndex, uninitialized);
3627 store.set(JSRegExp::kIrregexpUC16BytecodeIndex, uninitialized);
3628 store.set(JSRegExp::kIrregexpMaxRegisterCountIndex, uninitialized);
3629 store.set(JSRegExp::kIrregexpCaptureCountIndex, Smi::FromInt(capture_count));
3630 store.set(JSRegExp::kIrregexpCaptureNameMapIndex, uninitialized);
3631 store.set(JSRegExp::kIrregexpTicksUntilTierUpIndex, uninitialized);
3632 store.set(JSRegExp::kIrregexpBacktrackLimit, uninitialized);