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

Unified Diff: src/compiler.h

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/codegen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index ebd608b94428efb10863d67eb8bbbbc299fab355..848aa60f5aaa27452bc88d3cce116dec2fcdfb3b 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -5,6 +5,8 @@
#ifndef V8_COMPILER_H_
#define V8_COMPILER_H_
+#include <memory>
+
#include "src/allocation.h"
#include "src/ast/ast.h"
#include "src/bailout-reason.h"
@@ -427,7 +429,7 @@ class CompilationInfo final {
inlined_functions_.push_back(InlinedFunctionHolder(inlined_function));
}
- base::SmartArrayPointer<char> GetDebugName() const;
+ std::unique_ptr<char[]> GetDebugName() const;
Code::Kind output_code_kind() const {
return Code::ExtractKindFromFlags(code_flags_);
« no previous file with comments | « src/codegen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698