Move cip from sp_context_t to PluginContext.
This commit is contained in:
@@ -238,10 +238,11 @@ Environment::UnpatchAllJumpsFromTimeout()
|
||||
int
|
||||
Environment::Invoke(PluginRuntime *runtime, CompiledFunction *fn, cell_t *result)
|
||||
{
|
||||
sp_context_t *ctx = runtime->GetBaseContext()->GetCtx();
|
||||
PluginContext *cx = runtime->GetBaseContext();
|
||||
sp_context_t *ctx = cx->GetCtx();
|
||||
|
||||
// Note that cip, hp, sp are saved and restored by Execute2().
|
||||
ctx->cip = fn->GetCodeOffset();
|
||||
*cx->addressOfCip() = fn->GetCodeOffset();
|
||||
|
||||
InvokeStubFn invoke = code_stubs_->InvokeStub();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user