Add homomorphic host redirection abstraction for vm->host calls.

This commit is contained in:
losfair
2019-09-18 02:14:13 +08:00
parent 574e4c477f
commit b57aba4ae7
4 changed files with 49 additions and 7 deletions

View File

@ -644,7 +644,7 @@ impl ModuleCodeGenerator<X64FunctionCode, X64ExecutionContext, CodegenError>
),
Location::GPR(GPR::RAX),
);
a.emit_jmp_location(Location::GPR(GPR::RAX));
a.emit_homomorphic_host_redirection(GPR::RAX);
self.func_import_count += 1;