Attention needed from Matthias Liedtke
Manos Koukoutos voted and added 3 comments![Open in Gerrit]()
Votes added by Manos Koukoutos
3 comments
Commit Message
Line 7, Patchset 1:[wasm][shared] Shared Wasm objects in GotoIfCannotBeHeldWeaklyMatthias Liedtke .
resolvedWhat's with them? This message misses something imo. 😊
Maybe
```suggestion
[wasm][shared] Add handling of shared Wasm objects in GotoIfCannotBeHeldWeakly
```
Manos KoukoutosI was trying to fit it in one line, but I guess we can fit another word.
File src/builtins/builtins-collections-gen.cc
Line 495, Patchset 1: GotoIf(InstanceTypeEqual(instance_type, WASM_ARRAY_TYPE),
&check_not_in_shared_space);
GotoIf(InstanceTypeEqual(instance_type, WASM_STRUCT_TYPE),
&check_not_in_shared_space);Matthias Liedtke .
resolvedFor performance reasons, maybe it would be faster to use `FIRST_WASM_OBJECT_TYPE` and `LAST_WASM_OBJECT_TYPE`, similarly to what we are doing in `IsDataRefMap` in `wasm-lowering-reducer.h`, so we only have a single comparison?
Manos Koukoutos Line 504, Patchset 1: TNode<IntPtrT> page_flags = LoadMemoryChunkFlags(CAST(obj));
GotoIf(WordNotEqual(
WordAnd(page_flags,
IntPtrConstant(MemoryChunk::IN_WRITABLE_SHARED_SPACE)),
IntPtrConstant(0)),Matthias Liedtke .
resolvedThis part already appears a few tiems in `code-stub-assembler.cc`. Can we add a utility function on the assembler for this and reuse it here?
Manos Koukoutos
Open in GerritRelated details
Attention is currently required from:
Gerrit-MessageType: comment
Gerrit-Project: v8/v8
Gerrit-Branch: main
Gerrit-Change-Id: Id516b6d5de3eed9c2ac5e4168018d4799b9ce77b
Gerrit-Change-Number: 7652578
Gerrit-PatchSet: 3
Gerrit-Comment-Date: Tue, 10 Mar 2026 15:46:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes