diff options
author | Alon Zakai <azakai@google.com> | 2024-06-11 14:13:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 14:13:52 -0700 |
commit | 2dcf67049ef4d2cbcb2a65d367be97ae675f9d8a (patch) | |
tree | 6b2193693bfa44034baff985e8ccf38d3fa4af0a /src/asmjs/shared-constants.cpp | |
parent | cdd94a01ad02e944eaa9ba5e20a1129bef9ac305 (diff) | |
download | binaryen-2dcf67049ef4d2cbcb2a65d367be97ae675f9d8a.tar.gz binaryen-2dcf67049ef4d2cbcb2a65d367be97ae675f9d8a.tar.bz2 binaryen-2dcf67049ef4d2cbcb2a65d367be97ae675f9d8a.zip |
wasm2js: Add Table operations (#6650)
TableGet, Set, Size, Grow, Fill, Copy.
Also move "null" into shared-constants, to make the code
more consistent overall.
Diffstat (limited to 'src/asmjs/shared-constants.cpp')
-rw-r--r-- | src/asmjs/shared-constants.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/asmjs/shared-constants.cpp b/src/asmjs/shared-constants.cpp index 57b9c4f87..bd924f179 100644 --- a/src/asmjs/shared-constants.cpp +++ b/src/asmjs/shared-constants.cpp @@ -62,6 +62,7 @@ IString ENV("env"); IString STACKTOP("STACKTOP"); IString STACK_MAX("STACK_MAX"); IString INSTRUMENT("instrument"); +IString LENGTH("length"); IString MATH_IMUL("Math_imul"); IString MATH_ABS("Math_abs"); IString MATH_CEIL("Math_ceil"); @@ -111,6 +112,9 @@ IString SCRATCH_STORE_F64("wasm2js_scratch_store_f64"); IString MEMORY_INIT("wasm2js_memory_init"); IString MEMORY_FILL("wasm2js_memory_fill"); IString MEMORY_COPY("wasm2js_memory_copy"); +IString TABLE_GROW("wasm2js_table_grow"); +IString TABLE_FILL("wasm2js_table_fill"); +IString TABLE_COPY("wasm2js_table_copy"); IString DATA_DROP("wasm2js_data_drop"); IString ATOMIC_WAIT_I32("wasm2js_atomic_wait_i32"); IString ATOMIC_RMW_I64("wasm2js_atomic_rmw_i64"); |