Commit b0820c45 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[wasm] NativeModule::module() should just return its module

No need to go via the {ModuleEnv} in the {CompilationState}.

R=mstarzinger@chromium.org

Change-Id: I11ff647824ad107131ce329453b365d6ecaec7fb
Reviewed-on: https://chromium-review.googlesource.com/1118561Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#54102}
parent c908496b
......@@ -663,10 +663,6 @@ Address NativeModule::AllocateForCode(size_t size) {
return mem.start;
}
const WasmModule* NativeModule::module() const {
return GetModuleEnv(compilation_state_.get())->module;
}
WasmCode* NativeModule::Lookup(Address pc) const {
if (owned_code_.empty()) return nullptr;
auto iter = std::upper_bound(owned_code_.begin(), owned_code_.end(), pc,
......
......@@ -321,7 +321,7 @@ class V8_EXPORT_PRIVATE NativeModule final {
void set_wire_bytes(OwnedVector<const byte> wire_bytes) {
wire_bytes_ = std::move(wire_bytes);
}
const WasmModule* module() const;
const WasmModule* module() const { return module_.get(); }
WasmCode* Lookup(Address) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment