Disallowing legacy EH with new features

Đang mở
#2,333 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
wasm
Lĩnh vực
compilers

Hướng nghiên cứu

Start by reading the linked discussion in WebAssembly/exception-handling#344 and compare how V8, JSC, and SpiderMonkey currently handle legacy exception handling. The issue leaves consensus, the affected features, and the specification approach undecided, so first identify those open questions; completion would require agreement on which combinations are invalid and an agreed specification change.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

In https://github.com/WebAssembly/exception-handling/issues/344 we appeared to achieve consensus to disallow mixing legacy exception handling with new WebAssembly features in the same module. Unfortunately we never voted on that or made it official, and now the repo is archived.

I'd like to revive that discussion and see if we have consensus to make that change. If so, the next question would be how to specify it. I guess the most straightforward thing to do would maintain a list of instructions (and types? general syntax productions?) in the legacy EH spec with language saying it is a validation error if those instructions appear in the same module as the legacy EH instructions. That's not very formal by WebAssembly standards, but maybe that's ok? @rossberg, do you have thoughts about this?

Another question is what features we specifically should disallow using with legacy EH. Here are the features that have reached phase 4 since exception handling reached phase 4:

  • Memory64
  • JSPI
  • Wide Arithmetic
  • Compact Import Section

It's probably not web-compatible to disallow mixing legacy EH and Memory64 or JSPI at this point, but we should check. It probably is web-compatible to disallow mixing legacy EH and Wide Arithmetic and Compact Import Section, but again, we should check.

For reference, here are how the web engines currently gate legacy EH use:

  • V8: CompileError on mixing any use of legacy EH and standard EH in a module.
  • JSC: CompileError on using both try and try_table in a module when both are reachable.
  • SpiderMonkey: No restrictions, but prints a deprecation warning to the console whenever a module using legacy EH is instantiated.
Ngôn ngữ chính
WebAssembly
Star
3.5k
Fork
545
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của WebAssembly/spec

Tất cả issue của WebAssembly/spec

Issue tương tự

Thêm issue về Compilers

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.