| Index: src/jsregexp.cc
|
| diff --git a/src/jsregexp.cc b/src/jsregexp.cc
|
| index 09d034540d88733a84226838233e46010bb9af8b..368ccc0650aa9b291e55062184f5f939443abdc6 100644
|
| --- a/src/jsregexp.cc
|
| +++ b/src/jsregexp.cc
|
| @@ -1087,8 +1087,8 @@ class RecursionCheck {
|
| };
|
|
|
|
|
| -static RegExpEngine::CompilationResult IrregexpRegExpTooBig() {
|
| - return RegExpEngine::CompilationResult("RegExp too big");
|
| +static RegExpEngine::CompilationResult IrregexpRegExpTooBig(Isolate* isolate) {
|
| + return RegExpEngine::CompilationResult(isolate, "RegExp too big");
|
| }
|
|
|
|
|
| @@ -1145,7 +1145,7 @@ RegExpEngine::CompilationResult RegExpCompiler::Assemble(
|
| while (!work_list.is_empty()) {
|
| work_list.RemoveLast()->Emit(this, &new_trace);
|
| }
|
| - if (reg_exp_too_big_) return IrregexpRegExpTooBig();
|
| + if (reg_exp_too_big_) return IrregexpRegExpTooBig(zone_->isolate());
|
|
|
| Handle<HeapObject> code = macro_assembler_->GetCode(pattern);
|
| heap->IncreaseTotalRegexpCodeGenerated(code->Size());
|
| @@ -5836,7 +5836,7 @@ void TextNode::FillInBMInfo(int initial_offset,
|
| if (bm->compiler()->ignore_case()) {
|
| unibrow::uchar chars[unibrow::Ecma262UnCanonicalize::kMaxWidth];
|
| int length = GetCaseIndependentLetters(
|
| - ISOLATE,
|
| + Isolate::Current(),
|
| character,
|
| bm->max_char() == String::kMaxOneByteCharCode,
|
| chars);
|
| @@ -6001,7 +6001,7 @@ RegExpEngine::CompilationResult RegExpEngine::Compile(
|
| bool is_ascii,
|
| Zone* zone) {
|
| if ((data->capture_count + 1) * 2 - 1 > RegExpMacroAssembler::kMaxRegister) {
|
| - return IrregexpRegExpTooBig();
|
| + return IrregexpRegExpTooBig(zone->isolate());
|
| }
|
| RegExpCompiler compiler(data->capture_count, ignore_case, is_ascii, zone);
|
|
|
| @@ -6065,7 +6065,7 @@ RegExpEngine::CompilationResult RegExpEngine::Compile(
|
| analysis.EnsureAnalyzed(node);
|
| if (analysis.has_failed()) {
|
| const char* error_message = analysis.error_message();
|
| - return CompilationResult(error_message);
|
| + return CompilationResult(zone->isolate(), error_message);
|
| }
|
|
|
| // Create the correct assembler for the architecture.
|
|
|