Commit fa437b5a authored by QiuJi's avatar QiuJi Committed by V8 LUCI CQ

[wasm-gc] Fix the offset for StoreObjectField with ToTagged

Bug: v8:11757
Change-Id: Ib463eb25631b9be8fc02b8cbc9e1f5984739dac2
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2887023Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74509}
parent 6b90acbc
......@@ -4814,8 +4814,9 @@ class LiftoffCompiler {
ValueKind field_kind = ValueKind::kRef;
LiftoffRegister value = pinned.set(__ GetUnusedRegister(kGpReg, pinned));
LoadNullValue(value.gp(), pinned);
StoreObjectField(obj.gp(), no_reg, WasmStruct::kHeaderSize, value, pinned,
field_kind);
StoreObjectField(obj.gp(), no_reg,
wasm::ObjectAccess::ToTagged(WasmStruct::kHeaderSize),
value, pinned, field_kind);
pinned.clear(value);
}
__ PushRegister(kRef, obj);
......
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