vm: move Jump method to the Context

Because it's only relevant for execution context itself.
This commit is contained in:
Roman Khimov 2021-11-19 16:46:29 +03:00
parent 8c704a49b5
commit a577d40de9
8 changed files with 22 additions and 23 deletions

View file

@ -458,7 +458,7 @@ func handleRun(c *ishell.Context) {
c.Err(fmt.Errorf("no program loaded"))
return
}
v.Jump(v.Context(), offset)
v.Context().Jump(offset)
if initMD := m.ABI.GetMethod(manifest.MethodInit, 0); initMD != nil {
v.Call(v.Context(), initMD.Offset)
}