Skip to content

Commit 6aa223d

Browse files
authored
Stop pretending to support extended-const proposal (#4258)
As far as I know, we don't implement the proposal at all. ``` spacetanuki% wasm2wat --enable-all data.28.wasm (module (memory (;0;) 1) (data (;0;) (i32.const 42 i32.const 0 i32.sub) "")) spacetanuki% toywasm --load data.28.wasm spacetanuki% ~/git/wasm-micro-runtime/product-mini/platforms/darwin/b.classic/iwasm data.28.wasm WASM module load failed: illegal opcode or constant expression required or type mismatch spacetanuki% ``` data.28.wasm in the above example is a binary version of: https://github.com/WebAssembly/extended-const/blob/8d4f6aa2b00a8e7c0174410028625c6a176db8a1/test/core/data.wast#L184-L187
1 parent 0a8994a commit 6aa223d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

build-scripts/config_common.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,6 @@ endif ()
677677
message (
678678
"-- About Wasm Proposals:\n"
679679
" Always-on:\n"
680-
" \"Extended Constant Expressions\"\n"
681680
" \"Multi-value\"\n"
682681
" \"Non-trapping float-to-int conversions\"\n"
683682
" \"Sign-extension operators\"\n"
@@ -698,6 +697,7 @@ message (
698697
" \"Branch Hinting\"\n"
699698
" \"Custom Annotation Syntax in the Text Format\"\n"
700699
" \"Exception handling\"\n"
700+
" \"Extended Constant Expressions\"\n"
701701
" \"Import/Export of Mutable Globals\"\n"
702702
" \"JS String Builtins\"\n"
703703
" \"Relaxed SIMD\"\n"

doc/stability_wasm_proposals.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Users can turn those features on or off by using compilation options. If a relev
1515
| Proposal | >= Phase 4 | Compilation Option |
1616
| ------------------------------------- | ---------- | ------------------------ |
1717
| Bulk memory operations | Yes | `WAMR_BUILD_BULK_MEMORY` |
18-
| Extended Constant Expressions | Yes | N/A |
1918
| Fixed-width SIMD[^1] | Yes | `WAMR_BUILD_SIMD` |
2019
| Multi-value | Yes | N/A |
2120
| Non-trapping float-to-int conversions | Yes | N/A |
@@ -54,6 +53,7 @@ Users can turn those features on or off by using compilation options. If a relev
5453
| Branch Hinting | Yes |
5554
| Custom Annotation Syntax in the Text Format | Yes |
5655
| Exception handling[^5] | Yes |
56+
| Extended Constant Expressions | Yes |
5757
| Import/Export of Mutable Globals | Yes |
5858
| JS String Builtins | Yes |
5959
| Relaxed SIMD | Yes |

product-mini/platforms/common/wasm_proposal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ wasm_proposal_print_status(void)
1212
{
1313
printf("About Wasm Proposals:\n");
1414
printf(" Always-on:\n");
15-
printf(" - Extended Constant Expressions\n");
1615
printf(" - Multi-value\n");
1716
printf(" - Non-trapping float-to-int conversions\n");
1817
printf(" - Sign-extension operators\n");
@@ -44,6 +43,7 @@ wasm_proposal_print_status(void)
4443
printf(" - Branch Hinting\n");
4544
printf(" - Custom Annotation Syntax in the Text Format\n");
4645
printf(" - Exception handling\n");
46+
printf(" - Extended Constant Expressions\n");
4747
printf(" - Import/Export of Mutable Globals\n");
4848
printf(" - JS String Builtins\n");
4949
printf(" - Relaxed SIMD\n");

0 commit comments

Comments
 (0)