@@ -97,25 +97,3 @@ pub const CONTROL_EFFECT_SUSPEND_DISCRIMINANT: u32 = 2;
9797/// Discriminant of variant `Switch` in
9898/// `runtime::vm::stack_switching::ControlEffect`.
9999pub const CONTROL_EFFECT_SWITCH_DISCRIMINANT : u32 = 3 ;
100-
101- /// Universal control effect. This structure encodes return signal, resume
102- /// signal, suspension signal, and the handler to suspend to in a single variant
103- /// type. This instance is used at runtime. There is a codegen counterpart in
104- /// `cranelift/src/stack-switching/control_effect.rs`.
105- #[ derive( Clone , Copy , Debug , Eq , PartialEq ) ]
106- #[ repr( u32 ) ]
107- pub enum ControlEffect {
108- /// Used to signal that a continuation has returned and control switches
109- /// back to the parent.
110- Return = CONTROL_EFFECT_RETURN_DISCRIMINANT ,
111- /// Used to signal to a continuation that it is being resumed.
112- Resume = CONTROL_EFFECT_RESUME_DISCRIMINANT ,
113- /// Used to signal that a continuation has invoked a `suspend` instruction.
114- Suspend {
115- /// The index of the handler to be used in the parent continuation to
116- /// switch back to.
117- handler_index : u32 ,
118- } = CONTROL_EFFECT_SUSPEND_DISCRIMINANT ,
119- /// Used to signal that a continuation has invoked a `suspend` instruction.
120- Switch = CONTROL_EFFECT_SWITCH_DISCRIMINANT ,
121- }
0 commit comments