| Index: src/runtime/runtime-strings.cc
|
| diff --git a/src/runtime/runtime-strings.cc b/src/runtime/runtime-strings.cc
|
| index 72844dd861d229be0b7981adc226fe833b493a8e..cc699a6b7c923b3df579cf69439e7c774be9223e 100644
|
| --- a/src/runtime/runtime-strings.cc
|
| +++ b/src/runtime/runtime-strings.cc
|
| @@ -265,14 +265,14 @@ RUNTIME_FUNCTION(Runtime_StringMatch) {
|
|
|
| int capture_count = regexp->CaptureCount();
|
|
|
| - ZoneScope zone_scope(isolate->runtime_zone());
|
| - ZoneList<int> offsets(8, zone_scope.zone());
|
| + Zone zone(isolate->allocator());
|
| + ZoneList<int> offsets(8, &zone);
|
|
|
| while (true) {
|
| int32_t* match = global_cache.FetchNext();
|
| if (match == NULL) break;
|
| - offsets.Add(match[0], zone_scope.zone()); // start
|
| - offsets.Add(match[1], zone_scope.zone()); // end
|
| + offsets.Add(match[0], &zone); // start
|
| + offsets.Add(match[1], &zone); // end
|
| }
|
|
|
| if (global_cache.HasException()) return isolate->heap()->exception();
|
|
|