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 |