Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: src/crankshaft/hydrogen.cc

Issue 2173403002: Replace SmartArrayPointer<T> with unique_ptr<T[]> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/pipeline-statistics.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « src/compiler/pipeline-statistics.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698