fix: correct typos and improve comments across multiple files by codespell (#4116)

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
Huang Qi
2025-03-07 08:21:54 +08:00
committed by GitHub
parent 73998e4c85
commit 412631ac13
108 changed files with 215 additions and 215 deletions

View File

@ -1934,7 +1934,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
UNWIND_CSP(relative_depth, LABEL_TYPE_FUNCTION);
/* push exception values for catch
* The values are copied to the CALLER FRAME
* (prev_frame->sp) same behvior ad WASM_OP_RETURN
* (prev_frame->sp) same behavior ad WASM_OP_RETURN
*/
if (cell_num_to_copy > 0) {
word_copy(prev_frame->sp,
@ -4963,7 +4963,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of i32 */
/* numeric instructions of i32 */
HANDLE_OP(WASM_OP_I32_CLZ)
{
DEF_OP_BIT_COUNT(uint32, I32, clz32);
@ -5120,7 +5120,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of i64 */
/* numeric instructions of i64 */
HANDLE_OP(WASM_OP_I64_CLZ)
{
DEF_OP_BIT_COUNT(uint64, I64, clz64);
@ -5277,7 +5277,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of f32 */
/* numeric instructions of f32 */
HANDLE_OP(WASM_OP_F32_ABS)
{
DEF_OP_MATH(float32, F32, fabsf);
@ -5381,7 +5381,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of f64 */
/* numeric instructions of f64 */
HANDLE_OP(WASM_OP_F64_ABS)
{
DEF_OP_MATH(float64, F64, fabs);
@ -6680,7 +6680,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
tag++, t++) {
/* compare the module and the external index with the
* imort tag data */
* import tag data */
if ((cur_func->u.func_import->import_module
== tag->u.tag_import->import_module)
&& (ext_exception

View File

@ -4149,7 +4149,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of i32 */
/* numeric instructions of i32 */
HANDLE_OP(WASM_OP_I32_CLZ)
{
DEF_OP_BIT_COUNT(uint32, I32, clz32);
@ -4319,7 +4319,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of i64 */
/* numeric instructions of i64 */
HANDLE_OP(WASM_OP_I64_CLZ)
{
DEF_OP_BIT_COUNT(uint64, I64, clz64);
@ -4476,7 +4476,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of f32 */
/* numeric instructions of f32 */
HANDLE_OP(WASM_OP_F32_ABS)
{
DEF_OP_MATH(float32, F32, fabsf);
@ -4581,7 +4581,7 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
HANDLE_OP_END();
}
/* numberic instructions of f64 */
/* numeric instructions of f64 */
HANDLE_OP(WASM_OP_F64_ABS)
{
DEF_OP_MATH(float64, F64, fabs);

View File

@ -399,7 +399,7 @@ check_array_type(const WASMModule *module, uint32 type_index, char *error_buf,
return false;
}
if (module->types[type_index]->type_flag != WASM_TYPE_ARRAY) {
set_error_buf(error_buf, error_buf_size, "unkown array type");
set_error_buf(error_buf, error_buf_size, "unknown array type");
return false;
}
@ -954,7 +954,7 @@ load_init_expr(WASMModule *module, const uint8 **p_buf, const uint8 *buf_end,
if (struct_type->base_type.type_flag
!= WASM_TYPE_STRUCT) {
set_error_buf(error_buf, error_buf_size,
"unkown struct type");
"unknown struct type");
goto fail;
}
field_count = struct_type->field_count;
@ -1020,7 +1020,7 @@ load_init_expr(WASMModule *module, const uint8 **p_buf, const uint8 *buf_end,
if (module->types[type_idx]->type_flag
!= WASM_TYPE_STRUCT) {
set_error_buf(error_buf, error_buf_size,
"unkown struct type");
"unknown struct type");
goto fail;
}
@ -1059,7 +1059,7 @@ load_init_expr(WASMModule *module, const uint8 **p_buf, const uint8 *buf_end,
if (array_type->base_type.type_flag
!= WASM_TYPE_ARRAY) {
set_error_buf(error_buf, error_buf_size,
"unkown array type");
"unknown array type");
goto fail;
}
@ -11420,7 +11420,7 @@ re_scan:
if (!check_offset_push(loader_ctx, error_buf,
error_buf_size))
goto fail;
/* for following dummy value assignemnt */
/* for following dummy value assignment */
loader_ctx->frame_offset -= cell_num;
}
@ -11732,7 +11732,7 @@ re_scan:
*/
cur_block->label_type = LABEL_TYPE_CATCH;
/* RESET_STACK removes the values pushed in TRY or pervious
/* RESET_STACK removes the values pushed in TRY or previous
* CATCH Blocks */
RESET_STACK();
@ -11774,7 +11774,7 @@ re_scan:
/* replace frame_csp by LABEL_TYPE_CATCH_ALL */
cur_block->label_type = LABEL_TYPE_CATCH_ALL;
/* RESET_STACK removes the values pushed in TRY or pervious
/* RESET_STACK removes the values pushed in TRY or previous
* CATCH Blocks */
RESET_STACK();
@ -12128,7 +12128,7 @@ re_scan:
}
if (module->types[type_idx1]->type_flag != WASM_TYPE_FUNC) {
set_error_buf(error_buf, error_buf_size,
"unkown function type");
"unknown function type");
goto fail;
}
if (!wasm_loader_pop_nullable_typeidx(loader_ctx, &type,
@ -12145,7 +12145,7 @@ re_scan:
}
if (module->types[type_idx]->type_flag != WASM_TYPE_FUNC) {
set_error_buf(error_buf, error_buf_size,
"unkown function type");
"unknown function type");
goto fail;
}
if (!wasm_func_type_is_super_of(
@ -13911,7 +13911,7 @@ re_scan:
if (module->types[type_idx]->type_flag
!= WASM_TYPE_STRUCT) {
set_error_buf(error_buf, error_buf_size,
"unkown struct type");
"unknown struct type");
goto fail;
}

View File

@ -2457,7 +2457,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,