Commit f4edc9cc authored by Junliang Yan's avatar Junliang Yan Committed by V8 LUCI CQ

ppc64: [baseline] Only push marker on non-JS frame

Change-Id: Iaef2492a49701d1cd57d0a90fba8e260f60e9739
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3632511Reviewed-by: 's avatarMilad Farazmand <mfarazma@redhat.com>
Commit-Queue: Junliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#80403}
parent f664ed80
...@@ -1253,11 +1253,17 @@ void TurboAssembler::EnterFrame(StackFrame::Type type, ...@@ -1253,11 +1253,17 @@ void TurboAssembler::EnterFrame(StackFrame::Type type,
// This path cannot rely on ip containing code entry. // This path cannot rely on ip containing code entry.
PushCommonFrame(); PushCommonFrame();
LoadConstantPoolPointerRegister(); LoadConstantPoolPointerRegister();
mov(ip, Operand(StackFrame::TypeToMarker(type))); if (!StackFrame::IsJavaScript(type)) {
push(ip); mov(ip, Operand(StackFrame::TypeToMarker(type)));
push(ip);
}
} else { } else {
mov(ip, Operand(StackFrame::TypeToMarker(type))); Register scratch = no_reg;
PushCommonFrame(ip); if (!StackFrame::IsJavaScript(type)) {
scratch = ip;
mov(scratch, Operand(StackFrame::TypeToMarker(type)));
}
PushCommonFrame(scratch);
} }
#if V8_ENABLE_WEBASSEMBLY #if V8_ENABLE_WEBASSEMBLY
if (type == StackFrame::WASM) Push(kWasmInstanceRegister); if (type == StackFrame::WASM) Push(kWasmInstanceRegister);
......
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