aot pass all tests
This commit is contained in:
@@ -1545,9 +1545,14 @@ static inline void set_value (JSContext *ctx, JSValue *pval, JSValue new_val) {
|
||||
}
|
||||
|
||||
void JS_ThrowInterrupted (JSContext *ctx);
|
||||
int cell_rt_native_active(void);
|
||||
|
||||
static inline __exception int js_poll_interrupts (JSContext *ctx) {
|
||||
if (unlikely (atomic_load_explicit (&ctx->pause_flag, memory_order_relaxed) >= 2)) {
|
||||
if (cell_rt_native_active ()) {
|
||||
atomic_store_explicit (&ctx->pause_flag, 0, memory_order_relaxed);
|
||||
return 0;
|
||||
}
|
||||
JS_ThrowInterrupted (ctx);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user