added some code to handle primitives and the call instruction

This commit is contained in:
2016-10-06 17:49:47 +00:00
parent badf66c9d4
commit 15208b5e85
16 changed files with 520 additions and 294 deletions

View File

@ -54,6 +54,10 @@
#define HCL_DEBUG_GC
#define HCL_DEBUG_VM_EXEC
/* allow the caller to drive process switching by calling
* stix_switchprocess(). */
#define HCL_EXTERNAL_PROCESS_SWITCH
/* limit the maximum object size such that:
* 1. an index to an object field can be represented in a small integer.
* 2. the maximum number of bits including bit-shifts can be represented
@ -1077,11 +1081,10 @@ HCL_EXPORT int hcl_compile (
);
/* ========================================================================= */
/* exec.c */
/* prim.c */
/* ========================================================================= */
int hcl_getprimno (
hcl_t* hcl,
const hcl_oocs_t* name
int hcl_addbuiltinprims (
hcl_t* hcl
);
/* TODO: remove debugging functions */