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

Unified Diff: src/code-stubs-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/base/smart-pointers.h ('k') | src/codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs-hydrogen.cc
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
index 3f3b2c157f8d144d237be64194e0d78c601b0a8f..2791a06fef766aa52428120a581b5a2e300a8d14 100644
--- a/src/code-stubs-hydrogen.cc
+++ b/src/code-stubs-hydrogen.cc
@@ -4,6 +4,8 @@
#include "src/code-stubs.h"
+#include <memory>
+
#include "src/bailout-reason.h"
#include "src/crankshaft/hydrogen.h"
#include "src/crankshaft/lithium.h"
@@ -42,7 +44,7 @@ class CodeStubGraphBuilderBase : public HGraphBuilder {
descriptor_(code_stub),
context_(NULL) {
int parameter_count = GetParameterCount();
- parameters_.Reset(new HParameter*[parameter_count]);
+ parameters_.reset(new HParameter*[parameter_count]);
}
virtual bool BuildGraph();
@@ -89,7 +91,7 @@ class CodeStubGraphBuilderBase : public HGraphBuilder {
HValue* BuildToPrimitive(HValue* input, HValue* input_map);
private:
- base::SmartArrayPointer<HParameter*> parameters_;
+ std::unique_ptr<HParameter* []> parameters_;
HValue* arguments_length_;
CompilationInfo* info_;
CodeStub* code_stub_;
« no previous file with comments | « src/base/smart-pointers.h ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698