29 #ifndef V8_JSREGEXP_INL_H_
30 #define V8_JSREGEXP_INL_H_
42 RegExpImpl::GlobalCache::~GlobalCache() {
51 int32_t* RegExpImpl::GlobalCache::FetchNext() {
52 current_match_index_++;
53 if (current_match_index_ >= num_matches_) {
56 if (num_matches_ < max_matches_) {
62 ®ister_array_[(current_match_index_ - 1) * registers_per_match_];
63 int last_end_index = last_match[1];
70 register_array_size_);
72 int last_start_index = last_match[0];
73 if (last_start_index == last_end_index) last_end_index++;
74 if (last_end_index > subject_->length()) {
82 register_array_size_);
85 if (num_matches_ <= 0)
return NULL;
86 current_match_index_ = 0;
87 return register_array_;
89 return ®ister_array_[current_match_index_ * registers_per_match_];
94 int32_t* RegExpImpl::GlobalCache::LastSuccessfulMatch() {
95 int index = current_match_index_ * registers_per_match_;
96 if (num_matches_ == 0) {
98 index -= registers_per_match_;
100 return ®ister_array_[index];
106 #endif // V8_JSREGEXP_INL_H_
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter NULL
static const int kJSRegexpStaticOffsetsVectorSize
static int IrregexpExecRaw(Handle< JSRegExp > regexp, Handle< String > subject, int index, int32_t *output, int output_size)
static int AtomExecRaw(Handle< JSRegExp > regexp, Handle< String > subject, int index, int32_t *output, int output_size)
void DeleteArray(T *array)