Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Question about tail-invocation stack value length assertion (item 3) #10

Closed

Description

@jacobmischka

I'm reading through the spec, and https://github.com/WebAssembly/tail-call/blame/master/document/core/exec/instructions.rst#L1134 says that there must be at least m values on the stack, but then proceeds to pop n items from it

Should that m be n? Or am I misunderstanding something?

Activity

  1. rossberg commented on Apr 27, 2020

    @rossberg
    Member

    That's a typo, the assertion should have said n. Fixed now.

  2. jacobmischka commented on Apr 27, 2020

    @jacobmischka
    Author

    Thanks! Should the frame subscript here still be m? Or should that be n as well?

    https://github.com/WebAssembly/tail-call/blame/master/document/core/exec/instructions.rst#L1155

  3. rossberg commented on Apr 27, 2020

    @rossberg
    Member

    No, that must match the return arity of the function called.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions