File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,14 @@ addToLibrary({
123123 dbg ( 'store_val_f64 ' + [ loc , value ] ) ;
124124 return value ;
125125 } ,
126+ $memory_grow_pre : ( loc , delta ) => {
127+ dbg ( 'memory_grow_pre ' + [ loc , delta ] ) ;
128+ return delta ;
129+ } ,
130+ $memory_grow_post : ( loc , result ) => {
131+ dbg ( 'memory_grow_post ' + [ loc , result ] ) ;
132+ return result ;
133+ } ,
126134} ) ;
127135
128136extraLibraryFuncs . push (
@@ -153,4 +161,6 @@ extraLibraryFuncs.push(
153161 '$store_val_i64' ,
154162 '$store_val_f32' ,
155163 '$store_val_f64' ,
164+ '$memory_grow_pre' ,
165+ '$memory_grow_post' ,
156166) ;
Original file line number Diff line number Diff line change @@ -811,6 +811,8 @@ def add_standard_wasm_imports(send_items_map):
811811 'store_val_i64' ,
812812 'store_val_f32' ,
813813 'store_val_f64' ,
814+ 'memory_grow_pre' ,
815+ 'memory_grow_post' ,
814816 ]
815817
816818 if settings .SPLIT_MODULE and settings .ASYNCIFY == 2 :
You can’t perform that action at this time.
0 commit comments