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({
123
123
dbg ( 'store_val_f64 ' + [ loc , value ] ) ;
124
124
return value ;
125
125
} ,
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
+ } ,
126
134
} ) ;
127
135
128
136
extraLibraryFuncs . push (
@@ -153,4 +161,6 @@ extraLibraryFuncs.push(
153
161
'$store_val_i64' ,
154
162
'$store_val_f32' ,
155
163
'$store_val_f64' ,
164
+ '$memory_grow_pre' ,
165
+ '$memory_grow_post' ,
156
166
) ;
Original file line number Diff line number Diff line change @@ -811,6 +811,8 @@ def add_standard_wasm_imports(send_items_map):
811
811
'store_val_i64' ,
812
812
'store_val_f32' ,
813
813
'store_val_f64' ,
814
+ 'memory_grow_pre' ,
815
+ 'memory_grow_post' ,
814
816
]
815
817
816
818
if settings .SPLIT_MODULE and settings .ASYNCIFY == 2 :
You can’t perform that action at this time.
0 commit comments