Commit d3be9d17 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Remove dead {GetCodeFromStartAddress} method.

R=clemensh@chromium.org

Change-Id: I1fd7f103968dc0964f44777c6610ed758eb363bf
Reviewed-on: https://chromium-review.googlesource.com/1254129Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56321}
parent 26e6ed33
......@@ -1041,19 +1041,6 @@ void WasmCodeManager::FreeNativeModule(NativeModule* native_module) {
remaining_uncommitted_code_space_.fetch_add(code_size);
}
// TODO(wasm): We can make this more efficient if needed. For
// example, we can preface the first instruction with a pointer to
// the WasmCode. In the meantime, we have a separate API so we can
// easily identify those places where we know we have the first
// instruction PC.
WasmCode* WasmCodeManager::GetCodeFromStartAddress(Address pc) const {
WasmCode* code = LookupCode(pc);
// This method can only be called for valid instruction start addresses.
DCHECK_NOT_NULL(code);
DCHECK_EQ(pc, code->instruction_start());
return code;
}
NativeModule* WasmCodeManager::LookupNativeModule(Address pc) const {
base::LockGuard<base::Mutex> lock(&native_modules_mutex_);
if (lookup_map_.empty()) return nullptr;
......
......@@ -444,7 +444,6 @@ class V8_EXPORT_PRIVATE WasmCodeManager final {
NativeModule* LookupNativeModule(Address pc) const;
WasmCode* LookupCode(Address pc) const;
WasmCode* GetCodeFromStartAddress(Address pc) const;
size_t remaining_uncommitted_code_space() const;
// Add a sample of all module sizes.
......
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