Skip to content

Commit 725f76d

Browse files
authored
[NFC] Simplify TypeGraphWalker in wasm-type.cpp (WebAssembly#7143)
Co-locate the declaration and implementation of TypeGraphWalkerBase and its subtypes in wasm-type.cpp and simplify the implementation. Remove the preVisit and postVisit tasks for both Types and HeapTypes since overriding scanType and scanHeapType is sufficient for all users. Stop scanning the HeapTypes in reference types because a follow-on change (WebAssembly#7142) will make that much more complicated, and it turns out that it is not necessary.
1 parent e9f693d commit 725f76d

File tree

1 file changed

+139
-213
lines changed

1 file changed

+139
-213
lines changed

0 commit comments

Comments
 (0)