|
| WINE_DEFAULT_DEBUG_CHANNEL (jscript) |
|
static HRESULT | stack_push (script_ctx_t *ctx, jsval_t v) |
|
static HRESULT | stack_push_string (script_ctx_t *ctx, const WCHAR *str) |
|
static jsval_t | stack_top (script_ctx_t *ctx) |
|
static jsval_t * | stack_top_ref (script_ctx_t *ctx, unsigned n) |
|
static jsval_t | stack_topn (script_ctx_t *ctx, unsigned n) |
|
static jsval_t * | stack_args (script_ctx_t *ctx, unsigned n) |
|
static jsval_t | stack_pop (script_ctx_t *ctx) |
|
static void | stack_popn (script_ctx_t *ctx, unsigned n) |
|
static HRESULT | stack_pop_number (script_ctx_t *ctx, double *r) |
|
static HRESULT | stack_pop_object (script_ctx_t *ctx, IDispatch **r) |
|
static HRESULT | stack_pop_int (script_ctx_t *ctx, INT *r) |
|
static HRESULT | stack_pop_uint (script_ctx_t *ctx, DWORD *r) |
|
static unsigned | local_off (call_frame_t *frame, int ref) |
|
static BSTR | local_name (call_frame_t *frame, int ref) |
|
static HRESULT | stack_push_exprval (script_ctx_t *ctx, exprval_t *val) |
|
static BOOL | stack_topn_exprval (script_ctx_t *ctx, unsigned n, exprval_t *r) |
|
static BOOL | stack_pop_exprval (script_ctx_t *ctx, exprval_t *r) |
|
static HRESULT | exprval_propput (script_ctx_t *ctx, exprval_t *ref, jsval_t v) |
|
static HRESULT | exprval_propget (script_ctx_t *ctx, exprval_t *ref, jsval_t *r) |
|
static HRESULT | exprval_call (script_ctx_t *ctx, exprval_t *ref, WORD flags, unsigned argc, jsval_t *argv, jsval_t *r) |
|
static HRESULT | exprval_to_value (script_ctx_t *ctx, exprval_t *ref, jsval_t *r) |
|
static void | exprval_release (exprval_t *val) |
|
static void | exprval_set_exception (exprval_t *val, HRESULT hres) |
|
static void | exprval_set_disp_ref (exprval_t *ref, IDispatch *obj, DISPID id) |
|
static jsval_t | steal_ret (call_frame_t *frame) |
|
static void | clear_acc (script_ctx_t *ctx) |
|
static HRESULT | scope_push (scope_chain_t *scope, jsdisp_t *jsobj, IDispatch *obj, scope_chain_t **ret) |
|
static void | scope_pop (scope_chain_t **scope) |
|
void | clear_ei (script_ctx_t *ctx) |
|
void | scope_release (scope_chain_t *scope) |
|
static HRESULT | disp_get_id (script_ctx_t *ctx, IDispatch *disp, const WCHAR *name, BSTR name_bstr, DWORD flags, DISPID *id) |
|
static HRESULT | disp_cmp (IDispatch *disp1, IDispatch *disp2, BOOL *ret) |
|
HRESULT | jsval_strict_equal (jsval_t lval, jsval_t rval, BOOL *ret) |
|
static HRESULT | detach_variable_object (script_ctx_t *ctx, call_frame_t *frame, BOOL from_release) |
|
static BOOL | lookup_global_members (script_ctx_t *ctx, BSTR identifier, exprval_t *ret) |
|
static int __cdecl | local_ref_cmp (const void *key, const void *ref) |
|
local_ref_t * | lookup_local (const function_code_t *function, const WCHAR *identifier) |
|
static HRESULT | identifier_eval (script_ctx_t *ctx, BSTR identifier, exprval_t *ret) |
|
static BSTR | get_op_bstr (script_ctx_t *ctx, int i) |
|
static unsigned | get_op_uint (script_ctx_t *ctx, int i) |
|
static unsigned | get_op_int (script_ctx_t *ctx, int i) |
|
static jsstr_t * | get_op_str (script_ctx_t *ctx, int i) |
|
static double | get_op_double (script_ctx_t *ctx) |
|
static void | jmp_next (script_ctx_t *ctx) |
|
static void | jmp_abs (script_ctx_t *ctx, unsigned dst) |
|
static HRESULT | interp_forin (script_ctx_t *ctx) |
|
static HRESULT | interp_push_scope (script_ctx_t *ctx) |
|
static HRESULT | interp_pop_scope (script_ctx_t *ctx) |
|
static HRESULT | interp_case (script_ctx_t *ctx) |
|
static HRESULT | interp_throw (script_ctx_t *ctx) |
|
static HRESULT | interp_throw_ref (script_ctx_t *ctx) |
|
static HRESULT | interp_throw_type (script_ctx_t *ctx) |
|
static HRESULT | interp_push_except (script_ctx_t *ctx) |
|
static HRESULT | interp_pop_except (script_ctx_t *ctx) |
|
static HRESULT | interp_end_finally (script_ctx_t *ctx) |
|
static HRESULT | interp_enter_catch (script_ctx_t *ctx) |
|
static HRESULT | interp_func (script_ctx_t *ctx) |
|
static HRESULT | interp_array (script_ctx_t *ctx) |
|
static HRESULT | interp_member (script_ctx_t *ctx) |
|
static HRESULT | interp_memberid (script_ctx_t *ctx) |
|
static HRESULT | interp_refval (script_ctx_t *ctx) |
|
static HRESULT | interp_new (script_ctx_t *ctx) |
|
static HRESULT | interp_call (script_ctx_t *ctx) |
|
static HRESULT | interp_call_member (script_ctx_t *ctx) |
|
static HRESULT | interp_this (script_ctx_t *ctx) |
|
static HRESULT | interp_identifier_ref (script_ctx_t *ctx, BSTR identifier, unsigned flags) |
|
static HRESULT | identifier_value (script_ctx_t *ctx, BSTR identifier) |
|
static HRESULT | interp_local_ref (script_ctx_t *ctx) |
|
static HRESULT | interp_local (script_ctx_t *ctx) |
|
static HRESULT | interp_ident (script_ctx_t *ctx) |
|
static HRESULT | interp_identid (script_ctx_t *ctx) |
|
static HRESULT | interp_null (script_ctx_t *ctx) |
|
static HRESULT | interp_bool (script_ctx_t *ctx) |
|
static HRESULT | interp_int (script_ctx_t *ctx) |
|
static HRESULT | interp_double (script_ctx_t *ctx) |
|
static HRESULT | interp_str (script_ctx_t *ctx) |
|
static HRESULT | interp_regexp (script_ctx_t *ctx) |
|
static HRESULT | interp_carray (script_ctx_t *ctx) |
|
static HRESULT | interp_carray_set (script_ctx_t *ctx) |
|
static HRESULT | interp_new_obj (script_ctx_t *ctx) |
|
static HRESULT | interp_obj_prop (script_ctx_t *ctx) |
|
static HRESULT | interp_cnd_nz (script_ctx_t *ctx) |
|
static HRESULT | interp_cnd_z (script_ctx_t *ctx) |
|
static HRESULT | interp_or (script_ctx_t *ctx) |
|
static HRESULT | interp_xor (script_ctx_t *ctx) |
|
static HRESULT | interp_and (script_ctx_t *ctx) |
|
static HRESULT | interp_instanceof (script_ctx_t *ctx) |
|
static HRESULT | interp_in (script_ctx_t *ctx) |
|
static HRESULT | add_eval (script_ctx_t *ctx, jsval_t lval, jsval_t rval, jsval_t *ret) |
|
static HRESULT | interp_add (script_ctx_t *ctx) |
|
static HRESULT | interp_sub (script_ctx_t *ctx) |
|
static HRESULT | interp_mul (script_ctx_t *ctx) |
|
static HRESULT | interp_div (script_ctx_t *ctx) |
|
static HRESULT | interp_mod (script_ctx_t *ctx) |
|
static HRESULT | interp_delete (script_ctx_t *ctx) |
|
static HRESULT | interp_delete_ident (script_ctx_t *ctx) |
|
static HRESULT | interp_void (script_ctx_t *ctx) |
|
static HRESULT | typeof_string (jsval_t v, const WCHAR **ret) |
|
static HRESULT | interp_typeofid (script_ctx_t *ctx) |
|
static HRESULT | interp_typeofident (script_ctx_t *ctx) |
|
static HRESULT | interp_typeof (script_ctx_t *ctx) |
|
static HRESULT | interp_minus (script_ctx_t *ctx) |
|
static HRESULT | interp_tonum (script_ctx_t *ctx) |
|
static HRESULT | interp_postinc (script_ctx_t *ctx) |
|
static HRESULT | interp_preinc (script_ctx_t *ctx) |
|
static HRESULT | equal_values (script_ctx_t *ctx, jsval_t lval, jsval_t rval, BOOL *ret) |
|
static HRESULT | interp_eq (script_ctx_t *ctx) |
|
static HRESULT | interp_neq (script_ctx_t *ctx) |
|
static HRESULT | interp_eq2 (script_ctx_t *ctx) |
|
static HRESULT | interp_neq2 (script_ctx_t *ctx) |
|
static HRESULT | less_eval (script_ctx_t *ctx, jsval_t lval, jsval_t rval, BOOL greater, BOOL *ret) |
|
static HRESULT | interp_lt (script_ctx_t *ctx) |
|
static HRESULT | interp_lteq (script_ctx_t *ctx) |
|
static HRESULT | interp_gt (script_ctx_t *ctx) |
|
static HRESULT | interp_gteq (script_ctx_t *ctx) |
|
static HRESULT | interp_bneg (script_ctx_t *ctx) |
|
static HRESULT | interp_neg (script_ctx_t *ctx) |
|
static HRESULT | interp_lshift (script_ctx_t *ctx) |
|
static HRESULT | interp_rshift (script_ctx_t *ctx) |
|
static HRESULT | interp_rshift2 (script_ctx_t *ctx) |
|
static HRESULT | interp_assign (script_ctx_t *ctx) |
|
static HRESULT | interp_assign_call (script_ctx_t *ctx) |
|
static HRESULT | interp_undefined (script_ctx_t *ctx) |
|
static HRESULT | interp_jmp (script_ctx_t *ctx) |
|
static HRESULT | interp_jmp_z (script_ctx_t *ctx) |
|
static HRESULT | interp_pop (script_ctx_t *ctx) |
|
static HRESULT | interp_ret (script_ctx_t *ctx) |
|
static HRESULT | interp_setret (script_ctx_t *ctx) |
|
static HRESULT | interp_push_acc (script_ctx_t *ctx) |
|
static void | pop_call_frame (script_ctx_t *ctx) |
|
static void | print_backtrace (script_ctx_t *ctx) |
|
static HRESULT | unwind_exception (script_ctx_t *ctx, HRESULT exception_hres) |
|
static HRESULT | enter_bytecode (script_ctx_t *ctx, jsval_t *r) |
|
static HRESULT | bind_event_target (script_ctx_t *ctx, function_code_t *func, jsdisp_t *func_obj) |
|
static HRESULT | setup_scope (script_ctx_t *ctx, call_frame_t *frame, scope_chain_t *scope_chain, jsdisp_t *variable_object, unsigned argc, jsval_t *argv) |
|
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) |
|
|
static const WCHAR | booleanW [] = {'b','o','o','l','e','a','n',0} |
|
static const WCHAR | functionW [] = {'f','u','n','c','t','i','o','n',0} |
|
static const WCHAR | numberW [] = {'n','u','m','b','e','r',0} |
|
static const WCHAR | objectW [] = {'o','b','j','e','c','t',0} |
|
static const WCHAR | stringW [] = {'s','t','r','i','n','g',0} |
|
static const WCHAR | undefinedW [] = {'u','n','d','e','f','i','n','e','d',0} |
|
static const WCHAR | unknownW [] = {'u','n','k','n','o','w','n',0} |
|
static const op_func_t | op_funcs [] |
|
static const unsigned | op_move [] |
|
Definition at line 69 of file engine.c.
70{
71 if(!
ctx->stack_size) {
76 }
else if(
ctx->stack_size ==
ctx->stack_top) {
78
80 if(!new_stack) {
83 }
84
85 ctx->stack = new_stack;
87 }
88
89 ctx->stack[
ctx->stack_top++] =
v;
91}
static void * heap_realloc(void *mem, size_t len)
Referenced by identifier_value(), interp_add(), interp_and(), interp_array(), interp_assign(), interp_assign_call(), interp_bneg(), interp_bool(), interp_carray(), interp_delete(), interp_delete_ident(), interp_div(), interp_double(), interp_eq(), interp_eq2(), interp_forin(), interp_func(), interp_gt(), interp_gteq(), interp_in(), interp_instanceof(), interp_int(), interp_local(), interp_lshift(), interp_lt(), interp_lteq(), interp_member(), interp_minus(), interp_mod(), interp_mul(), interp_neg(), interp_neq(), interp_neq2(), interp_new_obj(), interp_null(), interp_or(), interp_pop_except(), interp_postinc(), interp_preinc(), interp_push_acc(), interp_refval(), interp_regexp(), interp_rshift(), interp_rshift2(), interp_str(), interp_sub(), interp_this(), interp_tonum(), interp_typeofid(), interp_typeofident(), interp_undefined(), interp_void(), interp_xor(), setup_scope(), stack_push_exprval(), stack_push_string(), and unwind_exception().