Skip to content

Commit 959b8fa

Browse files
committed
update comment on asm.js+EMULATED_FUNCTION_POINTERS
1 parent f654fb8 commit 959b8fa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

emscripten.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1282,11 +1282,10 @@ def create_exports(exported_implemented_functions, in_table, function_table_data
12821282
quote = quoter()
12831283
asm_runtime_funcs = create_asm_runtime_funcs()
12841284
all_exported = exported_implemented_functions + asm_runtime_funcs + function_tables(function_table_data)
1285-
# In an asm shared library + emulated function pointers, export all the table so that
1286-
# we can easily find the function pointer for each function. The reason is that for asm, we use
1287-
# JS to add the side module's functions to the shared table with the parent, so they must
1288-
# be exported for that JS to access them. In wasm we don't need that, as the wasm can
1289-
# directly add its functions to the Table.
1285+
# In asm.js + emulated function pointers, export all the table because we use
1286+
# JS to add the asm.js module's functions to the table (which is external
1287+
# in this mode). In wasm, we don't need that since wasm modules can
1288+
# directly add functions to the imported Table.
12901289
if not shared.Settings.WASM and shared.Settings.EMULATED_FUNCTION_POINTERS:
12911290
all_exported += in_table
12921291
exports = []

0 commit comments

Comments
 (0)