v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
regexp-parser.cc File Reference
Include dependency graph for regexp-parser.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define DOUBLE_PUNCTUATOR_CASE(Char)
 
#define CHECK_FAILED
 

Functions

template bool v8::internal::RegExpParser::VerifyRegExpSyntax< base::uc16 > (Zone *, uintptr_t, const base::uc16 *, int, RegExpFlags, RegExpCompileData *, const DisallowGarbageCollection &)
 

Macro Definition Documentation

◆ CHECK_FAILED

#define CHECK_FAILED
Value:
); \
if (failed_) return nullptr; \
((void)0
bool failed_

Definition at line 890 of file regexp-parser.cc.

◆ DOUBLE_PUNCTUATOR_CASE

#define DOUBLE_PUNCTUATOR_CASE ( Char)
Value:
case Char: \
return Next() == Char

Variable Documentation

◆ alternatives_

SmallRegExpTreeVector alternatives_
private

Definition at line 335 of file regexp-parser.cc.

◆ builder_

RegExpBuilder builder_
private

Definition at line 429 of file regexp-parser.cc.

◆ capture_count_

int capture_count_
private

Definition at line 646 of file regexp-parser.cc.

◆ capture_name_

const ZoneVector<base::uc16>* const capture_name_
private

Definition at line 437 of file regexp-parser.cc.

◆ captures_

ZoneList<RegExpCapture*>* captures_
private

Definition at line 634 of file regexp-parser.cc.

◆ captures_started_

int captures_started_
private

Definition at line 645 of file regexp-parser.cc.

◆ characters_

ZoneList<base::uc16>* characters_ = nullptr
private

Definition at line 84 of file regexp-parser.cc.

◆ contains_anchor_

bool contains_anchor_
private

Definition at line 651 of file regexp-parser.cc.

◆ current_

base::uc32 current_
private

Definition at line 641 of file regexp-parser.cc.

◆ disjunction_capture_index_

const int disjunction_capture_index_
private

Definition at line 435 of file regexp-parser.cc.

◆ error_

RegExpError error_ = RegExpError::kNone
private

Definition at line 632 of file regexp-parser.cc.

◆ error_pos_

int error_pos_ = 0
private

Definition at line 633 of file regexp-parser.cc.

◆ failed_

bool failed_
private

Definition at line 654 of file regexp-parser.cc.

◆ flags_

RegExpFlags flags_
private

Definition at line 83 of file regexp-parser.cc.

◆ force_unicode_

bool force_unicode_ = false
private

Definition at line 643 of file regexp-parser.cc.

◆ group_type_

const SubexpressionType group_type_
private

Definition at line 431 of file regexp-parser.cc.

◆ has_more_

bool has_more_
private

Definition at line 649 of file regexp-parser.cc.

◆ has_named_captures_

bool has_named_captures_
private

Definition at line 653 of file regexp-parser.cc.

◆ input_

const CharT* const input_
private

Definition at line 639 of file regexp-parser.cc.

◆ input_length_

const int input_length_
private

Definition at line 640 of file regexp-parser.cc.

◆ is_scanned_for_captures_

bool is_scanned_for_captures_
private

Definition at line 652 of file regexp-parser.cc.

◆ kEndMarker

const base::uc32 kEndMarker = (1 << 21)
staticprivate

Definition at line 561 of file regexp-parser.cc.

◆ kNoPendingSurrogate

const base::uc16 kNoPendingSurrogate = 0
staticprivate

Definition at line 66 of file regexp-parser.cc.

◆ lookaround_count_

int lookaround_count_
private

Definition at line 648 of file regexp-parser.cc.

◆ lookaround_type_

const RegExpLookaround::Type lookaround_type_
private

Definition at line 433 of file regexp-parser.cc.

◆ named_back_references_

ZoneList<RegExpBackReference*>* named_back_references_
private

Definition at line 638 of file regexp-parser.cc.

◆ named_captures_

ZoneMap<RegExpCapture*, ZoneList<int>*, RegExpCaptureNameLess>* named_captures_
private

Definition at line 637 of file regexp-parser.cc.

◆ next_pos_

int next_pos_
private

Definition at line 644 of file regexp-parser.cc.

◆ no_gc_

const DisallowGarbageCollection no_gc_
private

Definition at line 630 of file regexp-parser.cc.

◆ non_participating_capture_group_interval_

std::pair<int, int> non_participating_capture_group_interval_
private

Definition at line 442 of file regexp-parser.cc.

◆ parser_

RegExpParserImpl<CharT>* const parser_
private

Definition at line 627 of file regexp-parser.cc.

◆ pending_empty_

bool pending_empty_ = false
private

Definition at line 330 of file regexp-parser.cc.

◆ pending_surrogate_

base::uc16 pending_surrogate_ = kNoPendingSurrogate
private

Definition at line 85 of file regexp-parser.cc.

◆ previous_state_

RegExpParserState* const previous_state_
private

Definition at line 427 of file regexp-parser.cc.

◆ quantifier_count_

int quantifier_count_
private

Definition at line 647 of file regexp-parser.cc.

◆ simple_

bool simple_
private

Definition at line 650 of file regexp-parser.cc.

◆ stack_limit_

const uintptr_t stack_limit_
private

Definition at line 655 of file regexp-parser.cc.

◆ terms_

SmallRegExpTreeVector terms_
private

Definition at line 86 of file regexp-parser.cc.

◆ text_

SmallRegExpTreeVector text_
private

Definition at line 87 of file regexp-parser.cc.

◆ text_builder_

RegExpTextBuilder text_builder_
private

Definition at line 336 of file regexp-parser.cc.

◆ zone_

Zone* const zone_
private

Definition at line 82 of file regexp-parser.cc.