| Index: src/parser.cc
|
| diff --git a/src/parser.cc b/src/parser.cc
|
| index 5a45137295d61db8a7cf16e0fbf4fae699e5a816..b1baab8a24f1013707432fcb47124b235de14d8b 100644
|
| --- a/src/parser.cc
|
| +++ b/src/parser.cc
|
| @@ -4471,10 +4471,11 @@ uc32 RegExpParser::Next() {
|
|
|
| void RegExpParser::Advance() {
|
| if (next_pos_ < in()->length()) {
|
| - StackLimitCheck check;
|
| + Isolate* isolate = Isolate::Current();
|
| + StackLimitCheck check(isolate);
|
| if (check.HasOverflowed()) {
|
| ReportError(CStrVector(Isolate::kStackOverflowMessage));
|
| - } else if (ZONE->excess_allocation()) {
|
| + } else if (isolate->zone()->excess_allocation()) {
|
| ReportError(CStrVector("Regular expression too large"));
|
| } else {
|
| current_ = in()->Get(next_pos_);
|
|
|