/third_party/node/deps/v8/src/regexp/experimental/ |
H A D | experimental.cc | 18 int capture_count) { in CanBeHandled() 21 return ExperimentalRegExpCompiler::CanBeHandled(tree, flags, capture_count); in CanBeHandled() 26 int capture_count) { in Initialize() 34 re, source, JSRegExp::AsJSRegExpFlags(flags), capture_count); in Initialize() 137 ByteArray bytecode, String subject, int capture_count, in ExecRawImpl() 145 JSRegExp::RegistersForCaptureCount(capture_count); in ExecRawImpl() 180 regexp.capture_count(), output_registers, in ExecRaw() 225 int capture_count = regexp->capture_count(); in Exec() local 226 int output_register_count = JSRegExp::RegistersForCaptureCount(capture_count); in Exec() 17 CanBeHandled(RegExpTree* tree, RegExpFlags flags, int capture_count) CanBeHandled() argument 24 Initialize(Isolate* isolate, Handle<JSRegExp> re, Handle<String> source, RegExpFlags flags, int capture_count) Initialize() argument 136 ExecRawImpl(Isolate* isolate, RegExp::CallOrigin call_origin, ByteArray bytecode, String subject, int capture_count, int32_t* output_registers, int32_t output_register_count, int32_t subject_index) ExecRawImpl() argument 290 int capture_count = regexp->capture_count(); OneshotExec() local [all...] |
H A D | experimental.h | 24 int capture_count); 27 int capture_count);
|
H A D | experimental-compiler.h | 24 int capture_count);
|
H A D | experimental-interpreter.h | 27 ByteArray bytecode, int capture_count, String input,
|
H A D | experimental-compiler.cc | 26 static bool Check(RegExpTree* tree, RegExpFlags flags, int capture_count) { in Check() argument 179 int capture_count) { in CanBeHandled() 180 return CanBeHandledVisitor::Check(tree, flags, capture_count); in CanBeHandled() 177 CanBeHandled(RegExpTree* tree, RegExpFlags flags, int capture_count) CanBeHandled() argument
|
/third_party/jerryscript/jerry-core/ecma/builtin-objects/ |
H A D | ecma-builtin-helpers.c | 889 JERRY_ASSERT (ctx_p->capture_count == 0); in ecma_builtin_replace_substitute() 914 JERRY_ASSERT (ctx_p->capture_count == 0); in ecma_builtin_replace_substitute() 943 uint32_t capture_count = ctx_p->capture_count; in ecma_builtin_replace_substitute() local 945 if (capture_count == 0 && ctx_p->u.collection_p != NULL) in ecma_builtin_replace_substitute() 947 capture_count = ctx_p->u.collection_p->item_count; in ecma_builtin_replace_substitute() 955 if (two_digit_index < capture_count) in ecma_builtin_replace_substitute() 962 if (idx > 0 && idx < capture_count) in ecma_builtin_replace_substitute() 964 if (ctx_p->capture_count > 0) in ecma_builtin_replace_substitute()
|
H A D | ecma-builtin-helpers.h | 92 uint32_t capture_count; /**< number of captures in the capturing group array */ member
|
H A D | ecma-builtin-string-prototype.c | 442 replace_ctx.capture_count = 0; in ecma_builtin_string_prototype_object_replace()
|
/third_party/node/deps/v8/src/regexp/ |
H A D | regexp.cc | 41 int capture_count, uint32_t backtrack_limit); 224 parse_result.capture_count)) { in Compile() 227 parse_result.capture_count); in Compile() 232 parse_result.capture_count)) { in Compile() 239 parse_result.capture_count); in Compile() 247 parse_result.capture_count == 0) { in Compile() 263 parse_result.capture_count, backtrack_limit); in Compile() 632 int capture_count, in IrregexpInitialize() 637 capture_count, backtrack_limit); in IrregexpInitialize() 654 return JSRegExp::RegistersForCaptureCount(regexp->capture_count()); in IrregexpPrepare() 630 IrregexpInitialize(Isolate* isolate, Handle<JSRegExp> re, Handle<String> pattern, RegExpFlags flags, int capture_count, uint32_t backtrack_limit) IrregexpInitialize() argument 784 int capture_count = regexp->capture_count(); IrregexpExec() local 800 SetLastMatchInfo( Isolate* isolate, Handle<RegExpMatchInfo> last_match_info, Handle<String> subject, int capture_count, int32_t* match) SetLastMatchInfo() argument [all...] |
H A D | regexp.h | 59 int capture_count = 0; member 144 Handle<String> subject, int capture_count, int32_t* match);
|
H A D | regexp-ast.h | 516 RegExpLookaround(RegExpTree* body, bool is_positive, int capture_count, in RegExpLookaround() argument 520 capture_count_(capture_count), in RegExpLookaround() 532 int capture_count() const { return capture_count_; } in capture_count() function in v8::internal::final
|
H A D | regexp-parser.cc | 964 int capture_count = captures_started(); in ScanForCaptures() local 1017 capture_count++; in ScanForCaptures() 1021 capture_count_ = capture_count; in ScanForCaptures() 2049 const int capture_count = captures_started(); in Parse() local 2050 result->simple = tree->IsAtom() && simple() && capture_count == 0; in Parse() 2052 result->capture_count = capture_count; in Parse()
|
H A D | regexp-compiler.h | 454 RegExpCompiler(Isolate* isolate, Zone* zone, int capture_count, 498 RegExpNode* start, int capture_count,
|
H A D | regexp-compiler.cc | 240 RegExpCompiler::RegExpCompiler(Isolate* isolate, Zone* zone, int capture_count, in RegExpCompiler() argument 242 : next_register_(JSRegExp::RegistersForCaptureCount(capture_count)), in RegExpCompiler() 263 int capture_count, Handle<String> pattern) { in Assemble() 261 Assemble( Isolate* isolate, RegExpMacroAssembler* macro_assembler, RegExpNode* start, int capture_count, Handle<String> pattern) Assemble() argument
|
/third_party/node/deps/v8/src/objects/ |
H A D | regexp-match-info.h | 53 // Creates a new RegExpMatchInfo with space for capture_count captures. 54 static Handle<RegExpMatchInfo> New(Isolate* isolate, int capture_count); 58 Isolate* isolate, Handle<RegExpMatchInfo> match_info, int capture_count);
|
H A D | js-regexp-inl.h | 37 int JSRegExp::capture_count() const { in capture_count() function in v8::internal::JSRegExp
|
H A D | js-regexp.h | 80 inline int capture_count() const;
|
H A D | objects.cc | 4385 int capture_count) { in New() 4387 return ReserveCaptures(isolate, match_info, capture_count); in New() 4391 Isolate* isolate, Handle<RegExpMatchInfo> match_info, int capture_count) { in ReserveCaptures() 4395 JSRegExp::RegistersForCaptureCount(capture_count); in ReserveCaptures() 4384 New(Isolate* isolate, int capture_count) New() argument 4390 ReserveCaptures( Isolate* isolate, Handle<RegExpMatchInfo> match_info, int capture_count) ReserveCaptures() argument
|
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-regexp.cc | 82 Handle<String> replacement, int capture_count, 154 FixedArray capture_name_map, int capture_count, 220 if (capture_ref > capture_count) { 230 if (double_digit_ref <= capture_count) { 241 DCHECK(capture_ref <= capture_count); 290 (1 <= capture_index && capture_index <= capture_count)); 327 Handle<String> replacement, int capture_count, in Compile() 335 if (capture_count > 0) { in Compile() 347 capture_count, subject_length); in Compile() 351 capture_count, subject_lengt in Compile() 132 DCHECK(tag < NUMBER_OF_PART_TYPES); } int tag; int data; }; template <typename Char> bool ParseReplacementPattern(base::Vector<Char> characters, FixedArray capture_name_map, int capture_count, int subject_length) { int length = characters.length(); int last = 0; for (int i = 0; i < length; i++) { Char c = characters[i]; if (c == �) { int next_index = i + 1; if (next_index == length) { break; } Char c2 = characters[next_index]; switch (c2) { case �: if (i > last) { parts_.emplace_back( ReplacementPart::ReplacementSubString(last, next_index)); last = next_index + 1; } else { last = next_index; } i = next_index; break; case �: if (i > last) ReplacementPart() argument 326 Compile(Isolate* isolate, Handle<JSRegExp> regexp, Handle<String> replacement, int capture_count, int subject_length) Compile() argument 630 int capture_count = regexp->capture_count(); StringReplaceGlobalRegExpWithString() local 730 int capture_count = regexp->capture_count(); StringReplaceGlobalRegExpWithEmptyString() local 1187 int capture_count = regexp->capture_count(); SearchRegExpMultiple() local [all...] |
/third_party/jerryscript/jerry-core/ecma/operations/ |
H A D | ecma-regexp-object.c | 1282 const uint32_t capture_count = re_get_value (&bc_p); in ecma_regexp_run() local 1293 JERRY_VLA (const lit_utf8_byte_t *, saved_captures_p, capture_count); in ecma_regexp_run() 1294 for (uint32_t i = 0; i < capture_count; ++i) in ecma_regexp_run() 1318 for (uint32_t i = 0; i < capture_count; ++i) in ecma_regexp_run() 1334 const uint32_t capture_count = re_get_value (&bc_p); in ecma_regexp_run() local 1352 const uint32_t capture_end = capture_idx + capture_count; in ecma_regexp_run() 2552 ctx_p->capture_count = re_ctx.captures_count; in ecma_regexp_replace_helper_fast() 2973 replace_ctx.capture_count = 0; in ecma_regexp_replace_helper() 2987 uint32_t capture_count; in ecma_regexp_replace_helper() 2988 result = ecma_op_object_get_length (current_object_p, &capture_count); in ecma_regexp_replace_helper() [all...] |
/third_party/node/deps/v8/src/builtins/ |
H A D | builtins-regexp-gen.cc | 492 TNode<Smi> capture_count = CAST(UnsafeLoadFixedArrayElement( in RegExpExecInternal() local 497 GotoIf(SmiAbove(capture_count, SmiConstant(kOffsetsSize / 2 - 1)), in RegExpExecInternal() 602 TNode<Smi> capture_count = CAST(UnsafeLoadFixedArrayElement( in RegExpExecInternal() local 604 // capture_count is the number of captures without the match itself. in RegExpExecInternal() 605 // Required registers = (capture_count + 1) * 2. in RegExpExecInternal() 608 SmiShl(SmiAdd(capture_count, SmiConstant(1)), 1); in RegExpExecInternal() 679 TNode<Smi> capture_count = CAST(UnsafeLoadFixedArrayElement( in RegExpExecInternal() 681 // Calculate number of register_count = (capture_count + 1) * 2. in RegExpExecInternal() 683 SmiShl(SmiAdd(capture_count, SmiConstant(1)), 1); in RegExpExecInternal()
|
/third_party/node/deps/v8/src/heap/ |
H A D | factory.h | 818 JSRegExp::Flags flags, int capture_count, 824 JSRegExp::Flags flags, int capture_count);
|
H A D | factory.cc | 3587 JSRegExp::Flags flags, int capture_count, in SetRegExpIrregexpData() 3605 store.set(JSRegExp::kIrregexpCaptureCountIndex, Smi::FromInt(capture_count)); in SetRegExpIrregexpData() 3615 int capture_count) { in SetRegExpExperimentalData() 3629 store.set(JSRegExp::kIrregexpCaptureCountIndex, Smi::FromInt(capture_count)); in SetRegExpExperimentalData() 3585 SetRegExpIrregexpData(Handle<JSRegExp> regexp, Handle<String> source, JSRegExp::Flags flags, int capture_count, uint32_t backtrack_limit) SetRegExpIrregexpData() argument 3612 SetRegExpExperimentalData(Handle<JSRegExp> regexp, Handle<String> source, JSRegExp::Flags flags, int capture_count) SetRegExpExperimentalData() argument
|
/third_party/pcre2/pcre2/src/ |
H A D | pcre2test.c | 4466 uint32_t backrefmax, bsr_convention, capture_count, first_ctype, first_cunit, in show_pattern_info() local 4524 pattern_info(PCRE2_INFO_CAPTURECOUNT, &capture_count, FALSE) + in show_pattern_info() 4542 fprintf(outfile, "Capture group count = %d\n", capture_count); in show_pattern_info()
|