diff --git a/core/iwasm/common/wasm_exec_env.h b/core/iwasm/common/wasm_exec_env.h index ba157ac48..d75e216a0 100644 --- a/core/iwasm/common/wasm_exec_env.h +++ b/core/iwasm/common/wasm_exec_env.h @@ -87,6 +87,11 @@ typedef struct WASMExecEnv { uint8 *bottom; } wasm_stack; +#if WASM_INSTRUCTION_METERING != 0 + /* instructions to execute */ + int instructions_to_execute; +#endif + #if WASM_ENABLE_FAST_JIT != 0 /** * Cache for @@ -166,11 +171,6 @@ typedef struct WASMExecEnv { /* The WASM stack. */ uint8 bottom[1]; } wasm_stack_u; - -#if WASM_INSTRUCTION_METERING != 0 - /* instructions to execute */ - int instructions_to_execute; -#endif } WASMExecEnv; #if WASM_ENABLE_MEMORY_PROFILING != 0