Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 15bddc2

Browse filesBrowse files
authored
Update autodebug to handle new memory growth instrumentation in Binaryen (#24467)
This was added in WebAssembly/binaryen#7388
1 parent d704c56 commit 15bddc2
Copy full SHA for 15bddc2

File tree

Expand file treeCollapse file tree

2 files changed

+12
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+12
-0
lines changed

‎src/lib/libautodebug.js

Copy file name to clipboardExpand all lines: src/lib/libautodebug.js
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

128136
extraLibraryFuncs.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
);

‎tools/emscripten.py

Copy file name to clipboardExpand all lines: tools/emscripten.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.