Commit d7b31606 authored by Clemens Backes's avatar Clemens Backes Committed by Commit Bot

[frame] Simplify WasmFrame::function_index()

Avoid constructing the frame summary (and a std::vector) just for
getting the function index. Just get it from the code instead (where
also the frame summary would get it from).

R=jkummerow@chromium.org

Bug: v8:11074
Change-Id: Ie9957e145d6b641fb211b03ef593d57afd310c91
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2653230Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72427}
parent e6e9721b
...@@ -1825,7 +1825,8 @@ WasmModuleObject WasmFrame::module_object() const { ...@@ -1825,7 +1825,8 @@ WasmModuleObject WasmFrame::module_object() const {
} }
uint32_t WasmFrame::function_index() const { uint32_t WasmFrame::function_index() const {
return FrameSummary::GetSingle(this).AsWasm().function_index(); wasm::WasmCodeRefScope code_ref_scope;
return wasm_code()->index();
} }
Script WasmFrame::script() const { return module_object().script(); } Script WasmFrame::script() const { return module_object().script(); }
......
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