Replies: 1 comment
-
|
All of those opcodes are needed. OpCall1-3 is a special fast call type. OpCallN is a generic fallback. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I find there are many type of OpCall OpCode in below code.
expr/vm/opcodes.go
Lines 55 to 59 in 7772ea0
I read the code of
cmpiler.goas below:expr/compiler/compiler.go
Lines 157 to 171 in 7772ea0
I got that you want to generate special bytecode based on the number of arguments of the function. However,
OpCallNis also can cover theOpCall0to theOpCall3. Now, is it a reasonable choice to delete those OpCode (i.e.OpCall0toOpCall3) now?Beta Was this translation helpful? Give feedback.
All reactions