forked from qmonnet/rbpf
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor - vm interface of
BuiltinFunction
s (#535)
* Replaces all context parameters of BuiltinFunction with a reference to the vm. * Deduplicates instruction metering of interpreter and JIT by moving it into declare_builtin_function. * Moves get_runtime_environment_key() from JIT into VM. * Passes the encrypted VM pointer to BuiltinFunctions. * Puts due_insn_count into the VM. * Moves the calculation of due_insn_count from the VM into the JIT epilogue. * Makes $ContextObject generic in declare_builtin_function!().
- Loading branch information
Showing
5 changed files
with
91 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.