| Index: src/codegen.cc
|
| diff --git a/src/codegen.cc b/src/codegen.cc
|
| index 78a4532ab55074f940f2ab976faafa1b5905ef1f..e47db10f70a67695ce52a7f674cf3c0b11cf8630 100644
|
| --- a/src/codegen.cc
|
| +++ b/src/codegen.cc
|
| @@ -7,6 +7,9 @@
|
| #if defined(V8_OS_AIX)
|
| #include <fenv.h> // NOLINT(build/c++11)
|
| #endif
|
| +
|
| +#include <memory>
|
| +
|
| #include "src/ast/prettyprinter.h"
|
| #include "src/bootstrapper.h"
|
| #include "src/compiler.h"
|
| @@ -97,7 +100,7 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) {
|
| }
|
|
|
| if (FLAG_trace_codegen || print_ast) {
|
| - base::SmartArrayPointer<char> name = info->GetDebugName();
|
| + std::unique_ptr<char[]> name = info->GetDebugName();
|
| PrintF("[generating %s code for %s function: %s]\n", kind, ftype,
|
| name.get());
|
| }
|
| @@ -146,7 +149,7 @@ void CodeGenerator::PrintCode(Handle<Code> code, CompilationInfo* info) {
|
| : (FLAG_print_code || (info->IsStub() && FLAG_print_code_stubs) ||
|
| (info->IsOptimizing() && FLAG_print_opt_code));
|
| if (print_code) {
|
| - base::SmartArrayPointer<char> debug_name = info->GetDebugName();
|
| + std::unique_ptr<char[]> debug_name = info->GetDebugName();
|
| CodeTracer::Scope tracing_scope(info->isolate()->GetCodeTracer());
|
| OFStream os(tracing_scope.file());
|
|
|
|
|