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

Unified Diff: src/compiler/pipeline.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/graph-visualizer.cc ('k') | src/compiler/pipeline-statistics.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index 16501f9708774341486b4e49e094bd29e9e74b8c..949e279a17d7b0a2b401be7bc94cc347e108381d 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -5,6 +5,7 @@
#include "src/compiler/pipeline.h"
#include <fstream> // NOLINT(readability/streams)
+#include <memory>
#include <sstream>
#include "src/base/adapters.h"
@@ -305,7 +306,7 @@ class PipelineData {
private:
Isolate* const isolate_;
CompilationInfo* const info_;
- base::SmartArrayPointer<char> debug_name_;
+ std::unique_ptr<char[]> debug_name_;
Zone* outer_zone_ = nullptr;
ZonePool* const zone_pool_;
PipelineStatistics* pipeline_statistics_ = nullptr;
@@ -532,7 +533,7 @@ PipelineStatistics* CreatePipelineStatistics(CompilationInfo* info,
if (FLAG_trace_turbo) {
TurboJsonFile json_of(info, std::ios_base::trunc);
Handle<Script> script = info->script();
- base::SmartArrayPointer<char> function_name = info->GetDebugName();
+ std::unique_ptr<char[]> function_name = info->GetDebugName();
int pos = info->shared_info()->start_position();
json_of << "{\"function\":\"" << function_name.get()
<< "\", \"sourcePosition\":" << pos << ", \"source\":\"";
« no previous file with comments | « src/compiler/graph-visualizer.cc ('k') | src/compiler/pipeline-statistics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698