Fix some spelling issues (#3385)

Fix some of the spelling issues found by CSpell.
This commit is contained in:
Benbuck Nason
2024-05-05 16:56:48 -07:00
committed by GitHub
parent c0e33f08b0
commit ca61184ced
31 changed files with 102 additions and 99 deletions

View File

@ -1355,7 +1355,7 @@ execute_post_instantiate_functions(WASMModuleInstance *module_inst,
}
}
/* Execute start function for both main insance and sub instance */
/* Execute start function for both main instance and sub instance */
if (start_func && !wasm_call_function(exec_env, start_func, 0, NULL)) {
goto fail;
}
@ -2022,7 +2022,7 @@ wasm_instantiate(WASMModule *module, WASMModuleInstance *parent,
* (module->import_memory_count + module->memory_count);
#if WASM_ENABLE_JIT != 0
/* If the module dosen't have memory, reserve one mem_info space
/* If the module doesn't have memory, reserve one mem_info space
with empty content to align with llvm jit compiler */
if (module_inst_mem_inst_size == 0)
module_inst_mem_inst_size = (uint64)sizeof(WASMMemoryInstance);
@ -3791,13 +3791,13 @@ wasm_get_module_inst_mem_consumption(const WASMModuleInstance *module_inst,
mem_conspn->app_heap_size += memory->heap_data_end - memory->heap_data;
/* size of app heap structure */
mem_conspn->memories_size += mem_allocator_get_heap_struct_size();
/* Module instance structures have been appened into the end of
/* Module instance structures have been appended into the end of
module instance */
}
mem_conspn->tables_size =
sizeof(WASMTableInstance *) * module_inst->table_count;
/* Table instance structures and table elements have been appened into
/* Table instance structures and table elements have been appended into
the end of module instance */
mem_conspn->functions_size =
@ -3805,7 +3805,7 @@ wasm_get_module_inst_mem_consumption(const WASMModuleInstance *module_inst,
mem_conspn->globals_size =
sizeof(WASMGlobalInstance) * module_inst->e->global_count;
/* Global data has been appened into the end of module instance */
/* Global data has been appended into the end of module instance */
mem_conspn->exports_size =
sizeof(WASMExportFuncInstance) * module_inst->export_func_count;