Index: src/perf-jit.cc |
diff --git a/src/perf-jit.cc b/src/perf-jit.cc |
index b318a4e7c0e59f224d7634ec4b376f4e787b2528..a8c7255396f6529e190a2d6c407c1728ccfb9f46 100644 |
--- a/src/perf-jit.cc |
+++ b/src/perf-jit.cc |
@@ -27,6 +27,8 @@ |
#include "src/perf-jit.h" |
+#include <memory> |
+ |
#include "src/assembler.h" |
#include "src/eh-frame.h" |
#include "src/objects-inl.h" |
@@ -256,7 +258,7 @@ void PerfJitLogger::LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared) { |
Handle<Object> name_or_url(Script::GetNameOrSourceURL(script)); |
int name_length = 0; |
- base::SmartArrayPointer<char> name_string; |
+ std::unique_ptr<char[]> name_string; |
if (name_or_url->IsString()) { |
name_string = |
Handle<String>::cast(name_or_url) |
@@ -268,7 +270,7 @@ void PerfJitLogger::LogWriteDebugInfo(Code* code, SharedFunctionInfo* shared) { |
char* buffer = NewArray<char>(name_length); |
base::OS::StrNCpy(buffer, name_length + 1, unknown, |
static_cast<size_t>(name_length)); |
- name_string = base::SmartArrayPointer<char>(buffer); |
+ name_string = std::unique_ptr<char[]>(buffer); |
} |
DCHECK_EQ(name_length, strlen(name_string.get())); |