ReactOS 0.4.16-dev-106-g10b08aa
|
Go to the source code of this file.
Classes | |
union | instr_arg_t |
struct | instr_t |
struct | local_ref_t |
struct | _function_code_t |
struct | _bytecode_t |
struct | _scope_chain_t |
struct | _call_frame_t |
Macros | |
#define | OP_LIST |
#define | X(x, a, b, c) OP_##x, |
#define | EXEC_GLOBAL 0x0001 |
#define | EXEC_CONSTRUCTOR 0x0002 |
#define | EXEC_RETURN_TO_INTERP 0x0004 |
#define | EXEC_EVAL 0x0008 |
Typedefs | |
typedef struct _function_code_t | function_code_t |
typedef struct _bytecode_t | bytecode_t |
typedef struct _scope_chain_t | scope_chain_t |
typedef struct _except_frame_t | except_frame_t |
typedef struct _call_frame_t | call_frame_t |
Enumerations | |
enum | jsop_t { OP_LAST } |
enum | instr_arg_type_t { ARG_NONE = 0 , ARG_ADDR , ARG_BSTR , ARG_DBL , ARG_FUNC , ARG_INT , ARG_STR , ARG_UINT , ARG_NONE = 0 , ARG_STR , ARG_BSTR , ARG_INT , ARG_UINT , ARG_ADDR , ARG_DOUBLE } |
enum | property_definition_type_t { PROPERTY_DEFINITION_VALUE , PROPERTY_DEFINITION_GETTER , PROPERTY_DEFINITION_SETTER } |
Functions | |
local_ref_t * | lookup_local (const function_code_t *, const WCHAR *) DECLSPEC_HIDDEN |
HRESULT | compile_script (script_ctx_t *, const WCHAR *, const WCHAR *, const WCHAR *, BOOL, BOOL, bytecode_t **) DECLSPEC_HIDDEN |
void | release_bytecode (bytecode_t *) DECLSPEC_HIDDEN |
static bytecode_t * | bytecode_addref (bytecode_t *code) |
void | scope_release (scope_chain_t *) DECLSPEC_HIDDEN |
static scope_chain_t * | scope_addref (scope_chain_t *scope) |
HRESULT | exec_source (script_ctx_t *, DWORD, bytecode_t *, function_code_t *, scope_chain_t *, IDispatch *, jsdisp_t *, jsdisp_t *, unsigned, jsval_t *, jsval_t *) DECLSPEC_HIDDEN |
HRESULT | create_source_function (script_ctx_t *, bytecode_t *, function_code_t *, scope_chain_t *, jsdisp_t **) DECLSPEC_HIDDEN |
HRESULT | setup_arguments_object (script_ctx_t *, call_frame_t *) DECLSPEC_HIDDEN |
void | detach_arguments_object (jsdisp_t *) DECLSPEC_HIDDEN |
typedef struct _bytecode_t bytecode_t |
typedef struct _call_frame_t call_frame_t |
typedef struct _except_frame_t except_frame_t |
typedef struct _function_code_t function_code_t |
typedef struct _scope_chain_t scope_chain_t |
Enumerator | |
---|---|
ARG_NONE | |
ARG_ADDR | |
ARG_BSTR | |
ARG_DBL | |
ARG_FUNC | |
ARG_INT | |
ARG_STR | |
ARG_UINT | |
ARG_NONE | |
ARG_STR | |
ARG_BSTR | |
ARG_INT | |
ARG_UINT | |
ARG_ADDR | |
ARG_DOUBLE |
|
inlinestatic |
Definition at line 196 of file engine.h.
Referenced by create_source_function(), and exec_source().
HRESULT compile_script | ( | script_ctx_t * | ctx, |
const WCHAR * | code, | ||
const WCHAR * | args, | ||
const WCHAR * | delimiter, | ||
BOOL | from_eval, | ||
BOOL | use_decode, | ||
bytecode_t ** | ret | ||
) |
Definition at line 2461 of file compile.c.
Referenced by compile_procedure(), construct_function(), JScriptParse_ParseScriptText(), JScriptParseProcedure_ParseProcedureText(), JSGlobal_eval(), and VBScriptParse_ParseScriptText().
HRESULT create_source_function | ( | script_ctx_t * | ctx, |
bytecode_t * | code, | ||
function_code_t * | func_code, | ||
scope_chain_t * | scope_chain, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 767 of file function.c.
Referenced by construct_function(), exec_source(), interp_func(), JScriptParseProcedure_ParseProcedureText(), and setup_scope().
Definition at line 229 of file function.c.
Referenced by pop_call_frame().
HRESULT exec_source | ( | script_ctx_t * | ctx, |
DWORD | flags, | ||
bytecode_t * | bytecode, | ||
function_code_t * | function, | ||
scope_chain_t * | scope, | ||
IDispatch * | this_obj, | ||
jsdisp_t * | function_instance, | ||
jsdisp_t * | variable_obj, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 2958 of file engine.c.
Referenced by exec_global_code(), InterpretedFunction_call(), JScriptParse_ParseScriptText(), and JSGlobal_eval().
local_ref_t * lookup_local | ( | const function_code_t * | function, |
const WCHAR * | identifier | ||
) |
Definition at line 629 of file engine.c.
Referenced by bind_local(), compile_function(), and identifier_eval().
void release_bytecode | ( | bytecode_t * | code | ) |
Definition at line 2226 of file compile.c.
Referenced by clear_script_queue(), compile_script(), construct_function(), exec_source(), init_code(), InterpretedFunction_destructor(), JScriptParse_ParseScriptText(), JScriptParseProcedure_ParseProcedureText(), JSGlobal_eval(), and pop_call_frame().
|
inlinestatic |
Definition at line 212 of file engine.h.
Referenced by create_source_function(), exec_source(), and scope_push().
void scope_release | ( | scope_chain_t * | scope | ) |
Definition at line 437 of file engine.c.
Referenced by InterpretedFunction_destructor(), pop_call_frame(), scope_pop(), scope_release(), and setup_scope().
HRESULT setup_arguments_object | ( | script_ctx_t * | ctx, |
call_frame_t * | frame | ||
) |
Definition at line 192 of file function.c.
Referenced by detach_variable_object(), and Function_get_arguments().