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
-
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.go
as 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,
OpCallN
is also can cover theOpCall0
to theOpCall3
. Now, is it a reasonable choice to delete those OpCode (i.e.OpCall0
toOpCall3
) now?Beta Was this translation helpful? Give feedback.
All reactions