/third_party/node/deps/v8/src/objects/ |
D | js-regexp-inl.h | 23 TQ_OBJECT_CONSTRUCTORS_IMPL(JSRegExp) 28 ACCESSORS(JSRegExp, last_index, Object, kLastIndexOffset) in TQ_OBJECT_CONSTRUCTORS_IMPL() 30 JSRegExp::Type JSRegExp::type_tag() const { in TQ_OBJECT_CONSTRUCTORS_IMPL() 32 if (data.IsUndefined()) return JSRegExp::NOT_COMPILED; in TQ_OBJECT_CONSTRUCTORS_IMPL() 34 return static_cast<JSRegExp::Type>(smi.value()); in TQ_OBJECT_CONSTRUCTORS_IMPL() 37 int JSRegExp::capture_count() const { in capture_count() 49 int JSRegExp::max_register_count() const { in max_register_count() 54 String JSRegExp::atom_pattern() const { in atom_pattern() 56 return String::cast(DataAt(JSRegExp::kAtomPatternIndex)); in atom_pattern() 59 String JSRegExp::source() const { in source() [all …]
|
D | js-regexp.cc | 109 uint32_t JSRegExp::backtrack_limit() const { in backtrack_limit() 115 base::Optional<JSRegExp::Flags> JSRegExp::FlagsFromString( in FlagsFromString() 120 if (length > JSRegExp::kFlagCount) return {}; in FlagsFromString() 126 base::Optional<RegExpFlag> flag = JSRegExp::FlagFromChar(reader.Get(i)); in FlagsFromString() 132 return JSRegExp::AsJSRegExpFlags(value); in FlagsFromString() 136 Handle<String> JSRegExp::StringFromFlags(Isolate* isolate, in StringFromFlags() 137 JSRegExp::Flags flags) { in StringFromFlags() 142 if (flags & JSRegExp::k##Camel) buffer[cursor++] = Char; in StringFromFlags() 151 MaybeHandle<JSRegExp> JSRegExp::New(Isolate* isolate, Handle<String> pattern, in New() 154 Handle<JSRegExp> regexp = in New() [all …]
|
D | js-regexp.h | 38 class JSRegExp : public TorqueGeneratedJSRegExp<JSRegExp, JSObject> { 48 V8_EXPORT_PRIVATE static MaybeHandle<JSRegExp> New( 52 static MaybeHandle<JSRegExp> Initialize( 53 Handle<JSRegExp> regexp, Handle<String> source, Flags flags, 55 static MaybeHandle<JSRegExp> Initialize(Handle<JSRegExp> regexp, 152 DECL_PRINTER(JSRegExp) 153 DECL_VERIFIER(JSRegExp) 250 TQ_OBJECT_CONSTRUCTORS(JSRegExp) 253 DEFINE_OPERATORS_FOR_FLAGS(JSRegExp::Flags) in DEFINE_OPERATORS_FOR_FLAGS()
|
D | compilation-cache-table-inl.h | 92 DCHECK_GE(val.length(), JSRegExp::kMinDataArrayLength); in HashForObject() 93 return RegExpHash(String::cast(val.get(JSRegExp::kSourceIndex)), in HashForObject() 94 Smi::cast(val.get(JSRegExp::kFlagsIndex))); in HashForObject()
|
/third_party/node/deps/v8/src/regexp/ |
D | regexp.cc | 39 static void IrregexpInitialize(Isolate* isolate, Handle<JSRegExp> re, 50 static int IrregexpPrepare(Isolate* isolate, Handle<JSRegExp> regexp, 53 static void AtomCompile(Isolate* isolate, Handle<JSRegExp> re, 57 static int AtomExecRaw(Isolate* isolate, Handle<JSRegExp> regexp, 61 static Handle<Object> AtomExec(Isolate* isolate, Handle<JSRegExp> regexp, 71 static int IrregexpExecRaw(Isolate* isolate, Handle<JSRegExp> regexp, 80 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject, 84 static bool CompileIrregexp(Isolate* isolate, Handle<JSRegExp> re, 87 Handle<JSRegExp> re, 132 Handle<JSRegExp> re, in ThrowRegExpException() [all …]
|
D | regexp.h | 17 class JSRegExp; variable 86 Isolate* isolate, Handle<JSRegExp> re, Handle<String> pattern, 93 Handle<JSRegExp> re, 114 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject, 119 ExperimentalOneshotExec(Isolate* isolate, Handle<JSRegExp> regexp, 157 Handle<JSRegExp> re, 160 static void ThrowRegExpException(Isolate* isolate, Handle<JSRegExp> re, 163 static bool IsUnmodifiedRegExp(Isolate* isolate, Handle<JSRegExp> regexp); 174 RegExpGlobalCache(Handle<JSRegExp> regexp, Handle<String> subject, 199 Handle<JSRegExp> regexp_;
|
D | regexp-utils.cc | 52 JSRegExp::cast(*recv).set_last_index(*value_as_object, in SetLastIndex() 65 return handle(JSRegExp::cast(*recv).last_index(), isolate); in GetLastIndex() 148 InternalIndex kExecIndex(JSRegExp::kExecFunctionDescriptorIndex); in IsUnmodifiedRegExp() 167 Object last_index = JSRegExp::cast(recv).last_index(); in IsUnmodifiedRegExp()
|
D | regexp-interpreter.h | 30 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject_string, 60 static Result Match(Isolate* isolate, JSRegExp regexp, String subject_string,
|
D | regexp-macro-assembler.h | 16 class JSRegExp; variable 298 static int Match(Handle<JSRegExp> regexp, Handle<String> subject, 307 JSRegExp regexp); 350 Isolate* isolate, JSRegExp regexp);
|
D | regexp-macro-assembler.cc | 26 backtrack_limit_(JSRegExp::kNoBacktrackLimit), in RegExpMacroAssembler() 32 return backtrack_limit_ != JSRegExp::kNoBacktrackLimit; in has_backtrack_limit() 368 int NativeRegExpMacroAssembler::Match(Handle<JSRegExp> regexp, in Match() 419 JSRegExp regexp) { in ExecuteForTesting() 431 int* output, int output_size, Isolate* isolate, JSRegExp regexp) { in Execute()
|
/third_party/node/deps/v8/src/builtins/ |
D | builtins-regexp-gen.h | 32 TNode<String> input, TNode<JSRegExp> regexp, TNode<Number> last_index, 35 TNode<Object> FastLoadLastIndexBeforeSmiCheck(TNode<JSRegExp> regexp); 36 TNode<Smi> FastLoadLastIndex(TNode<JSRegExp> regexp) { in FastLoadLastIndex() 41 void FastStoreLastIndex(TNode<JSRegExp> regexp, TNode<Smi> value); 56 TNode<Context> context, TNode<JSRegExp> regexp, TNode<String> string, 61 TNode<Context> context, TNode<JSRegExp> regexp, 134 TNode<BoolT> FastFlagGetter(TNode<JSRegExp> regexp, JSRegExp::Flag flag); 135 TNode<BoolT> FastFlagGetterGlobal(TNode<JSRegExp> regexp) { in FastFlagGetterGlobal() 136 return FastFlagGetter(regexp, JSRegExp::kGlobal); in FastFlagGetterGlobal() 138 TNode<BoolT> FastFlagGetterUnicode(TNode<JSRegExp> regexp) { in FastFlagGetterUnicode() [all …]
|
D | builtins-regexp-gen.cc | 96 TNode<String> input, TNode<JSRegExp> regexp, TNode<Number> last_index, in AllocateRegExpResult() 192 TNode<JSRegExp> regexp) { in FastLoadLastIndexBeforeSmiCheck() 195 JSRegExp::kHeaderSize + JSRegExp::kLastIndexFieldIndex * kTaggedSize; in FastLoadLastIndexBeforeSmiCheck() 206 void RegExpBuiltinsAssembler::FastStoreLastIndex(TNode<JSRegExp> regexp, in FastStoreLastIndex() 210 JSRegExp::kHeaderSize + JSRegExp::kLastIndexFieldIndex * kTaggedSize; in FastStoreLastIndex() 222 TNode<Context> context, TNode<JSRegExp> regexp, in ConstructNewResultFromMatchInfo() 243 CAST(LoadObjectField(regexp, JSRegExp::kFlagsOffset)); in ConstructNewResultFromMatchInfo() 244 const TNode<BoolT> has_indices = IsSetSmi(flags, JSRegExp::kHasIndices); in ConstructNewResultFromMatchInfo() 301 CAST(LoadObjectField(regexp, JSRegExp::kDataOffset)); in ConstructNewResultFromMatchInfo() 308 SmiEqual(CAST(LoadFixedArrayElement(data, JSRegExp::kTagIndex)), in ConstructNewResultFromMatchInfo() [all …]
|
D | regexp.tq | 59 const regexp = Cast<JSRegExp>(receiver) otherwise ThrowTypeError( 68 implicit context: Context)(JSRegExp, RegExpMatchInfo, String, Number): 72 generates 'JSRegExp::kGlobal | JSRegExp::kSticky'; 76 JSRegExp, String, Number, RegExpMatchInfo): HeapObject; 86 regexp: JSRegExp, string: String, regexpLastIndex: Number, 138 implicit context: Context)(regexp: JSRegExp, string: String): 147 regexp: JSRegExp, string: String, 157 let regexp: JSRegExp; 159 regexp = UnsafeCast<JSRegExp>(receiver); 161 regexp = Cast<JSRegExp>(receiver) otherwise ThrowTypeError( [all …]
|
D | builtins-constructor-gen.cc | 391 TNode<JSRegExp> ConstructorBuiltinsAssembler::CreateRegExpLiteral( in CreateRegExpLiteral() 398 TVARIABLE(JSRegExp, result); in CreateRegExpLiteral() 404 STATIC_ASSERT(JSRegExp::kDataOffset == JSObject::kHeaderSize); in CreateRegExpLiteral() 405 STATIC_ASSERT(JSRegExp::kSourceOffset == in CreateRegExpLiteral() 406 JSRegExp::kDataOffset + kTaggedSize); in CreateRegExpLiteral() 407 STATIC_ASSERT(JSRegExp::kFlagsOffset == in CreateRegExpLiteral() 408 JSRegExp::kSourceOffset + kTaggedSize); in CreateRegExpLiteral() 409 STATIC_ASSERT(JSRegExp::kHeaderSize == in CreateRegExpLiteral() 410 JSRegExp::kFlagsOffset + kTaggedSize); in CreateRegExpLiteral() 411 STATIC_ASSERT(JSRegExp::kLastIndexOffset == JSRegExp::kHeaderSize); in CreateRegExpLiteral() [all …]
|
D | regexp-exec.tq | 23 regexp: JSRegExp, string: String): JSAny { 34 // Ensure {receiver} is a JSRegExp. 35 const receiver = Cast<JSRegExp>(receiver) otherwise ThrowTypeError(
|
D | regexp-search.tq | 11 regexp: JSRegExp, string: String): JSAny { 24 UnsafeCast<JSRegExp>(regexp), string) 85 receiver: JSRegExp, string: String): JSAny { 102 return RegExpSearchFast(UnsafeCast<JSRegExp>(receiver), string);
|
D | regexp-match.tq | 10 generates 'JSRegExp::ATOM'; 12 generates 'JSRegExp::kTagIndex'; 14 generates 'JSRegExp::kAtomPatternIndex'; 49 const maybeAtomRegexp = UnsafeCast<JSRegExp>(regexp); 65 UnsafeCast<JSRegExp>(regexp), string) otherwise IfDidNotMatch;
|
D | regexp-test.tq | 20 UnsafeCast<JSRegExp>(receiver), str) 29 receiver: JSRegExp, string: String): Object {
|
D | regexp-replace.tq | 13 JSRegExp, String, RegExpMatchInfo, JSArray): Null|JSArray; 20 String, JSRegExp, Callable): String; 123 regexp: JSRegExp, string: String, replaceString: String): String { 124 // The fast path is reached only if {receiver} is an unmodified JSRegExp 191 const stableRegexp: JSRegExp = regexp; 249 // Fast-path checks: 1. Is the {receiver} an unmodified JSRegExp instance?
|
/third_party/node/deps/v8/src/regexp/experimental/ |
D | experimental.cc | 24 void ExperimentalRegExp::Initialize(Isolate* isolate, Handle<JSRegExp> re, in Initialize() 34 re, source, JSRegExp::AsJSRegExpFlags(flags), capture_count); in Initialize() 37 bool ExperimentalRegExp::IsCompiled(Handle<JSRegExp> re, Isolate* isolate) { in IsCompiled() 39 DCHECK_EQ(re->type_tag(), JSRegExp::EXPERIMENTAL); in IsCompiled() 45 return re->bytecode(kIsLatin1) != Smi::FromInt(JSRegExp::kUninitializedValue); in IsCompiled() 68 Handle<JSRegExp> regexp) { in CompileImpl() 78 isolate, &zone, source, JSRegExp::AsRegExpFlags(regexp->flags()), in CompileImpl() 90 parse_result.tree, JSRegExp::AsRegExpFlags(regexp->flags()), &zone); in CompileImpl() 101 bool ExperimentalRegExp::Compile(Isolate* isolate, Handle<JSRegExp> re) { in Compile() 103 DCHECK_EQ(re->type_tag(), JSRegExp::EXPERIMENTAL); in Compile() [all …]
|
D | experimental.h | 25 static void Initialize(Isolate* isolate, Handle<JSRegExp> re, 28 static bool IsCompiled(Handle<JSRegExp> re, Isolate* isolate); 30 static bool Compile(Isolate* isolate, Handle<JSRegExp> re); 40 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject, 44 JSRegExp regexp, String subject, 51 Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> subject, 54 static int32_t OneshotExecRaw(Isolate* isolate, Handle<JSRegExp> regexp,
|
/third_party/node/deps/v8/src/runtime/ |
D | runtime-regexp.cc | 81 bool Compile(Isolate* isolate, Handle<JSRegExp> regexp, 326 bool CompiledReplacement::Compile(Isolate* isolate, Handle<JSRegExp> regexp, in Compile() 336 DCHECK(JSRegExp::TypeSupportsCaptures(regexp->type_tag())); in Compile() 546 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> pattern_regexp, in StringReplaceGlobalAtomRegExpWithString() 553 DCHECK_EQ(JSRegExp::ATOM, pattern_regexp->type_tag()); in StringReplaceGlobalAtomRegExpWithString() 625 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithString() 643 if (regexp->type_tag() == JSRegExp::ATOM && simple_replace) { in StringReplaceGlobalRegExpWithString() 703 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithEmptyString() 708 if (regexp->type_tag() == JSRegExp::ATOM) { in StringReplaceGlobalRegExpWithEmptyString() 883 MaybeHandle<Object> RegExpExec(Isolate* isolate, Handle<JSRegExp> regexp, in RegExpExec() [all …]
|
/third_party/node/deps/v8/src/codegen/ |
D | compilation-cache.h | 137 MaybeHandle<FixedArray> Lookup(Handle<String> source, JSRegExp::Flags flags); 139 void Put(Handle<String> source, JSRegExp::Flags flags, 175 JSRegExp::Flags flags); 191 void PutRegExp(Handle<String> source, JSRegExp::Flags flags,
|
/third_party/node/deps/v8/src/diagnostics/ |
D | objects-debug.cc | 1483 void JSRegExp::JSRegExpVerify(Isolate* isolate) { in JSRegExpVerify() 1486 case JSRegExp::ATOM: { in JSRegExpVerify() 1488 CHECK(arr.get(JSRegExp::kAtomPatternIndex).IsString()); in JSRegExpVerify() 1491 case JSRegExp::EXPERIMENTAL: { in JSRegExpVerify() 1493 Smi uninitialized = Smi::FromInt(JSRegExp::kUninitializedValue); in JSRegExpVerify() 1495 Object latin1_code = arr.get(JSRegExp::kIrregexpLatin1CodeIndex); in JSRegExpVerify() 1496 Object uc16_code = arr.get(JSRegExp::kIrregexpUC16CodeIndex); in JSRegExpVerify() 1497 Object latin1_bytecode = arr.get(JSRegExp::kIrregexpLatin1BytecodeIndex); in JSRegExpVerify() 1498 Object uc16_bytecode = arr.get(JSRegExp::kIrregexpUC16BytecodeIndex); in JSRegExpVerify() 1516 CHECK_EQ(arr.get(JSRegExp::kIrregexpMaxRegisterCountIndex), in JSRegExpVerify() [all …]
|
/third_party/node/deps/v8/src/heap/ |
D | factory.cc | 3573 void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, Handle<String> source, in SetRegExpAtomData() 3574 JSRegExp::Flags flags, Handle<Object> data) { in SetRegExpAtomData() 3576 *NewFixedArray(JSRegExp::kAtomDataSize, AllocationType::kYoung); in SetRegExpAtomData() 3578 store.set(JSRegExp::kTagIndex, Smi::FromInt(JSRegExp::ATOM)); in SetRegExpAtomData() 3579 store.set(JSRegExp::kSourceIndex, *source, SKIP_WRITE_BARRIER); in SetRegExpAtomData() 3580 store.set(JSRegExp::kFlagsIndex, Smi::FromInt(flags)); in SetRegExpAtomData() 3581 store.set(JSRegExp::kAtomPatternIndex, *data, SKIP_WRITE_BARRIER); in SetRegExpAtomData() 3585 void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp, in SetRegExpIrregexpData() 3587 JSRegExp::Flags flags, int capture_count, in SetRegExpIrregexpData() 3591 *NewFixedArray(JSRegExp::kIrregexpDataSize, AllocationType::kYoung); in SetRegExpIrregexpData() [all …]
|