-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug API does not work in JIT mode #15
Comments
… to savedpc and call to luaG_traceexec
Implemented a dual strategy. |
The Lua C api function lua_setupvalue() modified to perform type checks when types are known. This relies upon the type bing available in the photo up values array. |
Fixed in 0.10 and 0.11 |
The main issue is that the 'savedpc' in the call frame is not updated in JIT code. Updating this on every bytecode instruction would inhibit optimization. However one potential solution is to update it when one of following happens:
a) OP_CALL or OP_TAILCALL is invoked
b) A metamethod is invoked
c) Apart from above we also need to handle hooks. Since this is a large overhead (function call) we need to only enable this conditionally
The text was updated successfully, but these errors were encountered: