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

Unified Diff: src/compiler/wasm-compiler.cc

Issue 2175233003: Replace SmartPointer<T> with unique_ptr<T> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@smart-array
Patch Set: 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
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index f37599dcb0080382a5b70b1e3e47a53f4a9249cd..014e92e090500ae2fa74383f84495eac8bb96265 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -4,6 +4,8 @@
#include "src/compiler/wasm-compiler.h"
+#include <memory>
+
#include "src/isolate-inl.h"
#include "src/base/platform/elapsed-timer.h"
@@ -3584,7 +3586,7 @@ void WasmCompilationUnit::ExecuteCompilation() {
double decode_ms = 0;
size_t node_count = 0;
- base::SmartPointer<Zone> graph_zone(graph_zone_.Detach());
+ std::unique_ptr<Zone> graph_zone(graph_zone_.release());
SourcePositionTable* source_positions = BuildGraphForWasmFunction(&decode_ms);
if (graph_construction_result_.failed()) {
@@ -3605,7 +3607,7 @@ void WasmCompilationUnit::ExecuteCompilation() {
descriptor =
module_env_->GetI32WasmCallDescriptor(&compilation_zone_, descriptor);
}
- job_.Reset(Pipeline::NewWasmCompilationJob(&info_, jsgraph_->graph(),
+ job_.reset(Pipeline::NewWasmCompilationJob(&info_, jsgraph_->graph(),
descriptor, source_positions));
// The function name {OptimizeGraph()} is misleading but necessary because we

Powered by Google App Engine
This is Rietveld 408576698