Skip to content

Stack switching validation#8467

Open
tlively wants to merge 1 commit intomainfrom
fix-resume-handler-validation
Open

Stack switching validation#8467
tlively wants to merge 1 commit intomainfrom
fix-resume-handler-validation

Conversation

@tlively
Copy link
Member

@tlively tlively commented Mar 13, 2026

Now that we want to fuzz stack switching against a real implementation in V8, add proper validation. Copy in the stack switching tests, commenting out parts we do not handle for other reasons, to test that the new validation logic is correct. Fix DAE2 and a couple of stack switching tests that were not actually valid to begin with.

Now that we want to fuzz stack switching against a real implementation in V8, add proper validation. Copy in the stack switching tests, commenting out parts we do not handle for other reasons, to test that the new validation logic is correct. Fix DAE2 and a couple of stack switching tests that were not actually valid to begin with.
@tlively tlively requested a review from kripken March 13, 2026 23:49
// and $ct_handler must be cont [t2_tag*] -> [sig.results]
// But we cannot check this here because we do not know what type the
// block named $label expects. Save the tag to check when we visit the
// block later.
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we could make all this simpler by pre-visiting blocks. But I guess we can consider that separately.

;; OPEN_WORLD: (tag $tag (type $none))
(tag $tag (type $none))
;; OPEN_WORLD: (tag $tag (type $2) (result i32))
(tag $tag (result i32))
Copy link
Member

Choose a reason for hiding this comment

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

Why did this change? I don't see how the result is used below.

@kripken
Copy link
Member

kripken commented Mar 16, 2026

lgtm otherwise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants