Refactor function argument passing into what it always should have been.

Most visible change is that error messages when a function is called
with the wrong number of arguments are much better.
This commit is contained in:
Stephen Dolan committed 2012-12-04 00:39:21 +00:00
1 parent a88d53d2fd
commit 616e8f9924
8 files changed
+103 -105

No files matched your search

+2 -3
View File
@@ -5,9 +5,8 @@
#define CONSTANT OP_HAS_CONSTANT, 2
#define VARIABLE (OP_HAS_VARIABLE | OP_HAS_BINDING), 3
#define BRANCH OP_HAS_BRANCH, 2
#define CFUNC OP_HAS_CFUNC, 3
#define UFUNC OP_HAS_UFUNC, 2
#define CALLSEQ_END_IMM (OP_IS_CALL_PSEUDO), 0
#define CFUNC (OP_HAS_CFUNC | OP_HAS_BINDING), 3
#define UFUNC (OP_HAS_UFUNC | OP_HAS_BINDING | OP_IS_CALL_PSEUDO), 4
#define DEFINITION (OP_IS_CALL_PSEUDO | OP_HAS_BINDING), 0
#define CLOSURE_REF_IMM (OP_IS_CALL_PSEUDO | OP_HAS_BINDING), 2