diff --git a/src/isolate.cc b/src/isolate.cc index 0ddff20159..3c66ceb162 100644 --- a/src/isolate.cc +++ b/src/isolate.cc @@ -3007,14 +3007,9 @@ bool Isolate::Init(StartupDeserializer* des) { } // Setup the wasm engine. Currently, there's one per Isolate. - const size_t max_code_size = - kRequiresCodeRange - ? std::min(kMaxWasmCodeMemory, - heap_.memory_allocator()->code_range()->size()) - : kMaxWasmCodeMemory; wasm_engine_.reset(new wasm::WasmEngine( std::unique_ptr(new wasm::WasmCodeManager( - reinterpret_cast(this), max_code_size)))); + reinterpret_cast(this), kMaxWasmCodeMemory)))); wasm_engine_->memory_tracker()->SetAllocationResultHistogram( counters()->wasm_memory_allocation_result()); wasm_engine_->memory_tracker()->SetAddressSpaceUsageHistogram(