From 2dcf67049ef4d2cbcb2a65d367be97ae675f9d8a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 11 Jun 2024 14:13:52 -0700 Subject: wasm2js: Add Table operations (#6650) TableGet, Set, Size, Grow, Fill, Copy. Also move "null" into shared-constants, to make the code more consistent overall. --- src/asmjs/shared-constants.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/asmjs/shared-constants.cpp') 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"); -- cgit v1.2.3