@@ -44,25 +44,25 @@ pub fn op_set_handled_promise_rejection_handler(
44
44
* exception_state. js_handled_promise_rejection_cb . borrow_mut ( ) = f;
45
45
}
46
46
47
- #[ op2]
47
+ #[ op2( fast ) ]
48
48
pub fn op_ref_op ( scope : & mut v8:: HandleScope , promise_id : i32 ) {
49
49
let context_state = JsRealm :: state_from_scope ( scope) ;
50
50
context_state. unrefed_ops . borrow_mut ( ) . remove ( & promise_id) ;
51
51
}
52
52
53
- #[ op2]
53
+ #[ op2( fast ) ]
54
54
pub fn op_unref_op ( scope : & mut v8:: HandleScope , promise_id : i32 ) {
55
55
let context_state = JsRealm :: state_from_scope ( scope) ;
56
56
context_state. unrefed_ops . borrow_mut ( ) . insert ( promise_id) ;
57
57
}
58
58
59
- #[ op2]
59
+ #[ op2( fast ) ]
60
60
pub fn op_leak_tracing_enable ( scope : & mut v8:: HandleScope , enabled : bool ) {
61
61
let context_state = JsRealm :: state_from_scope ( scope) ;
62
62
context_state. activity_traces . set_enabled ( enabled) ;
63
63
}
64
64
65
- #[ op2]
65
+ #[ op2( fast ) ]
66
66
pub fn op_leak_tracing_submit (
67
67
scope : & mut v8:: HandleScope ,
68
68
#[ smi] kind : u8 ,
@@ -168,7 +168,7 @@ pub fn op_timer_queue_immediate(
168
168
context_state. timers . queue_timer ( 0 , ( task, 0 ) ) as _
169
169
}
170
170
171
- #[ op2]
171
+ #[ op2( fast ) ]
172
172
pub fn op_timer_cancel ( scope : & mut v8:: HandleScope , id : f64 ) {
173
173
let context_state = JsRealm :: state_from_scope ( scope) ;
174
174
context_state. timers . cancel_timer ( id as _ ) ;
@@ -177,13 +177,13 @@ pub fn op_timer_cancel(scope: &mut v8::HandleScope, id: f64) {
177
177
. complete ( RuntimeActivityType :: Timer , id as _ ) ;
178
178
}
179
179
180
- #[ op2]
180
+ #[ op2( fast ) ]
181
181
pub fn op_timer_ref ( scope : & mut v8:: HandleScope , id : f64 ) {
182
182
let context_state = JsRealm :: state_from_scope ( scope) ;
183
183
context_state. timers . ref_timer ( id as _ ) ;
184
184
}
185
185
186
- #[ op2]
186
+ #[ op2( fast ) ]
187
187
pub fn op_timer_unref ( scope : & mut v8:: HandleScope , id : f64 ) {
188
188
let context_state = JsRealm :: state_from_scope ( scope) ;
189
189
context_state. timers . unref_timer ( id as _ ) ;
@@ -225,14 +225,14 @@ pub fn op_run_microtasks(isolate: *mut v8::Isolate) {
225
225
} ;
226
226
}
227
227
228
- #[ op2]
228
+ #[ op2( fast ) ]
229
229
pub fn op_has_tick_scheduled ( scope : & mut v8:: HandleScope ) -> bool {
230
230
JsRealm :: state_from_scope ( scope)
231
231
. has_next_tick_scheduled
232
232
. get ( )
233
233
}
234
234
235
- #[ op2]
235
+ #[ op2( fast ) ]
236
236
pub fn op_set_has_tick_scheduled ( scope : & mut v8:: HandleScope , v : bool ) {
237
237
JsRealm :: state_from_scope ( scope)
238
238
. has_next_tick_scheduled
@@ -776,7 +776,7 @@ pub fn op_get_promise_details<'a>(
776
776
out. into ( )
777
777
}
778
778
779
- #[ op2]
779
+ #[ op2( fast ) ]
780
780
pub fn op_set_promise_hooks (
781
781
scope : & mut v8:: HandleScope ,
782
782
init_hook : v8:: Local < v8:: Value > ,
@@ -1005,7 +1005,7 @@ pub fn op_destructure_error(
1005
1005
/// Effectively throw an uncatchable error. This will terminate runtime
1006
1006
/// execution before any more JS code can run, except in the REPL where it
1007
1007
/// should just output the error to the console.
1008
- #[ op2( reentrant) ]
1008
+ #[ op2( fast , reentrant) ]
1009
1009
pub fn op_dispatch_exception (
1010
1010
scope : & mut v8:: HandleScope ,
1011
1011
exception : v8:: Local < v8:: Value > ,
@@ -1129,7 +1129,7 @@ pub fn op_set_format_exception_callback<'a>(
1129
1129
old. map ( |func| func. into ( ) )
1130
1130
}
1131
1131
1132
- #[ op2]
1132
+ #[ op2( fast ) ]
1133
1133
pub fn op_event_loop_has_more_work ( scope : & mut v8:: HandleScope ) -> bool {
1134
1134
JsRuntime :: has_more_work ( scope)
1135
1135
}
0 commit comments