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

Unified Diff: src/runtime/runtime.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/regexp/jsregexp.cc ('k') | src/runtime/runtime-i18n.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime.h
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index b551ff3a7a06105647e5bbf51aae86a1487c74d0..686ae4c1c2eea1f955db536a70f8c14be51d5d8b 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -5,6 +5,8 @@
#ifndef V8_RUNTIME_RUNTIME_H_
#define V8_RUNTIME_RUNTIME_H_
+#include <memory>
+
#include "src/allocation.h"
#include "src/base/platform/time.h"
#include "src/objects.h"
@@ -1096,7 +1098,7 @@ class RuntimeState {
void set_redirected_intrinsic_functions(
Runtime::Function* redirected_intrinsic_functions) {
- redirected_intrinsic_functions_.Reset(redirected_intrinsic_functions);
+ redirected_intrinsic_functions_.reset(redirected_intrinsic_functions);
}
private:
@@ -1104,8 +1106,7 @@ class RuntimeState {
unibrow::Mapping<unibrow::ToUppercase, 128> to_upper_mapping_;
unibrow::Mapping<unibrow::ToLowercase, 128> to_lower_mapping_;
-
- base::SmartArrayPointer<Runtime::Function> redirected_intrinsic_functions_;
+ std::unique_ptr<Runtime::Function[]> redirected_intrinsic_functions_;
friend class Isolate;
friend class Runtime;
« no previous file with comments | « src/regexp/jsregexp.cc ('k') | src/runtime/runtime-i18n.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698