@@ -26,7 +26,7 @@ use core::{marker::PhantomData, ops::ControlFlow};
2626
2727#[ inline( always) ]
2828pub fn fetch_handler ( ip : Ip ) -> Handler {
29- match cfg ! ( feature = "compact " ) {
29+ match cfg ! ( feature = "indirect-dispatch " ) {
3030 true => {
3131 let ( _, op_code) = unsafe { ip. decode :: < OpCode > ( ) } ;
3232 op_code_to_handler ( op_code)
@@ -289,7 +289,7 @@ impl<'a, T> HostFuncCall<'a, T, state::Done> {
289289 }
290290}
291291
292- #[ cfg( feature = "trampolines " ) ]
292+ #[ cfg( feature = "portable-dispatch " ) ]
293293pub fn execute_until_done (
294294 mut state : VmState ,
295295 mut ip : Ip ,
@@ -321,7 +321,7 @@ pub fn execute_until_done(
321321 state. into_execution_outcome ( )
322322}
323323
324- #[ cfg( not( feature = "trampolines " ) ) ]
324+ #[ cfg( not( feature = "portable-dispatch " ) ) ]
325325pub fn execute_until_done (
326326 state : VmState ,
327327 ip : Ip ,
@@ -380,11 +380,11 @@ impl From<Error> for ExecutionOutcome {
380380 }
381381}
382382
383- #[ cfg( not( feature = "trampolines " ) ) ]
383+ #[ cfg( not( feature = "portable-dispatch " ) ) ]
384384#[ derive( Debug ) ]
385385pub enum NextState { }
386386
387- #[ cfg( feature = "trampolines " ) ]
387+ #[ cfg( feature = "portable-dispatch " ) ]
388388#[ derive( Debug , Copy , Clone ) ]
389389pub struct NextState {
390390 ip : Ip ,
@@ -457,12 +457,12 @@ impl Break {
457457pub type Control < C = ( ) , B = Break > = ControlFlow < B , C > ;
458458pub type Done < T = NextState > = Control < T , Break > ;
459459
460- #[ cfg( feature = "trampolines " ) ]
460+ #[ cfg( feature = "portable-dispatch " ) ]
461461pub trait ControlContinue : Sized {
462462 fn control_continue ( ip : Ip , sp : Sp , mem0 : Mem0Ptr , mem0_len : Mem0Len , instance : Inst ) -> Self ;
463463}
464464
465- #[ cfg( feature = "trampolines " ) ]
465+ #[ cfg( feature = "portable-dispatch " ) ]
466466impl ControlContinue for Done < NextState > {
467467 fn control_continue ( ip : Ip , sp : Sp , mem0 : Mem0Ptr , mem0_len : Mem0Len , instance : Inst ) -> Self {
468468 Self :: Continue ( NextState {
@@ -514,15 +514,15 @@ macro_rules! done {
514514 } } ;
515515}
516516
517- #[ cfg( not( feature = "trampolines " ) ) ]
517+ #[ cfg( not( feature = "portable-dispatch " ) ) ]
518518macro_rules! dispatch {
519519 ( $state: expr, $ip: expr, $sp: expr, $mem0: expr, $mem0_len: expr, $instance: expr) => { {
520520 let handler = $crate:: engine:: executor:: handler:: dispatch:: fetch_handler( $ip) ;
521521 return handler( $state, $ip, $sp, $mem0, $mem0_len, $instance) ;
522522 } } ;
523523}
524524
525- #[ cfg( feature = "trampolines " ) ]
525+ #[ cfg( feature = "portable-dispatch " ) ]
526526macro_rules! dispatch {
527527 ( $state: expr, $ip: expr, $sp: expr, $mem0: expr, $mem0_len: expr, $instance: expr) => { {
528528 let _: & mut VmState = $state;
0 commit comments