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

Move event section before global section #98

Closed

Description

@rossberg

The proposal currently positions the event section after the global section. However, it is perceivable that under some future extensions, the initialiser expressions for a global might be generalised such that they can contain instructions that refer to exceptions. At the same time, there is no apparent reason to assume that exception defs would ever need to refer to globals.

Thus, in order to keep validation as single-pass as possible, I'd propose switching the order of global and event section in the binary format.

Activity

  1. aheejin commented on Feb 4, 2020

    @aheejin
    Member

    Sounds good. I requested this change in v8. Will change this in LLVM / Binaryen/ Wabt after V8 change is implemented.

  2. aheejin commented on Mar 25, 2020

    @aheejin
    Member

    This has been reflected in:
    LLVM: llvm/llvm-project@f93426c
    V8: v8/v8@92bd781
    Binaryen: WebAssembly/binaryen#2708
    Wabt: WebAssembly/wabt#1374

    Closing this.

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