Refactor stack#52
Conversation
Reasoning DetailsWe need to analyze the code changes in this large diff. The changes introduce a new type `StkId` representing a stack slot pointer, replacing raw `*mut LuaValue` and `LuaValuePtr`. The modifications are across multiple files: gc, lua_value, lua_vm/call_info, execute_loop, helper, metamethod, lua_state, mod, and a new file stk_id.rs.The goal of the PR seems to be performance improvement by caching Potential issues to review:
Overall, the biggest concern is the unsound Other concerns: potential for stale base_stk after stack reallocation within helpers that don't go through Also, the removal of debug assertions reduces safety checking. I'll provide a review listing these issues with suggestions. Code Review: Introduction of
|
No description provided.