Add more checks for Fast JIT (#1433)
Add more checks for Fast JIT to fix the issues reported by instrument test: - add check for the jit_value before pushing it into the stack - add check at the end of form_and_translate_func - add checks after each jit pass
This commit is contained in:
@ -731,6 +731,9 @@ form_and_translate_func(JitCompContext *cc)
|
||||
*(jit_annl_end_bcip(cc, cc->exit_label)) =
|
||||
cc->cur_wasm_module->load_addr;
|
||||
|
||||
if (jit_get_last_error(cc)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user