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:
@ -513,6 +513,8 @@ set_local_f64(JitFrame *frame, int n, JitReg val)
|
||||
|
||||
#define PUSH(jit_value, value_type) \
|
||||
do { \
|
||||
if (!jit_value) \
|
||||
goto fail; \
|
||||
if (!jit_cc_push_value(cc, value_type, jit_value)) \
|
||||
goto fail; \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user