Index: src/regexp/jsregexp.cc |
diff --git a/src/regexp/jsregexp.cc b/src/regexp/jsregexp.cc |
index c3b670b51825cbfa3baf3b989525660a150b9920..e81e7619c083c75f4bf16d26fd057bb1d4876623 100644 |
--- a/src/regexp/jsregexp.cc |
+++ b/src/regexp/jsregexp.cc |
@@ -4,6 +4,8 @@ |
#include "src/regexp/jsregexp.h" |
+#include <memory> |
+ |
#include "src/ast/ast.h" |
#include "src/base/platform/platform.h" |
#include "src/compilation-cache.h" |
@@ -596,7 +598,7 @@ MaybeHandle<Object> RegExpImpl::IrregexpExec(Handle<JSRegExp> regexp, |
if (required_registers > Isolate::kJSRegexpStaticOffsetsVectorSize) { |
output_registers = NewArray<int32_t>(required_registers); |
} |
- base::SmartArrayPointer<int32_t> auto_release(output_registers); |
+ std::unique_ptr<int32_t[]> auto_release(output_registers); |
if (output_registers == NULL) { |
output_registers = isolate->jsregexp_static_offsets_vector(); |
} |