[turbofan] Add WasmObject to the DetectableReceiver type

Otherwise monotonicity of ToObject is violated, as a WasmObject is
currently a Receiver but *not* a DetectableReceiver.

Bug: v8:12185
Change-Id: I04ac78f7635ed54cf7d433231455fc207aa10109
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4150087
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/main@{#85265}
This commit is contained in:
Shu-yu Guo 2023-01-09 17:13:49 -08:00 committed by V8 LUCI CQ
parent ae2e2a5fe0
commit 6491416033

View File

@ -205,7 +205,7 @@ namespace compiler {
V(NonCallableOrNull, kNonCallable | kNull) \
V(DetectableObject, kArray | kFunction | kBoundFunction | \
kOtherCallable | kOtherObject) \
V(DetectableReceiver, kDetectableObject | kProxy) \
V(DetectableReceiver, kDetectableObject | kProxy | kWasmObject) \
V(DetectableReceiverOrNull, kDetectableReceiver | kNull) \
V(Object, kDetectableObject | kOtherUndetectable) \
V(Receiver, kObject | kProxy | kWasmObject) \