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_; |