Index: src/regexp/jsregexp.cc |
diff --git a/src/regexp/jsregexp.cc b/src/regexp/jsregexp.cc |
index ddb4a16cafb7f781ffb4ed85f2586a7843f10def..3fe46b7390b2572ef60bd254ceeb83d1e79f667d 100644 |
--- a/src/regexp/jsregexp.cc |
+++ b/src/regexp/jsregexp.cc |
@@ -6762,7 +6762,7 @@ bool RegExpEngine::TooMuchRegExpCode(Handle<String> pattern) { |
Heap* heap = pattern->GetHeap(); |
bool too_much = pattern->length() > RegExpImpl::kRegExpTooLargeToOptimize; |
if (heap->total_regexp_code_generated() > RegExpImpl::kRegExpCompiledLimit && |
- heap->isolate()->memory_allocator()->SizeExecutable() > |
+ heap->memory_allocator()->SizeExecutable() > |
RegExpImpl::kRegExpExecutableMemoryLimit) { |
too_much = true; |
} |