MCPcopy Create free account
hub / github.com/diem/move / execute_code

Method execute_code

language/move-vm/runtime/src/interpreter.rs:717–729  ·  view source on GitHub ↗

Execute a Move function until a return or a call opcode is found.

(
        &mut self,
        resolver: &Resolver,
        interpreter: &mut Interpreter,
        data_store: &mut impl DataStore,
        gas_status: &mut GasStatus,
    )

Source from the content-addressed store, hash-verified

715
716 /// Execute a Move function until a return or a call opcode is found.
717 fn execute_code(
718 &mut self,
719 resolver: &Resolver,
720 interpreter: &mut Interpreter,
721 data_store: &mut impl DataStore,
722 gas_status: &mut GasStatus,
723 ) -> VMResult<ExitCode> {
724 self.execute_code_impl(resolver, interpreter, data_store, gas_status)
725 .map_err(|e| {
726 e.at_code_offset(self.function.index(), self.pc)
727 .finish(self.location())
728 })
729 }
730
731 fn execute_code_impl(
732 &mut self,

Callers 1

execute_mainMethod · 0.80

Calls 5

execute_code_implMethod · 0.80
at_code_offsetMethod · 0.80
finishMethod · 0.45
indexMethod · 0.45
locationMethod · 0.45

Tested by

no test coverage detected