Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 04cda2f1bfad1555aa6a46193bab9dec138d8c59..f2339c9cbd15655fbc1695e7ffad54e2f4253452 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -4730,10 +4730,10 @@ static MaybeObject* SearchRegExpMultiple( |
fixed_array->set(fixed_array->length() - 1, |
Smi::FromInt(builder.length())); |
// Cache the result and turn the FixedArray into a COW array. |
- RegExpResultsCache::Enter(isolate, |
- subject, |
- handle(regexp->data(), isolate), |
- fixed_array, |
+ RegExpResultsCache::Enter(isolate->heap(), |
+ *subject, |
+ regexp->data(), |
+ *fixed_array, |
RegExpResultsCache::REGEXP_MULTIPLE_INDICES); |
} |
return *builder.ToJSArray(result_array); |
@@ -6750,10 +6750,10 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_StringSplit) { |
if (limit == 0xffffffffu) { |
if (result->HasFastObjectElements()) { |
- RegExpResultsCache::Enter(isolate, |
- subject, |
- pattern, |
- elements, |
+ RegExpResultsCache::Enter(isolate->heap(), |
+ *subject, |
+ *pattern, |
+ *elements, |
RegExpResultsCache::STRING_SPLIT_SUBSTRINGS); |
} |
} |