|
ReactOS 0.4.17-dev-357-ga8f14ff
|

Go to the source code of this file.
Classes | |
| union | instr_arg_t |
| struct | instr_t |
| struct | local_ref_t |
| struct | local_ref_scopes_t |
| struct | _function_code_t |
| struct | _bytecode_t |
| struct | vars_buffer |
| struct | _scope_chain_t |
| struct | _jsexcept_t |
| struct | _call_frame_t |
Macros | |
| #define | OP_LIST |
| #define | X(x, a, b, c) OP_##x, |
| #define | INVALID_LOCAL_REF 0x7fffffff |
| #define | EXEC_GLOBAL 0x0001 |
| #define | EXEC_CONSTRUCTOR 0x0002 |
| #define | EXEC_RETURN_TO_INTERP 0x0004 |
| #define | EXEC_EVAL 0x0008 |
Typedefs | |
| typedef struct _bytecode_t | bytecode_t |
| typedef struct _function_code_t | function_code_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 , ARG_DATE } |
| enum | property_definition_type_t { PROPERTY_DEFINITION_VALUE , PROPERTY_DEFINITION_GETTER , PROPERTY_DEFINITION_SETTER } |
| 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 | |
| ARG_DATE | |
|
inlinestatic |
Definition at line 221 of file engine.h.
Referenced by alloc_detached_vars(), create_source_function(), DispatchEx_GetTypeInfo(), exec_source(), and set_error_location().
| HRESULT compile_script | ( | script_ctx_t * | ctx, |
| const WCHAR * | code, | ||
| UINT64 | source_context, | ||
| unsigned | start_line, | ||
| const WCHAR * | args, | ||
| const WCHAR * | delimiter, | ||
| BOOL | from_eval, | ||
| BOOL | use_decode, | ||
| named_item_t * | named_item, | ||
| bytecode_t ** | ret | ||
| ) |
Definition at line 2725 of file compile.c.
Referenced by builtin_eval(), compile_procedure(), construct_function(), JScriptParse_ParseScriptText(), JScriptParseProcedure_ParseProcedureText(), 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 953 of file function.c.
Referenced by construct_function(), exec_source(), interp_func(), JScriptParseProcedure_ParseProcedureText(), scope_init_locals(), and setup_scope().
| void detach_arguments_object | ( | call_frame_t * | frame | ) |
Definition at line 293 of file function.c.
Referenced by pop_call_frame().
| void enter_script | ( | script_ctx_t * | ctx, |
| jsexcept_t * | ei | ||
| ) |
Definition at line 340 of file jscript.c.
Referenced by DispatchEx_InvokeEx(), exec_queued_code(), JScriptParse_ParseScriptText(), JScriptParseProcedure_ParseProcedureText(), variant_change_type(), and VariantChangeType_ChangeType().
| 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, | ||
| unsigned | argc, | ||
| jsval_t * | argv, | ||
| jsval_t * | r | ||
| ) |
Definition at line 3425 of file engine.c.
Referenced by builtin_eval(), exec_global_code(), and InterpretedFunction_call().
| unsigned get_location_line | ( | bytecode_t * | code, |
| unsigned | loc, | ||
| unsigned * | char_pos | ||
| ) |
Definition at line 2445 of file compile.c.
Referenced by JScriptError_GetSourcePosition(), and print_backtrace().
| HRESULT leave_script | ( | script_ctx_t * | ctx, |
| HRESULT | result | ||
| ) |
Definition at line 348 of file jscript.c.
Referenced by DispatchEx_InvokeEx(), exec_queued_code(), JScriptParse_ParseScriptText(), JScriptParseProcedure_ParseProcedureText(), variant_change_type(), and VariantChangeType_ChangeType().
| IDispatch * lookup_global_host | ( | script_ctx_t * | ctx | ) |
Definition at line 845 of file engine.c.
Referenced by HostFunction_call(), interp_this(), and WineJSDispatch_GetScriptGlobal().
| local_ref_t * lookup_local | ( | const function_code_t * | function, |
| const WCHAR * | identifier, | ||
| unsigned int | scope | ||
| ) |
Definition at line 865 of file engine.c.
Referenced by bind_local(), compile_function(), get_detached_var_ref(), and identifier_eval().
| void release_bytecode | ( | bytecode_t * | code | ) |
Definition at line 2459 of file compile.c.
Referenced by builtin_eval(), clear_persistent_code_list(), clear_script_queue(), compile_script(), construct_function(), exec_source(), init_code(), InterpretedFunction_destructor(), JScriptParse_ParseScriptText(), JScriptParseProcedure_ParseProcedureText(), pop_call_frame(), reset_ei(), scope_destructor(), and ScriptTypeInfo_Release().
| void reset_ei | ( | jsexcept_t * | ei | ) |
Definition at line 314 of file jscript.c.
Referenced by handle_dispatch_exception(), JScriptError_Release(), leave_script(), set_error_value(), and throw_error().
|
inlinestatic |
Definition at line 242 of file engine.h.
Referenced by create_source_function(), exec_source(), scope_push(), and setup_arguments_object().
|
inlinestatic |
Definition at line 248 of file engine.h.
Referenced by Arguments_destructor(), detach_arguments_object(), InterpretedFunction_destructor(), pop_call_frame(), scope_destructor(), scope_pop(), and setup_scope().
| void set_error_location | ( | jsexcept_t * | ei, |
| bytecode_t * | code, | ||
| unsigned | loc, | ||
| unsigned | source_id, | ||
| jsstr_t * | line | ||
| ) |
Definition at line 426 of file error.c.
Referenced by compile_script(), and unwind_exception().
| HRESULT setup_arguments_object | ( | script_ctx_t * | ctx, |
| call_frame_t * | frame | ||
| ) |
Definition at line 259 of file function.c.
Referenced by Arguments_get_caller(), detach_variable_object(), and Function_get_arguments().