Definition at line 4223 of file regexp.cc.
◆ RegExpExpansionLimiter()
dart::RegExpExpansionLimiter::RegExpExpansionLimiter |
( |
RegExpCompiler * |
compiler, |
|
|
intptr_t |
factor |
|
) |
| |
|
inline |
Definition at line 4226 of file regexp.cc.
4228 saved_expansion_factor_(
compiler->current_expansion_factor()),
4231 if (ok_to_expand_) {
4233
4234 ok_to_expand_ = false;
4236 } else {
4237 intptr_t new_factor = saved_expansion_factor_ * factor;
4239 compiler->set_current_expansion_factor(new_factor);
4240 }
4241 }
4242 }
static constexpr intptr_t kMaxExpansionFactor
◆ ~RegExpExpansionLimiter()
dart::RegExpExpansionLimiter::~RegExpExpansionLimiter |
( |
| ) |
|
|
inline |
Definition at line 4244 of file regexp.cc.
4244 {
4246 }
void set_current_expansion_factor(intptr_t value)
◆ ok_to_expand()
bool dart::RegExpExpansionLimiter::ok_to_expand |
( |
| ) |
|
|
inline |
Definition at line 4248 of file regexp.cc.
4248{ return ok_to_expand_; }
◆ kMaxExpansionFactor
constexpr intptr_t dart::RegExpExpansionLimiter::kMaxExpansionFactor = 6 |
|
staticconstexpr |
The documentation for this class was generated from the following file:
- third_party/dart-lang/sdk/runtime/vm/regexp.cc