[wasm-gc] Fix a bug in CallRefIC

Bug: v8:7748

Change-Id: I7884b548276372e5dfa130fbe39d29f3cca4f530
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3310882
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78205}
This commit is contained in:
Manos Koukoutos 2021-12-02 09:15:34 +00:00 committed by V8 LUCI CQ
parent 56f5d5c23c
commit c1e3a5dba2

View File

@ -513,7 +513,7 @@ builtin CallRefIC(
if (entries.objects[i] == funcref) {
// Polymorphic hit.
const count = UnsafeCast<Smi>(entries.objects[i + 1]) + SmiConstant(1);
vector.objects[i + 1] = count;
entries.objects[i + 1] = count;
return GetTargetAndInstance(funcref);
}
}