Commit 622dc9b7 authored by Tobias Tebbi's avatar Tobias Tebbi Committed by V8 LUCI CQ

[turbofan] fix type assertion for OtherUndetectable type

Undetectables are always callable in V8, so the previous type check
didn't make sense.

Bug: chromium:1267230
Change-Id: Idb557bb05ee4c3b332d1fe61b40557122660261a
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3291303Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77966}
parent 95c1647a
......@@ -154,12 +154,11 @@ macro TestTurbofanBitsetType(
bitsetLow.other_unsigned_big_int_64 | bitsetLow.negative_big_int_63 |
bitsetLow.other_big_int;
}
case (Callable): {
return bitsetLow.other_callable;
}
case (object: JSObject): {
if (object.map.IsUndetectable()) {
return bitsetLow.other_undetectable;
} else if (Is<Callable>(object)) {
return bitsetLow.other_callable;
} else {
return bitsetLow.other_object;
}
......
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