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

[wasm] Restrict expected frame types for {Code} objects.

The involved code kinds should no longer appear as part of frames for
{Code} objects since they have been moved to {WasmCode} for quite a
while now.

R=jkummerow@chromium.org

Change-Id: Iadc4ef668ebb56bf418fb706c3f118d9c3b553bd
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1598755
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61347}
parent 0553ebda
...@@ -556,17 +556,16 @@ StackFrame::Type StackFrame::ComputeType(const StackFrameIteratorBase* iterator, ...@@ -556,17 +556,16 @@ StackFrame::Type StackFrame::ComputeType(const StackFrameIteratorBase* iterator,
return BUILTIN; return BUILTIN;
case Code::OPTIMIZED_FUNCTION: case Code::OPTIMIZED_FUNCTION:
return OPTIMIZED; return OPTIMIZED;
case Code::WASM_FUNCTION:
case Code::WASM_TO_CAPI_FUNCTION:
return WASM_COMPILED;
case Code::WASM_TO_JS_FUNCTION:
return WASM_TO_JS;
case Code::JS_TO_WASM_FUNCTION: case Code::JS_TO_WASM_FUNCTION:
return JS_TO_WASM; return JS_TO_WASM;
case Code::WASM_INTERPRETER_ENTRY:
return WASM_INTERPRETER_ENTRY;
case Code::C_WASM_ENTRY: case Code::C_WASM_ENTRY:
return C_WASM_ENTRY; return C_WASM_ENTRY;
case Code::WASM_FUNCTION:
case Code::WASM_TO_CAPI_FUNCTION:
case Code::WASM_TO_JS_FUNCTION:
case Code::WASM_INTERPRETER_ENTRY:
// Never appear as on-heap {Code} objects.
UNREACHABLE();
default: default:
// All other types should have an explicit marker // All other types should have an explicit marker
break; break;
......
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