Support function object retrieval for async functions (#4668)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -57,6 +57,7 @@ typedef enum
|
||||
typedef struct
|
||||
{
|
||||
const ecma_compiled_code_t *bytecode_header_p; /**< currently executed byte-code data */
|
||||
ecma_object_t *function_object_p; /**< function obj */
|
||||
uint32_t status_flags; /**< combination of vm_frame_ctx_shared_flags_t bits */
|
||||
} vm_frame_ctx_shared_t;
|
||||
|
||||
@@ -66,16 +67,12 @@ typedef struct
|
||||
typedef struct
|
||||
{
|
||||
vm_frame_ctx_shared_t header; /**< shared data header */
|
||||
ecma_object_t *function_object_p; /**< function obj */
|
||||
const ecma_value_t *arg_list_p; /**< arguments list */
|
||||
uint32_t arg_list_len; /**< arguments list length */
|
||||
} vm_frame_ctx_shared_args_t;
|
||||
|
||||
#if JERRY_ESNEXT
|
||||
|
||||
#define VM_FRAME_CTX_GET_FUNCTION_OBJECT(frame_ctx_p) \
|
||||
(((vm_frame_ctx_shared_args_t *) (frame_ctx_p)->shared_p)->function_object_p)
|
||||
|
||||
/**
|
||||
* Shared data extended with computed class fields
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user