Commit 924a299e authored by Marja Hölttä's avatar Marja Hölttä Committed by V8 LUCI CQ

[maps] Add check for is_prototype_map being set correctly

Bug: v8:11525
Change-Id: I59fdb446d2b704ef386a8695ee3ddd1b1cdd1dac
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3635724Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80464}
parent 70b83edf
......@@ -52,7 +52,8 @@ RELEASE_ACQUIRE_WEAK_ACCESSORS(Map, raw_transitions,
kTransitionsOrPrototypeInfoOffset)
ACCESSORS_CHECKED2(Map, prototype, HeapObject, kPrototypeOffset, true,
value.IsNull() || value.IsJSReceiver())
value.IsNull() || value.IsJSProxy() ||
(value.IsJSObject() && value.map().is_prototype_map()))
DEF_GETTER(Map, prototype_info, Object) {
Object value = TaggedField<Object, kTransitionsOrPrototypeInfoOffset>::load(
......
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