Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@miaozhuojun
Copy link

…s used

// OPTZ (memory): 'm3Slots' could still be fused with 'typeStack' if 4 bits were used to indicate: [0,1,2,many]. The many-case
// would scan 'wasmStack' to determine the actual usage count
if (o->m3Slots [i_slot] < 0xFF)
for (u16 i = 0; i < GetTypeNumSlots (i_type); ++i, ++i_slot)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd move the GetTypeNumSlots earlier, like what other functions do.

(It's a small function and it will be either 1 or 2, so no big deal.)

@tommie
Copy link
Contributor

tommie commented Aug 3, 2024

Is there a regression test for this? In what circumstances is it a problem?

Since MarkSlotsAllocated does it this way, this change makes sense to me.

tommie added a commit to tommie/wasm3 that referenced this pull request May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants