This commit is contained in:
parent
bd107a172c
commit
266b3a34d5
@ -6035,12 +6035,12 @@ int hcl_compile (hcl_t* hcl, hcl_cnode_t* obj, int flags)
|
||||
hcl->log.default_type_mask |= HCL_LOG_COMPILER;
|
||||
|
||||
/*
|
||||
* In the non-INTERACTIVE mode, the literal frame base doesn't matter.
|
||||
* In the non-INTERACTIVE mode, the literal frame base(lfbase) doesn't matter.
|
||||
* Only the initial function object contains the literal frame.
|
||||
* No other function objects are created. All 'defun/fun' defintions are
|
||||
* translated to block context objects instead.
|
||||
*
|
||||
* In the INTERACTIVE mode, the literal frame base plays a key role.
|
||||
* In the INTERACTIVE mode, the literal frame base(lfbase) plays a key role.
|
||||
* hcl_compile() is called for the top-level expression and the literal
|
||||
* frame base can be 0. The means it is ok for a top-level code to
|
||||
* reference part of the literal frame reserved for a function.
|
||||
|
@ -4782,7 +4782,7 @@ hcl_oop_t hcl_execute (hcl_t* hcl)
|
||||
#endif
|
||||
}
|
||||
|
||||
/* create a virtual function object that hold the bytes codes generated plus the literal frame */
|
||||
/* create a virtual function object that holds the byte code generated plus the literal frame */
|
||||
funcobj = make_function(hcl, hcl->code.lit.len, hcl->code.bc.ptr, hcl->code.bc.len, hcl->code.dbgi);
|
||||
if (HCL_UNLIKELY(!funcobj)) return HCL_NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user