Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index ddc90c97e770831ccf0ff2422fe0b7cedccae72f..618747618cde269a032a77eeb0d8049c619b8b8a 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -4,6 +4,7 @@ |
#include "src/crankshaft/hydrogen.h" |
+#include <memory> |
#include <sstream> |
#include "src/allocation-site-scopes.h" |
@@ -8154,7 +8155,7 @@ void HOptimizedGraphBuilder::HandlePolymorphicCallNamed(Call* expr, |
bool try_inline = FLAG_polymorphic_inlining && !needs_wrapping; |
if (FLAG_trace_inlining && try_inline) { |
Handle<JSFunction> caller = current_info()->closure(); |
- base::SmartArrayPointer<char> caller_name = |
+ std::unique_ptr<char[]> caller_name = |
caller->shared()->DebugName()->ToCString(); |
PrintF("Trying to inline the polymorphic call to %s from %s\n", |
name->ToCString().get(), |
@@ -8241,9 +8242,9 @@ void HOptimizedGraphBuilder::TraceInline(Handle<JSFunction> target, |
const char* reason, |
TailCallMode tail_call_mode) { |
if (FLAG_trace_inlining) { |
- base::SmartArrayPointer<char> target_name = |
+ std::unique_ptr<char[]> target_name = |
target->shared()->DebugName()->ToCString(); |
- base::SmartArrayPointer<char> caller_name = |
+ std::unique_ptr<char[]> caller_name = |
caller->shared()->DebugName()->ToCString(); |
if (reason == NULL) { |
const char* call_mode = |
@@ -13093,7 +13094,7 @@ void HTracer::TraceCompilation(CompilationInfo* info) { |
} |
} |
} |
- base::SmartArrayPointer<char> method_name = info->GetDebugName(); |
+ std::unique_ptr<char[]> method_name = info->GetDebugName(); |
name.append(method_name.get()); |
if (info->IsOptimizing()) { |
PrintStringProperty("name", name.c_str()); |