| Index: src/runtime/runtime-strings.cc
|
| diff --git a/src/runtime/runtime-strings.cc b/src/runtime/runtime-strings.cc
|
| index f5bda59b26fe9316b02aecdd80b3b60742876a8b..393e18fbf0bc2694dfde76f0b33c2ba63a45c963 100644
|
| --- a/src/runtime/runtime-strings.cc
|
| +++ b/src/runtime/runtime-strings.cc
|
| @@ -181,14 +181,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();
|
|
|