Docs for Registers and the usage of RETURN AND CALL and Upvalues? #1215
Unanswered
karl-police
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I started to look through bytecode, understanding ABCDE and AUX and how they're built up in the instructions.
But there's still a couple of things that I do not understand and I seek explanation for.
There's other dependent things. The simple thing to understand is that stuff like LOADN loads stuff into a Register and etc. however, there's GETUPVAL, but how does it know that it's the right Register?
Then the next part is Registers in general. Everything can go wrong if the Registers are wrong. RETURN seems to rely on Registers and CALL seems to free out registers.
So I am wondering how it free's out those registers and if every Proto has their own Register or something.
Beta Was this translation helpful? Give feedback.
All reactions