| Index: src/runtime/runtime-regexp.cc
|
| diff --git a/src/runtime/runtime-regexp.cc b/src/runtime/runtime-regexp.cc
|
| index 4f59ef931f9336079a7e5959dd4ac4848a741475..58c14bc182f7ddbe60cc0ab7b3e117401c251c3b 100644
|
| --- a/src/runtime/runtime-regexp.cc
|
| +++ b/src/runtime/runtime-regexp.cc
|
| @@ -1136,11 +1136,11 @@ static Object* SearchRegExpMultiple(Isolate* isolate, Handle<String> subject,
|
| for (int i = 0; i < capture_registers; i++) {
|
| last_match_cache->set(i, Smi::FromInt(last_match[i]));
|
| }
|
| - Handle<FixedArray> result_array = builder.array();
|
| - result_array->Shrink(builder.length());
|
| + Handle<FixedArray> result_fixed_array = builder.array();
|
| + result_fixed_array->Shrink(builder.length());
|
| // Cache the result and turn the FixedArray into a COW array.
|
| RegExpResultsCache::Enter(
|
| - isolate, subject, handle(regexp->data(), isolate), result_array,
|
| + isolate, subject, handle(regexp->data(), isolate), result_fixed_array,
|
| last_match_cache, RegExpResultsCache::REGEXP_MULTIPLE_INDICES);
|
| }
|
| return *builder.ToJSArray(result_array);
|
|
|