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