// Similar to `system_execution_result` but unconditionally uses
// the given `old_system_state` for the resulting canister state.
Similar to `system_execution_result` but unconditionally uses
the given `old_system_state` for the resulting canister state.
Similar to ` system_execution_result ` but unconditionally uses the given ` old_system_state ` for the resulting canister state .
fn system_execution_result_with_old_system_state(
        &self,
        output: WasmExecutionOutput,
        execution_state: ExecutionState,
        old_system_state: SystemState,
        scheduler_state: SchedulerState,
    ) -> (CanisterState, NumInstructions, HypervisorResult<NumBytes>) {
        let heap_delta = match output.wasm_result {
            Ok(opt_result) => {
                if opt_result.is_some() {
                    fatal!(self.log, "[EXC-BUG] System methods cannot use msg_reply.");
                }
                Ok(NumBytes::from(
                    (output.instance_stats.dirty_pages * PAGE_SIZE) as u64,
                ))
            }
            Err(err) => Err(err),
        };
        let canister =
            CanisterState::from_parts(Some(execution_state), old_system_state, scheduler_state);
        (canister, output.num_instructions_left, heap_delta)
    }
fn system_execution_result_with_old_system_state ( & self , output : WasmExecutionOutput , execution_state : ExecutionState , old_system_state : SystemState , scheduler_state : SchedulerState , ) -> ( CanisterState , NumInstructions , HypervisorResult < NumBytes > ) { let heap_delta = match output . wasm_result { Ok ( opt_result ) => { if opt_result . is_some ( ) { fatal ! ( self log " " ) ; } Ok ( NumBytes :: from ( ( output . instance_stats . dirty_pages * PAGE_SIZE ) as u64 , ) ) } Err ( err ) => Err ( err ) , } ; let canister = CanisterState :: from_parts ( Some ( execution_state ) , old_system_state , scheduler_state ) ; ( canister , output . num_instructions_left , heap_delta ) }
Similar to `system_execution_result` but unconditionally uses
the given `old_system_state` for the resulting canister state.
Similar to ` system_execution_result ` but unconditionally uses the given ` old_system_state ` for the resulting canister state .
&self
output
WasmExecutionOutput
execution_state
ExecutionState
old_system_state
SystemState
scheduler_state
SchedulerState