Fix some more spelling issues (#3393)
This commit is contained in:
@ -1584,7 +1584,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
|
||||
uint32 *tgtframe_sp = tgtframe->frame_sp;
|
||||
|
||||
/* frame sp of tgtframe points to catched exception */
|
||||
/* frame sp of tgtframe points to caught exception */
|
||||
exception_tag_index = *((uint32 *)tgtframe_sp);
|
||||
tgtframe_sp++;
|
||||
|
||||
@ -1655,7 +1655,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
* BLOCK, IF and LOOP do not contain handlers and
|
||||
* cannot catch exceptions.
|
||||
* blocks marked as CATCH or
|
||||
* CATCH_ALL did already caugth an exception and can
|
||||
* CATCH_ALL did already caught an exception and can
|
||||
* only be a target for RETHROW, but cannot catch an
|
||||
* exception again
|
||||
*/
|
||||
@ -1787,7 +1787,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
}
|
||||
handler_number++;
|
||||
}
|
||||
/* exception not catched in this frame */
|
||||
/* exception not caught in this frame */
|
||||
break;
|
||||
}
|
||||
case LABEL_TYPE_FUNCTION:
|
||||
@ -6411,7 +6411,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
}
|
||||
}
|
||||
/*
|
||||
* excange the thrown exception (index valid in submodule)
|
||||
* exchange the thrown exception (index valid in submodule)
|
||||
* with the imported exception index (valid in this module)
|
||||
* if the module did not import the exception,
|
||||
* that results in a "INVALID_TAGINDEX", that triggers
|
||||
@ -6468,7 +6468,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||
goto find_a_catch_handler;
|
||||
}
|
||||
|
||||
/* when throw hits the end of a function it signalles with a
|
||||
/* when throw hits the end of a function it signals with a
|
||||
* "uncaught wasm exception" trap */
|
||||
if (has_exception
|
||||
&& strstr(uncaught_exception, "uncaught wasm exception")) {
|
||||
|
||||
@ -1143,14 +1143,14 @@ load_init_expr(WASMModule *module, const uint8 **p_buf, const uint8 *buf_end,
|
||||
case WASM_OP_ANY_CONVERT_EXTERN:
|
||||
{
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"unsuppoted constant expression of "
|
||||
"unsupported constant expression of "
|
||||
"extern.internalize");
|
||||
goto fail;
|
||||
}
|
||||
case WASM_OP_EXTERN_CONVERT_ANY:
|
||||
{
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"unsuppoted constant expression of "
|
||||
"unsupported constant expression of "
|
||||
"extern.externalize");
|
||||
goto fail;
|
||||
}
|
||||
@ -5433,7 +5433,7 @@ orcjit_thread_callback(void *arg)
|
||||
uint32 i;
|
||||
|
||||
#if WASM_ENABLE_FAST_JIT != 0
|
||||
/* Compile fast jit funcitons of this group */
|
||||
/* Compile fast jit functions of this group */
|
||||
for (i = group_idx; i < func_count; i += group_stride) {
|
||||
if (!jit_compiler_compile(module, i + module->import_function_count)) {
|
||||
LOG_ERROR("failed to compile fast jit function %u\n", i);
|
||||
@ -5547,7 +5547,7 @@ orcjit_thread_callback(void *arg)
|
||||
i + j * group_stride + module->import_function_count,
|
||||
(void *)func_addr);
|
||||
|
||||
/* Try to switch to call this llvm jit funtion instead of
|
||||
/* Try to switch to call this llvm jit function instead of
|
||||
fast jit function from fast jit jitted code */
|
||||
jit_compiler_set_call_to_llvm_jit(
|
||||
module,
|
||||
@ -6431,7 +6431,7 @@ check_wasi_abi_compatibility(const WASMModule *module,
|
||||
{
|
||||
/**
|
||||
* be careful with:
|
||||
* wasi compatiable modules(command/reactor) which don't import any wasi
|
||||
* wasi compatible modules(command/reactor) which don't import any wasi
|
||||
* APIs. Usually, a command has to import a "prox_exit" at least, but a
|
||||
* reactor can depend on nothing. At the same time, each has its own entry
|
||||
* point.
|
||||
@ -6508,7 +6508,7 @@ check_wasi_abi_compatibility(const WASMModule *module,
|
||||
}
|
||||
}
|
||||
|
||||
/* filter out non-wasi compatiable modules */
|
||||
/* filter out non-wasi compatible modules */
|
||||
if (!module->import_wasi_api && !start && !initialize) {
|
||||
return true;
|
||||
}
|
||||
@ -6521,7 +6521,7 @@ check_wasi_abi_compatibility(const WASMModule *module,
|
||||
|
||||
/*
|
||||
* there is at least one of `_start` and `_initialize` in below cases.
|
||||
* according to the assumption, they should be all wasi compatiable
|
||||
* according to the assumption, they should be all wasi compatible
|
||||
*/
|
||||
|
||||
#if WASM_ENABLE_MULTI_MODULE != 0
|
||||
@ -6786,7 +6786,7 @@ wasm_loader_unload(WASMModule *module)
|
||||
WASMRegisteredModule *next = bh_list_elem_next(node);
|
||||
bh_list_remove(module->import_module_list, node);
|
||||
/*
|
||||
* unload(sub_module) will be trigged during runtime_destroy().
|
||||
* unload(sub_module) will be triggered during runtime_destroy().
|
||||
* every module in the global module list will be unloaded one by
|
||||
* one. so don't worry.
|
||||
*/
|
||||
@ -7049,9 +7049,9 @@ wasm_loader_find_block_addr(WASMExecEnv *exec_env, BlockAddr *block_addr_cache,
|
||||
break;
|
||||
|
||||
case WASM_OP_BR_TABLE:
|
||||
read_leb_uint32(p, p_end, count); /* lable num */
|
||||
read_leb_uint32(p, p_end, count); /* label num */
|
||||
#if WASM_ENABLE_FAST_INTERP != 0
|
||||
for (i = 0; i <= count; i++) /* lableidxs */
|
||||
for (i = 0; i <= count; i++) /* labelidxs */
|
||||
skip_leb_uint32(p, p_end);
|
||||
#else
|
||||
p += count + 1;
|
||||
@ -7062,7 +7062,7 @@ wasm_loader_find_block_addr(WASMExecEnv *exec_env, BlockAddr *block_addr_cache,
|
||||
|
||||
#if WASM_ENABLE_FAST_INTERP == 0
|
||||
case EXT_OP_BR_TABLE_CACHE:
|
||||
read_leb_uint32(p, p_end, count); /* lable num */
|
||||
read_leb_uint32(p, p_end, count); /* label num */
|
||||
while (*p == WASM_OP_NOP)
|
||||
p++;
|
||||
break;
|
||||
@ -7086,7 +7086,7 @@ wasm_loader_find_block_addr(WASMExecEnv *exec_env, BlockAddr *block_addr_cache,
|
||||
#if WASM_ENABLE_REF_TYPES == 0 && WASM_ENABLE_GC == 0
|
||||
u8 = read_uint8(p); /* 0x00 */
|
||||
#else
|
||||
skip_leb_uint32(p, p_end); /* talbeidx */
|
||||
skip_leb_uint32(p, p_end); /* tableidx */
|
||||
#endif
|
||||
break;
|
||||
|
||||
@ -7661,7 +7661,7 @@ wasm_loader_find_block_addr(WASMExecEnv *exec_env, BlockAddr *block_addr_cache,
|
||||
{
|
||||
WASMDebugInstance *debug_instance =
|
||||
wasm_exec_env_get_instance(exec_env);
|
||||
char orignal_opcode[1];
|
||||
char original_opcode[1];
|
||||
uint64 size = 1;
|
||||
WASMModuleInstance *module_inst =
|
||||
(WASMModuleInstance *)exec_env->module_inst;
|
||||
@ -7670,12 +7670,12 @@ wasm_loader_find_block_addr(WASMExecEnv *exec_env, BlockAddr *block_addr_cache,
|
||||
: ~0;
|
||||
if (debug_instance) {
|
||||
if (wasm_debug_instance_get_obj_mem(debug_instance, offset,
|
||||
orignal_opcode, &size)
|
||||
original_opcode, &size)
|
||||
&& size == 1) {
|
||||
LOG_VERBOSE("WASM loader find OP_BREAK , recover it "
|
||||
"with %02x: ",
|
||||
orignal_opcode[0]);
|
||||
opcode = orignal_opcode[0];
|
||||
original_opcode[0]);
|
||||
opcode = original_opcode[0];
|
||||
goto op_break_retry;
|
||||
}
|
||||
}
|
||||
@ -9373,7 +9373,7 @@ wasm_loader_get_const_offset(WASMLoaderContext *ctx, uint8 type, void *value,
|
||||
sizeof(float64));
|
||||
ctx->const_cell_num += 2;
|
||||
/* The const buf will be reversed, we use the second cell */
|
||||
/* of the i64/f64 const so the finnal offset is corrent */
|
||||
/* of the i64/f64 const so the final offset is correct */
|
||||
operand_offset++;
|
||||
break;
|
||||
case VALUE_TYPE_I64:
|
||||
@ -9405,7 +9405,7 @@ wasm_loader_get_const_offset(WASMLoaderContext *ctx, uint8 type, void *value,
|
||||
LOG_OP("#### new const [%d]: %ld\n", ctx->num_const,
|
||||
(int64)c->value.i64);
|
||||
}
|
||||
/* use negetive index for const */
|
||||
/* use negative index for const */
|
||||
operand_offset = -(operand_offset + 1);
|
||||
*offset = operand_offset;
|
||||
return true;
|
||||
@ -11300,7 +11300,7 @@ re_scan:
|
||||
* CATCH Blocks */
|
||||
RESET_STACK();
|
||||
|
||||
/* push types on the stack according to catched type */
|
||||
/* push types on the stack according to caught type */
|
||||
if (BLOCK_HAS_PARAM(new_block_type)) {
|
||||
for (i = 0; i < new_block_type.u.type->param_count; i++)
|
||||
PUSH_TYPE(new_block_type.u.type->types[i]);
|
||||
@ -13643,7 +13643,7 @@ re_scan:
|
||||
|
||||
if (u32 >= module->data_seg_count) {
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"unknown data segement");
|
||||
"unknown data segment");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
@ -13662,7 +13662,7 @@ re_scan:
|
||||
|
||||
if (u32 >= module->table_seg_count) {
|
||||
set_error_buf(error_buf, error_buf_size,
|
||||
"unknown element segement");
|
||||
"unknown element segment");
|
||||
goto fail;
|
||||
}
|
||||
if (!wasm_reftype_is_subtype_of(
|
||||
|
||||
@ -2311,7 +2311,7 @@ orcjit_thread_callback(void *arg)
|
||||
uint32 i;
|
||||
|
||||
#if WASM_ENABLE_FAST_JIT != 0
|
||||
/* Compile fast jit funcitons of this group */
|
||||
/* Compile fast jit functions of this group */
|
||||
for (i = group_idx; i < func_count; i += group_stride) {
|
||||
if (!jit_compiler_compile(module, i + module->import_function_count)) {
|
||||
LOG_ERROR("failed to compile fast jit function %u\n", i);
|
||||
|
||||
@ -86,7 +86,7 @@ typedef enum WASMOpcode {
|
||||
WASM_OP_I32_STORE8 = 0x3a, /* i32.store8 */
|
||||
WASM_OP_I32_STORE16 = 0x3b, /* i32.store16 */
|
||||
WASM_OP_I64_STORE8 = 0x3c, /* i64.store8 */
|
||||
WASM_OP_I64_STORE16 = 0x3d, /* i64.sotre16 */
|
||||
WASM_OP_I64_STORE16 = 0x3d, /* i64.store16 */
|
||||
WASM_OP_I64_STORE32 = 0x3e, /* i64.store32 */
|
||||
WASM_OP_MEMORY_SIZE = 0x3f, /* memory.size */
|
||||
WASM_OP_MEMORY_GROW = 0x40, /* memory.grow */
|
||||
@ -325,7 +325,7 @@ typedef enum WASMGCEXTOpcode {
|
||||
WASM_OP_I31_GET_S = 0x1D, /* i31.get_s */
|
||||
WASM_OP_I31_GET_U = 0x1E, /* i31.get_u */
|
||||
|
||||
/* stringref related opcoded */
|
||||
/* stringref related opcodes */
|
||||
WASM_OP_STRING_NEW_UTF8 = 0x80, /* string.new_utf8 */
|
||||
WASM_OP_STRING_NEW_WTF16 = 0x81, /* string.new_wtf16 */
|
||||
WASM_OP_STRING_CONST = 0x82, /* string.const */
|
||||
|
||||
Reference in New Issue
Block a user