Home
last modified time | relevance | path

Searched refs:capture_count (Results 1 - 24 of 24) sorted by relevance

/third_party/node/deps/v8/src/regexp/experimental/
H A Dexperimental.cc18 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 Dexperimental.h24 int capture_count);
27 int capture_count);
H A Dexperimental-compiler.h24 int capture_count);
H A Dexperimental-interpreter.h27 ByteArray bytecode, int capture_count, String input,
H A Dexperimental-compiler.cc26 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 Decma-builtin-helpers.c889 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 Decma-builtin-helpers.h92 uint32_t capture_count; /**< number of captures in the capturing group array */ member
H A Decma-builtin-string-prototype.c442 replace_ctx.capture_count = 0; in ecma_builtin_string_prototype_object_replace()
/third_party/node/deps/v8/src/regexp/
H A Dregexp.cc41 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 Dregexp.h59 int capture_count = 0; member
144 Handle<String> subject, int capture_count, int32_t* match);
H A Dregexp-ast.h516 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 Dregexp-parser.cc964 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 Dregexp-compiler.h454 RegExpCompiler(Isolate* isolate, Zone* zone, int capture_count,
498 RegExpNode* start, int capture_count,
H A Dregexp-compiler.cc240 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 Dregexp-match-info.h53 // 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 Djs-regexp-inl.h37 int JSRegExp::capture_count() const { in capture_count() function in v8::internal::JSRegExp
H A Djs-regexp.h80 inline int capture_count() const;
H A Dobjects.cc4385 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 Druntime-regexp.cc82 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 Decma-regexp-object.c1282 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 Dbuiltins-regexp-gen.cc492 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 Dfactory.h818 JSRegExp::Flags flags, int capture_count,
824 JSRegExp::Flags flags, int capture_count);
H A Dfactory.cc3587 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 Dpcre2test.c4466 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()

Completed in 59 milliseconds