ReactOS 0.4.16-dev-297-gc569aee
|
#include <stdarg.h>
#include <stdio.h>
#include <stdint.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "dispex.h"
#include "activscp.h"
#include "resource.h"
#include "wine/heap.h"
#include "wine/list.h"
#include "jsval.h"
Go to the source code of this file.
Classes | |
struct | heap_pool_t |
struct | vdisp_t |
struct | builtin_prop_t |
struct | builtin_info_t |
struct | jsdisp_t |
struct | named_item_t |
struct | cc_ctx_t |
struct | JSCaller |
struct | _property_desc_t |
struct | jsexcept_t |
struct | match_result_t |
struct | _script_ctx_t |
Typedefs | |
typedef struct _jsval_t | jsval_t |
typedef struct _jsstr_t | jsstr_t |
typedef struct _script_ctx_t | script_ctx_t |
typedef struct _dispex_prop_t | dispex_prop_t |
typedef struct _property_desc_t | property_desc_t |
typedef struct jsdisp_t | jsdisp_t |
typedef HRESULT(* | builtin_invoke_t) (script_ctx_t *, vdisp_t *, WORD, unsigned, jsval_t *, jsval_t *) |
typedef HRESULT(* | builtin_getter_t) (script_ctx_t *, jsdisp_t *, jsval_t *) |
typedef HRESULT(* | builtin_setter_t) (script_ctx_t *, jsdisp_t *, jsval_t) |
typedef struct named_item_t | named_item_t |
typedef struct _cc_var_t | cc_var_t |
Enumerations | |
enum | jsclass_t { JSCLASS_NONE , JSCLASS_ARRAY , JSCLASS_BOOLEAN , JSCLASS_DATE , JSCLASS_ENUMERATOR , JSCLASS_ERROR , JSCLASS_FUNCTION , JSCLASS_GLOBAL , JSCLASS_MATH , JSCLASS_NUMBER , JSCLASS_OBJECT , JSCLASS_REGEXP , JSCLASS_STRING , JSCLASS_ARGUMENTS , JSCLASS_VBARRAY , JSCLASS_JSON } |
enum | hint_t { NO_HINT , HINT_STRING , HINT_NUMBER } |
Variables | |
HINSTANCE jscript_hinstance | DECLSPEC_HIDDEN |
#define DEFAULT_FUNCTION_VALUE {NULL, Function_value,0, Function_get_value} |
#define DISPATCH_JSCRIPT_INTERNAL_MASK DISPATCH_JSCRIPT_CALLEREXECSSOURCE |
#define JS_E_ARRAY_EXPECTED MAKE_JSERROR(IDS_ARRAY_EXPECTED) |
#define JS_E_BOOLEAN_EXPECTED MAKE_JSERROR(IDS_NOT_BOOL) |
#define JS_E_CANNOT_CREATE_OBJ MAKE_JSERROR(IDS_CREATE_OBJ_ERROR) |
#define JS_E_DATE_EXPECTED MAKE_JSERROR(IDS_NOT_DATE) |
#define JS_E_DISABLED_CC MAKE_JSERROR(IDS_DISABLED_CC) |
#define JS_E_ENUMERATOR_EXPECTED MAKE_JSERROR(IDS_NOT_ENUMERATOR) |
#define JS_E_EXPECTED_ASSIGN MAKE_JSERROR(IDS_EXPECTED_ASSIGN) |
#define JS_E_EXPECTED_AT MAKE_JSERROR(IDS_EXPECTED_AT) |
#define JS_E_EXPECTED_CCEND MAKE_JSERROR(IDS_EXPECTED_CCEND) |
#define JS_E_EXPECTED_IDENTIFIER MAKE_JSERROR(IDS_EXPECTED_IDENTIFIER) |
#define JS_E_FRACTION_DIGITS_OUT_OF_RANGE MAKE_JSERROR(IDS_FRACTION_DIGITS_OUT_OF_RANGE) |
#define JS_E_FUNCTION_EXPECTED MAKE_JSERROR(IDS_NOT_FUNC) |
#define JS_E_ILLEGAL_ASSIGN MAKE_JSERROR(IDS_ILLEGAL_ASSIGN) |
#define JS_E_INVALID_ACTION MAKE_JSERROR(IDS_UNSUPPORTED_ACTION) |
#define JS_E_INVALID_BREAK MAKE_JSERROR(IDS_INVALID_BREAK) |
#define JS_E_INVALID_CHAR MAKE_JSERROR(IDS_INVALID_CHAR) |
#define JS_E_INVALID_CONTINUE MAKE_JSERROR(IDS_INVALID_CONTINUE) |
#define JS_E_INVALID_DELETE MAKE_JSERROR(IDS_INVALID_DELETE) |
#define JS_E_INVALID_LENGTH MAKE_JSERROR(IDS_INVALID_LENGTH) |
#define JS_E_INVALID_PROPERTY MAKE_JSERROR(IDS_NO_PROPERTY) |
#define JS_E_INVALID_URI_CHAR MAKE_JSERROR(IDS_URI_INVALID_CHAR) |
#define JS_E_INVALID_URI_CODING MAKE_JSERROR(IDS_URI_INVALID_CODING) |
#define JS_E_INVALID_WRITABLE_PROP_DESC MAKE_JSERROR(IDS_INVALID_WRITABLE_PROP_DESC) |
#define JS_E_INVALIDARG MAKE_JSERROR(IDS_INVALID_CALL_ARG) |
#define JS_E_JSCRIPT_EXPECTED MAKE_JSERROR(IDS_JSCRIPT_EXPECTED) |
#define JS_E_LABEL_NOT_FOUND MAKE_JSERROR(IDS_LABEL_NOT_FOUND) |
#define JS_E_LABEL_REDEFINED MAKE_JSERROR(IDS_LABEL_REDEFINED) |
#define JS_E_MISPLACED_RETURN MAKE_JSERROR(IDS_MISPLACED_RETURN) |
#define JS_E_MISSING_ARG MAKE_JSERROR(IDS_ARG_NOT_OPT) |
#define JS_E_MISSING_LBRACKET MAKE_JSERROR(IDS_LBRACKET) |
#define JS_E_MISSING_RBRACKET MAKE_JSERROR(IDS_RBRACKET) |
#define JS_E_MISSING_SEMICOLON MAKE_JSERROR(IDS_SEMICOLON) |
#define JS_E_NONCONFIGURABLE_REDEFINED MAKE_JSERROR(IDS_NONCONFIGURABLE_REDEFINED) |
#define JS_E_NONWRITABLE_MODIFIED MAKE_JSERROR(IDS_NONWRITABLE_MODIFIED) |
#define JS_E_NUMBER_EXPECTED MAKE_JSERROR(IDS_NOT_NUM) |
#define JS_E_OBJECT_EXPECTED MAKE_JSERROR(IDS_OBJECT_EXPECTED) |
#define JS_E_OBJECT_REQUIRED MAKE_JSERROR(IDS_OBJECT_REQUIRED) |
#define JS_E_PRECISION_OUT_OF_RANGE MAKE_JSERROR(IDS_PRECISION_OUT_OF_RANGE) |
#define JS_E_PROP_DESC_MISMATCH MAKE_JSERROR(IDS_PROP_DESC_MISMATCH) |
#define JS_E_REGEXP_SYNTAX MAKE_JSERROR(IDS_REGEXP_SYNTAX_ERROR) |
#define JS_E_SUBSCRIPT_OUT_OF_RANGE MAKE_JSERROR(IDS_SUBSCRIPT_OUT_OF_RANGE) |
#define JS_E_SYNTAX MAKE_JSERROR(IDS_SYNTAX_ERROR) |
#define JS_E_TO_PRIMITIVE MAKE_JSERROR(IDS_TO_PRIMITIVE) |
#define JS_E_UNDEFINED_VARIABLE MAKE_JSERROR(IDS_UNDEFINED) |
#define JS_E_UNTERMINATED_STRING MAKE_JSERROR(IDS_UNTERMINATED_STR) |
#define JS_E_VBARRAY_EXPECTED MAKE_JSERROR(IDS_NOT_VBARRAY) |
#define MAKE_JSERROR | ( | code | ) | MAKE_HRESULT(SEVERITY_ERROR, FACILITY_JSCRIPT, code) |
#define PROPF_ALL (PROPF_ENUMERABLE | PROPF_WRITABLE | PROPF_CONFIGURABLE) |
#define PROPF_ES5 ((SCRIPTLANGUAGEVERSION_HTML|SCRIPTLANGUAGEVERSION_ES5) << PROPF_VERSION_SHIFT) |
#define PROPF_HTML (SCRIPTLANGUAGEVERSION_HTML << PROPF_VERSION_SHIFT) |
typedef HRESULT(* builtin_getter_t) (script_ctx_t *, jsdisp_t *, jsval_t *) |
typedef HRESULT(* builtin_setter_t) (script_ctx_t *, jsdisp_t *, jsval_t) |
typedef struct _dispex_prop_t dispex_prop_t |
typedef struct named_item_t named_item_t |
typedef struct _property_desc_t property_desc_t |
typedef struct _script_ctx_t script_ctx_t |
Enumerator | |
---|---|
NO_HINT | |
HINT_STRING | |
HINT_NUMBER |
Definition at line 119 of file jscript.h.
Definition at line 73 of file array.c.
Referenced by stringify_array().
Definition at line 908 of file dispex.c.
Referenced by interp_obj_prop().
Definition at line 52 of file bool.c.
Referenced by maybe_to_primitive().
HRESULT builtin_set_const | ( | script_ctx_t * | ctx, |
jsdisp_t * | jsthis, | ||
jsval_t | value | ||
) |
void clear_ei | ( | script_ctx_t * | ctx | ) |
Definition at line 430 of file engine.c.
Referenced by compile_error(), disp_call(), disp_call_value(), disp_propget(), disp_propput(), DispatchEx_InvokeEx(), Err_Clear(), exec_global_code(), index_from_val(), JScriptParse_ParseScriptText(), release_script(), script_release(), unwind_exception(), and variant_change_type().
HRESULT create_activex_constr | ( | script_ctx_t * | ctx, |
jsdisp_t ** | ret | ||
) |
Definition at line 188 of file activex.c.
Referenced by init_global().
HRESULT create_array | ( | script_ctx_t * | ctx, |
DWORD | length, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 1381 of file array.c.
Referenced by Array_concat(), Array_map(), Array_slice(), Array_splice(), ArrayConstr_value(), create_match_array(), interp_carray(), parse_json_value(), regexp_string_match(), String_split(), and VBArray_toArray().
HRESULT create_array_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 1364 of file array.c.
Referenced by init_constructors().
IUnknown * create_ax_site | ( | script_ctx_t * | ctx | ) |
Definition at line 324 of file jscript.c.
HRESULT create_bool | ( | script_ctx_t * | ctx, |
BOOL | b, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 216 of file bool.c.
Referenced by BoolConstr_value(), and to_object().
HRESULT create_bool_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 198 of file bool.c.
Referenced by init_constructors().
HRESULT create_builtin_constructor | ( | script_ctx_t * | ctx, |
builtin_invoke_t | value_proc, | ||
const WCHAR * | name, | ||
const builtin_info_t * | builtin_info, | ||
DWORD | flags, | ||
jsdisp_t * | prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 686 of file function.c.
Referenced by create_array_constr(), create_bool_constr(), create_date_constr(), create_enumerator_constr(), create_number_constr(), create_object_constr(), create_regexp_constr(), create_string_constr(), create_vbarray_constr(), and init_error_constr().
HRESULT create_builtin_function | ( | script_ctx_t * | ctx, |
builtin_invoke_t | value_proc, | ||
const WCHAR * | name, | ||
const builtin_info_t * | builtin_info, | ||
DWORD | flags, | ||
jsdisp_t * | prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 651 of file function.c.
Referenced by create_activex_constr(), create_builtin_constructor(), and prop_get().
HRESULT create_date_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 2534 of file date.c.
Referenced by init_constructors().
HRESULT create_dispex | ( | script_ctx_t * | ctx, |
const builtin_info_t * | builtin_info, | ||
jsdisp_t * | prototype, | ||
jsdisp_t ** | dispex | ||
) |
Definition at line 957 of file dispex.c.
Referenced by create_object_prototype(), init_global(), interp_enter_catch(), InterpretedFunction_call(), and Object_create().
HRESULT create_enumerator_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 332 of file enumerator.c.
Referenced by init_constructors().
HRESULT create_jscaller | ( | script_ctx_t * | ctx | ) |
Definition at line 1047 of file jsutils.c.
Referenced by JScriptParse_InitNew().
Definition at line 1072 of file jscript.c.
Referenced by JScriptEncodeFactory_CreateInstance(), and JScriptFactory_CreateInstance().
HRESULT create_json | ( | script_ctx_t * | ctx, |
jsdisp_t ** | ret | ||
) |
Definition at line 837 of file json.c.
Referenced by init_global().
HRESULT create_math | ( | script_ctx_t * | ctx, |
jsdisp_t ** | ret | ||
) |
Definition at line 533 of file math.c.
Referenced by init_global().
HRESULT create_number | ( | script_ctx_t * | ctx, |
double | value, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 632 of file number.c.
Referenced by NumberConstr_value(), and to_object().
HRESULT create_number_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 613 of file number.c.
Referenced by init_constructors().
HRESULT create_object | ( | script_ctx_t * | ctx, |
jsdisp_t * | constr, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 731 of file object.c.
Referenced by create_activex_constr(), create_source_function(), d3drm3_CreateObject(), interp_new_obj(), InterpretedFunction_call(), Object_getOwnPropertyDescriptor(), ObjectConstr_value(), parse_json_value(), and to_object().
HRESULT create_object_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 718 of file object.c.
Referenced by init_constructors().
HRESULT create_object_prototype | ( | script_ctx_t * | ctx, |
jsdisp_t ** | ret | ||
) |
Definition at line 726 of file object.c.
Referenced by init_global().
HRESULT create_regexp | ( | script_ctx_t * | ctx, |
jsstr_t * | src, | ||
DWORD | flags, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 644 of file jsregexp.c.
Referenced by create_regexp_var(), interp_new(), interp_regexp(), and String_match().
HRESULT create_regexp_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 1004 of file jsregexp.c.
Referenced by init_constructors().
HRESULT create_regexp_var | ( | script_ctx_t * | ctx, |
jsval_t | src_arg, | ||
jsval_t * | flags_arg, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 674 of file jsregexp.c.
Referenced by RegExpConstr_value(), and String_search().
HRESULT create_string | ( | script_ctx_t * | ctx, |
jsstr_t * | str, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 1787 of file string.c.
Referenced by StringConstr_value(), and to_object().
HRESULT create_string_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 1769 of file string.c.
Referenced by init_constructors().
HRESULT create_vbarray | ( | script_ctx_t * | ctx, |
SAFEARRAY * | sa, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 347 of file vbarray.c.
Referenced by to_object().
HRESULT create_vbarray_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype, | ||
jsdisp_t ** | ret | ||
) |
Definition at line 330 of file vbarray.c.
Referenced by init_constructors().
Definition at line 35 of file jsutils.c.
Referenced by Arguments_idx_put(), Array_forEach(), Array_map(), bind_event_target(), builtin_set_const(), create_regexp_var(), exprval_call(), Function_bind(), interp_add(), interp_carray_set(), interp_eq(), interp_eq2(), interp_gt(), interp_gteq(), interp_lt(), interp_lteq(), interp_neq(), invoke_prop_func(), jsdisp_define_property(), JSGlobal_eval(), JSON_stringify(), Object_create(), Object_getPrototypeOf(), print_backtrace(), prop_get(), prop_put(), to_string(), and unwind_exception().
Definition at line 111 of file decode.c.
Referenced by compile_script().
HRESULT disp_call | ( | script_ctx_t * | ctx, |
IDispatch * | disp, | ||
DISPID | id, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | ret | ||
) |
Definition at line 1136 of file dispex.c.
Referenced by do_icall(), do_mcall(), exprval_call(), and interp_newenum().
HRESULT disp_call_value | ( | script_ctx_t * | ctx, |
IDispatch * | disp, | ||
IDispatch * | jsthis, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 1228 of file dispex.c.
Referenced by Array_forEach(), Array_map(), exprval_call(), Function_apply(), interp_call(), interp_new(), and invoke_prop_func().
Definition at line 1511 of file dispex.c.
Referenced by interp_delete_ident().
HRESULT disp_delete_name | ( | script_ctx_t * | ctx, |
IDispatch * | disp, | ||
jsstr_t * | name, | ||
BOOL * | ret | ||
) |
Definition at line 1574 of file dispex.c.
Referenced by interp_delete().
HRESULT disp_propget | ( | script_ctx_t * | ctx, |
IDispatch * | disp, | ||
DISPID | id, | ||
jsval_t * | val | ||
) |
Definition at line 1458 of file dispex.c.
Referenced by exprval_propget(), interp_array(), interp_member(), and to_primitive().
HRESULT disp_propput | ( | script_ctx_t * | ctx, |
IDispatch * | disp, | ||
DISPID | id, | ||
jsval_t | val | ||
) |
Definition at line 1359 of file dispex.c.
Referenced by assign_ident(), exprval_propput(), interp_assign_member(), and interp_set_member().
Definition at line 727 of file jsutils.c.
Referenced by literal_as_string(), stringify(), and to_string().
HRESULT Function_get_value | ( | script_ctx_t * | ctx, |
jsdisp_t * | jsthis, | ||
jsval_t * | r | ||
) |
Definition at line 487 of file function.c.
HRESULT Function_invoke | ( | jsdisp_t * | func_this, |
IDispatch * | jsthis, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 264 of file function.c.
Referenced by invoke_prop_func(), and jsdisp_call_value().
HRESULT Function_value | ( | script_ctx_t * | ctx, |
vdisp_t * | jsthis, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 471 of file function.c.
Definition at line 199 of file jscript.h.
Referenced by Error_toString(), and Object_toString().
void * heap_pool_alloc | ( | heap_pool_t * | heap, |
DWORD | size | ||
) |
Definition at line 77 of file jsutils.c.
Referenced by add_dynamic_var(), alloc_local(), alloc_match_state(), compiler_alloc(), compiler_alloc_zero(), heap_pool_grow(), InitMatch(), NewRENode(), parser_alloc(), and parser_alloc_tmp().
void heap_pool_clear | ( | heap_pool_t * | heap | ) |
Definition at line 146 of file jsutils.c.
Referenced by RegExp2_Test(), RegExp_exec(), regexp_execute(), regexp_match(), regexp_match_next(), regexp_new(), regexp_string_match(), and RegExp_test().
void heap_pool_free | ( | heap_pool_t * | heap | ) |
Definition at line 169 of file jsutils.c.
Referenced by compile_script(), RegExp2_Release(), release_bytecode(), release_exec(), release_script(), release_vbscode(), and script_release().
void * heap_pool_grow | ( | heap_pool_t * | heap, |
void * | mem, | ||
DWORD | size, | ||
DWORD | inc | ||
) |
Definition at line 130 of file jsutils.c.
Referenced by PushBackTrackState(), and ReallocStateStack().
void heap_pool_init | ( | heap_pool_t * | heap | ) |
Definition at line 71 of file jsutils.c.
Referenced by alloc_vbscode(), compile_script(), create_regexp(), exec_script(), init_code(), JScriptParse_InitNew(), release_script(), and VBScriptFactory_CreateInstance().
heap_pool_t * heap_pool_mark | ( | heap_pool_t * | heap | ) |
Definition at line 182 of file jsutils.c.
Referenced by RegExp2_Test(), RegExp_exec(), regexp_execute(), regexp_match(), regexp_match_next(), regexp_new(), regexp_string_match(), and RegExp_test().
Definition at line 1060 of file dispex.c.
Referenced by Array_sort(), ArrayConstr_isArray(), concat_obj(), create_regexp_var(), disp_call(), disp_call_value(), disp_delete(), disp_delete_name(), disp_get_id(), disp_propget(), disp_propput(), exec_source(), Function_apply(), init_dispex_from_constr(), interp_carray_set(), interp_instanceof(), interp_obj_prop(), maybe_to_primitive(), RegExpConstr_value(), set_disp(), String_match(), String_replace(), String_search(), String_split(), stringify(), to_primitive(), and typeof_string().
HRESULT init_dispex | ( | jsdisp_t * | dispex, |
script_ctx_t * | ctx, | ||
const builtin_info_t * | builtin_info, | ||
jsdisp_t * | prototype | ||
) |
Definition at line 919 of file dispex.c.
Referenced by alloc_array(), alloc_bool(), alloc_doc_node(), alloc_enumerator(), alloc_error(), alloc_number(), alloc_regexp(), alloc_vbarray(), create_child_collection(), create_date(), create_dispex(), create_dom_implementation(), create_event(), create_func_disp(), create_function(), create_history(), create_html_rect(), create_inner_window(), create_mime_types_collection(), create_parseError(), create_plugins_collection(), create_storage(), HTMLCurrentStyle_Create(), HTMLDocument_Create(), HTMLDOMAttribute_Create(), HTMLDOMTextNode_Create(), HTMLElement_get_attr_col(), HTMLElement_Init(), HTMLElementCollection_Create(), HTMLFiltersCollection_Create(), HTMLImageElementFactory_Create(), HTMLLocation_Create(), HTMLOptionElementFactory_Create(), HTMLScreen_Create(), HTMLSelectionObject_Create(), HTMLStyle_Create(), HTMLStyleSheet_Create(), HTMLStyleSheetRulesCollection_Create(), HTMLStyleSheetsCollection_Create(), HTMLTxtRange_Create(), HTMLXMLHttpRequestFactory_Create(), HTMLXMLHttpRequestFactory_create(), init_dispex_from_constr(), MXNamespaceManager_create(), MXWriter_create(), OmNavigator_Create(), SAXAttributes_create(), string_alloc(), XSLProcessor_create(), and XSLTemplate_create().
HRESULT init_dispex_from_constr | ( | jsdisp_t * | dispex, |
script_ctx_t * | ctx, | ||
const builtin_info_t * | builtin_info, | ||
jsdisp_t * | constr | ||
) |
Definition at line 1030 of file dispex.c.
Referenced by alloc_array(), alloc_bool(), alloc_enumerator(), alloc_error(), alloc_number(), alloc_regexp(), alloc_vbarray(), create_date(), create_function(), create_json(), create_math(), create_object(), setup_arguments_object(), and string_alloc().
HRESULT init_error_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype | ||
) |
Definition at line 328 of file error.c.
Referenced by init_constructors().
HRESULT init_function_constr | ( | script_ctx_t * | ctx, |
jsdisp_t * | object_prototype | ||
) |
Definition at line 1010 of file function.c.
Referenced by init_constructors().
HRESULT init_global | ( | script_ctx_t * | ctx | ) |
Definition at line 1105 of file global.c.
Definition at line 504 of file jscript.h.
Referenced by array_get_length(), Array_sort(), ArrayConstr_isArray(), bool_obj_value(), concat_obj(), create_regexp_var(), Function_apply(), Function_invoke(), interp_instanceof(), is_callable(), is_vclass(), jsdisp_call_value(), maybe_to_primitive(), RegExpConstr_value(), set_length(), String_match(), String_replace(), String_search(), String_split(), stringify(), to_primitive(), and typeof_string().
Definition at line 58 of file jsutils.c.
Referenced by JSGlobal_isFinite(), Number_toExponential(), Number_toFixed(), Number_toPrecision(), Number_toString(), stringify(), and to_int32().
Definition at line 514 of file jscript.h.
Referenced by Array_splice(), ArrayConstr_value(), double_to_string(), index_from_val(), jsval_to_variant(), String_charAt(), String_charCodeAt(), String_indexOf(), String_lastIndexOf(), String_slice(), String_substr(), and String_substring().
Definition at line 157 of file jscript.h.
Referenced by get_jsdisp(), get_length(), is_vclass(), Object_hasOwnProperty(), Object_propertyIsEnumerable(), and Object_toLocaleString().
Definition at line 509 of file jscript.h.
Referenced by array_this(), bool_this(), date_this(), enumerator_this(), function_this(), Function_value(), number_this(), RegExp_toString(), run_exec(), string_this(), and vbarray_this().
Definition at line 262 of file jscript.h.
Referenced by Array_reverse(), Array_sort(), create_bind_function(), DispatchEx_AddRef(), DispatchEx_QueryInterface(), exec_source(), Function_get_arguments(), iface_to_jsdisp(), init_dispex(), jsdisp_define_property(), jsdisp_get_own_property(), Object_defineProperties(), Object_defineProperty(), Object_getPrototypeOf(), prop_get(), setup_arguments_object(), and stack_topn_exprval().
HRESULT jsdisp_call | ( | jsdisp_t * | disp, |
DISPID | id, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 1113 of file dispex.c.
Referenced by disp_call(), and to_primitive().
HRESULT jsdisp_call_name | ( | jsdisp_t * | disp, |
const WCHAR * | name, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 1124 of file dispex.c.
Referenced by Object_toLocaleString().
HRESULT jsdisp_call_value | ( | jsdisp_t * | jsfunc, |
IDispatch * | jsthis, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 1089 of file dispex.c.
Referenced by disp_call_value(), prop_get(), prop_put(), rep_call(), and sort_cmp().
HRESULT jsdisp_define_data_property | ( | jsdisp_t * | obj, |
const WCHAR * | name, | ||
unsigned | flags, | ||
jsval_t | value | ||
) |
Definition at line 1801 of file dispex.c.
Referenced by create_builtin_function(), create_error(), create_math(), create_source_function(), init_constructors(), init_error_constr(), init_function_constr(), init_global(), Object_getOwnPropertyDescriptor(), set_constructor_prop(), and setup_arguments_object().
HRESULT jsdisp_define_property | ( | jsdisp_t * | obj, |
const WCHAR * | name, | ||
property_desc_t * | desc | ||
) |
Definition at line 1677 of file dispex.c.
Referenced by interp_obj_prop(), jsdisp_define_data_property(), jsdisp_define_properties(), and Object_defineProperty().
Definition at line 1494 of file dispex.c.
Referenced by Array_pop(), Array_reverse(), Array_set_length(), Array_shift(), and Array_splice().
Definition at line 976 of file dispex.c.
Referenced by DispatchEx_Release(), and jsdisp_release().
Definition at line 1067 of file dispex.c.
Referenced by Array_unshift(), disp_get_id(), DispatchEx_GetDispID(), exec_source(), identifier_eval(), interp_identifier_ref(), stack_topn_exprval(), stringify(), to_primitive(), and to_property_descriptor().
Definition at line 1425 of file dispex.c.
Referenced by Array_forEach(), Array_indexOf(), array_join(), Array_map(), Array_pop(), Array_reverse(), Array_shift(), Array_slice(), Array_sort(), Array_splice(), array_to_args(), concat_array(), and stringify_array().
HRESULT jsdisp_get_own_property | ( | jsdisp_t * | obj, |
const WCHAR * | name, | ||
BOOL | flags_only, | ||
property_desc_t * | desc | ||
) |
Definition at line 1633 of file dispex.c.
Referenced by Object_getOwnPropertyDescriptor(), Object_hasOwnProperty(), and Object_propertyIsEnumerable().
Definition at line 1546 of file dispex.c.
Referenced by DispatchEx_GetNextDispID(), and jsdisp_define_properties().
Definition at line 1447 of file dispex.c.
Referenced by Array_unshift(), disp_propget(), jsdisp_define_properties(), stringify_object(), and to_property_descriptor().
Definition at line 1332 of file dispex.c.
Referenced by jsdisp_propput_name(), and setup_arguments_object().
Definition at line 1349 of file dispex.c.
Referenced by Array_concat(), Array_map(), Array_push(), Array_reverse(), Array_shift(), Array_slice(), Array_sort(), Array_splice(), Array_unshift(), ArrayConstr_value(), concat_array(), concat_obj(), create_match_array(), interp_carray_set(), parse_json_value(), regexp_string_match(), String_split(), and VBArray_toArray().
Definition at line 1344 of file dispex.c.
Referenced by Arguments_idx_put(), Array_splice(), create_match_array(), detach_arguments_object(), detach_variable_object(), exec_source(), interp_enter_catch(), interp_obj_prop(), jsdisp_propput_idx(), Object_getOwnPropertyDescriptor(), parse_json_value(), regexp_string_match(), and set_length().
Definition at line 268 of file jscript.h.
Referenced by Arguments_destructor(), Array_concat(), Array_map(), Array_slice(), Array_sort(), Array_splice(), ArrayConstr_isArray(), ArrayConstr_value(), BindFunction_destructor(), concat_obj(), create_activex_constr(), create_array_constr(), create_bind_function(), create_bool_constr(), create_builtin_constructor(), create_builtin_function(), create_date_constr(), create_enumerator(), create_enumerator_constr(), create_error(), create_match_array(), create_math(), create_number_constr(), create_regexp(), create_regexp_constr(), create_regexp_var(), create_source_function(), create_string_constr(), create_vbarray(), create_vbarray_constr(), decrease_state(), detach_arguments_object(), disp_call(), disp_call_value(), disp_delete(), disp_delete_name(), disp_get_id(), disp_propget(), disp_propput(), error_constr(), exec_source(), Function_apply(), Function_bind(), init_dispex_from_constr(), init_error_constr(), init_function_constr(), init_global(), interp_enter_catch(), interp_instanceof(), interp_obj_prop(), InterpretedFunction_call(), jsdisp_define_properties(), jsdisp_define_property(), jsdisp_free(), maybe_to_primitive(), Object_create(), Object_getOwnPropertyDescriptor(), ObjectConstr_value(), parse_json_value(), pop_call_frame(), regexp_string_match(), RegExpConstr_value(), release_property_descriptor(), setup_arguments_object(), String_match(), String_replace(), String_search(), String_split(), stringify(), to_primitive(), typeof_string(), VBArray_toArray(), and VBArrayConstr_value().
HRESULT JSGlobal_eval | ( | script_ctx_t * | ctx, |
vdisp_t * | jsthis, | ||
WORD | flags, | ||
unsigned | argc, | ||
jsval_t * | argv, | ||
jsval_t * | r | ||
) |
Definition at line 183 of file global.c.
Referenced by invoke_prop_func().
Definition at line 531 of file engine.c.
Referenced by Array_indexOf(), equal_values(), interp_case(), interp_eq2(), interp_neq2(), and jsdisp_define_property().
|
inlinestatic |
Definition at line 519 of file jscript.h.
Referenced by disp_delete_name(), disp_get_id(), and Object_hasOwnProperty().
Definition at line 1022 of file jsregexp.c.
Referenced by create_regexp_var(), and parse_regexp().
HRESULT regexp_match_next | ( | script_ctx_t * | ctx, |
jsdisp_t * | dispex, | ||
DWORD | rem_flags, | ||
jsstr_t * | jsstr, | ||
struct match_state_t ** | ret | ||
) |
Definition at line 125 of file jsregexp.c.
Referenced by regexp_string_match(), run_exec(), String_replace(), String_search(), and String_split().
HRESULT regexp_string_match | ( | script_ctx_t * | ctx, |
jsdisp_t * | re, | ||
jsstr_t * | jsstr, | ||
jsval_t * | r | ||
) |
Definition at line 727 of file jsregexp.c.
Referenced by String_match().
Definition at line 817 of file lex.c.
Referenced by init_cc(), and script_release().
|
inlinestatic |
void script_release | ( | script_ctx_t * | ctx | ) |
Definition at line 67 of file jscript.c.
Referenced by JScript_Release(), JScriptParse_InitNew(), and jsdisp_free().
Definition at line 174 of file jscript.h.
Referenced by invoke_prop_func(), jsdisp_call_value(), and NativeFunction_call().
Definition at line 167 of file jscript.h.
Referenced by invoke_prop_func(), and NativeFunction_call().
HRESULT throw_eval_error | ( | script_ctx_t * | , |
HRESULT | , | ||
const WCHAR * | |||
) |
HRESULT throw_generic_error | ( | script_ctx_t * | ctx, |
HRESULT | error, | ||
const WCHAR * | str | ||
) |
Definition at line 415 of file error.c.
Referenced by ActiveXObject_value().
HRESULT throw_range_error | ( | script_ctx_t * | ctx, |
HRESULT | error, | ||
const WCHAR * | str | ||
) |
Definition at line 420 of file error.c.
Referenced by Array_set_length(), ArrayConstr_value(), Number_toExponential(), Number_toFixed(), Number_toPrecision(), VBArray_getItem(), VBArray_lbound(), and VBArray_ubound().
HRESULT throw_reference_error | ( | script_ctx_t * | ctx, |
HRESULT | error, | ||
const WCHAR * | str | ||
) |
Definition at line 425 of file error.c.
Referenced by interp_assign(), interp_assign_call(), interp_refval(), and interp_throw_ref().
HRESULT throw_regexp_error | ( | script_ctx_t * | ctx, |
HRESULT | error, | ||
const WCHAR * | str | ||
) |
Definition at line 430 of file error.c.
Referenced by RegExpConstr_value().
HRESULT throw_syntax_error | ( | script_ctx_t * | ctx, |
HRESULT | error, | ||
const WCHAR * | str | ||
) |
Definition at line 435 of file error.c.
Referenced by EnumeratorConstr_value(), and JSGlobal_eval().
HRESULT throw_type_error | ( | script_ctx_t * | ctx, |
HRESULT | error, | ||
const WCHAR * | str | ||
) |
Definition at line 440 of file error.c.
Referenced by Array_toString(), Bool_toString(), Bool_value(), Bool_valueOf(), create_utc_string(), Date_getDate(), Date_getDay(), Date_getFullYear(), Date_getHours(), Date_getMilliseconds(), Date_getMinutes(), Date_getMonth(), Date_getSeconds(), Date_getTime(), Date_getTimezoneOffset(), Date_getUTCDate(), Date_getUTCDay(), Date_getUTCFullYear(), Date_getUTCHours(), Date_getUTCMilliseconds(), Date_getUTCMinutes(), Date_getUTCMonth(), Date_getUTCSeconds(), Date_getYear(), Date_setDate(), Date_setFullYear(), Date_setHours(), Date_setMilliseconds(), Date_setMinutes(), Date_setMonth(), Date_setSeconds(), Date_setTime(), Date_setUTCDate(), Date_setUTCFullYear(), Date_setUTCHours(), Date_setUTCMilliseconds(), Date_setUTCMinutes(), Date_setUTCMonth(), Date_setUTCSeconds(), Date_setYear(), Date_toDateString(), Date_toISOString(), Date_toLocaleDateString(), Date_toLocaleString(), Date_toLocaleTimeString(), Date_toString(), Date_toTimeString(), Date_valueOf(), Enumerator_atEnd(), Enumerator_item(), Enumerator_moveFirst(), Enumerator_moveNext(), Error_value(), Function_apply(), Function_bind(), Function_call(), Function_toString(), get_length(), identifier_value(), interp_call(), interp_call_member(), interp_in(), interp_instanceof(), interp_new(), interp_postinc(), interp_preinc(), interp_throw_type(), jsdisp_call_value(), jsdisp_define_property(), Number_toExponential(), Number_toFixed(), Number_toPrecision(), Number_toString(), Number_valueOf(), Object_defineProperty(), Object_getOwnPropertyDescriptor(), RegExp_value(), stack_pop_object(), to_object(), to_primitive(), to_property_descriptor(), VBArray_dimensions(), VBArray_getItem(), VBArray_lbound(), VBArray_toArray(), VBArray_ubound(), and VBArrayConstr_value().
HRESULT throw_uri_error | ( | script_ctx_t * | ctx, |
HRESULT | error, | ||
const WCHAR * | str | ||
) |
Definition at line 445 of file error.c.
Referenced by JSGlobal_decodeURI(), JSGlobal_encodeURI(), and JSGlobal_encodeURIComponent().
Definition at line 472 of file jsutils.c.
Referenced by BoolConstr_value(), interp_cnd_nz(), interp_cnd_z(), interp_jmp_z(), interp_neg(), to_property_descriptor(), and variant_change_type().
Definition at line 245 of file jscript.h.
Referenced by construct_function(), create_match_array(), exec_source(), identifier_eval(), interp_enter_catch(), interp_identifier_ref(), interp_instanceof(), InterpretedFunction_call(), JScript_GetScriptDispatch(), JScriptParseProcedure_ParseProcedureText(), jsdisp_call(), jsdisp_call_name(), jsval_obj(), print_backtrace(), prop_get(), prop_put(), setup_scope(), and to_object().
Definition at line 798 of file jsutils.c.
Referenced by ActiveXObject_value(), Array_join(), interp_array(), interp_in(), interp_memberid(), JSGlobal_decodeURI(), JSGlobal_decodeURIComponent(), JSGlobal_encodeURI(), JSGlobal_encodeURIComponent(), JSGlobal_escape(), JSGlobal_parseFloat(), JSGlobal_parseInt(), JSGlobal_unescape(), JSON_parse(), Object_defineProperty(), Object_getOwnPropertyDescriptor(), Object_propertyIsEnumerable(), run_exec(), String_indexOf(), String_lastIndexOf(), String_replace(), String_split(), and String_trim().
HRESULT to_int32 | ( | script_ctx_t * | ctx, |
jsval_t | v, | ||
INT * | ret | ||
) |
Definition at line 665 of file jsutils.c.
Referenced by interp_bneg(), JSGlobal_parseInt(), Number_toExponential(), Number_toFixed(), Number_toPrecision(), Number_toString(), stack_pop_int(), to_uint32(), variant_change_type(), VBArray_getItem(), VBArray_lbound(), and VBArray_ubound().
HRESULT to_integer | ( | script_ctx_t * | ctx, |
jsval_t | v, | ||
double * | ret | ||
) |
Definition at line 648 of file jsutils.c.
Referenced by Array_indexOf(), Array_splice(), String_charAt(), String_charCodeAt(), String_indexOf(), String_lastIndexOf(), String_slice(), String_substr(), and String_substring().
Definition at line 914 of file dispex.c.
Referenced by interp_push_scope(), jsdisp_define_properties(), Object_create(), Object_defineProperties(), Object_defineProperty(), Object_getOwnPropertyDescriptor(), Object_getPrototypeOf(), to_property_descriptor(), and unwind_exception().
HRESULT to_number | ( | script_ctx_t * | ctx, |
jsval_t | val, | ||
double * | ret | ||
) |
Definition at line 609 of file jsutils.c.
Referenced by add_eval(), Array_set_length(), Array_slice(), Date_setDate(), Date_setFullYear(), Date_setHours(), Date_setMilliseconds(), Date_setMinutes(), Date_setMonth(), Date_setSeconds(), Date_setTime(), Date_setUTCDate(), Date_setUTCFullYear(), Date_setUTCHours(), Date_setUTCMilliseconds(), Date_setUTCMinutes(), Date_setUTCMonth(), Date_setUTCSeconds(), Date_setYear(), date_utc(), DateConstr_value(), equal_values(), error_constr(), index_from_val(), interp_postinc(), interp_preinc(), interp_tonum(), JSGlobal_isFinite(), JSGlobal_isNaN(), less_eval(), Math_abs(), Math_acos(), Math_asin(), Math_atan(), Math_atan2(), Math_ceil(), Math_cos(), Math_exp(), Math_floor(), Math_log(), Math_max(), Math_min(), Math_pow(), Math_round(), Math_sin(), Math_sqrt(), Math_tan(), maybe_to_primitive(), NumberConstr_value(), sort_cmp(), stack_pop_number(), to_int32(), to_integer(), to_number(), and variant_change_type().
HRESULT to_object | ( | script_ctx_t * | ctx, |
jsval_t | val, | ||
IDispatch ** | disp | ||
) |
Definition at line 816 of file jsutils.c.
Referenced by Function_apply(), Function_call(), interp_delete(), interp_memberid(), interp_push_scope(), jsdisp_define_properties(), ObjectConstr_value(), and stack_pop_object().
HRESULT to_primitive | ( | script_ctx_t * | ctx, |
jsval_t | val, | ||
jsval_t * | ret, | ||
hint_t | hint | ||
) |
Definition at line 404 of file jsutils.c.
Referenced by add_eval(), DateConstr_value(), equal_values(), less_eval(), to_number(), and to_string().
HRESULT to_string | ( | script_ctx_t * | ctx, |
jsval_t | val, | ||
jsstr_t ** | str | ||
) |
Definition at line 757 of file jsutils.c.
Referenced by to_flat_string(), to_string(), and variant_change_type().
HRESULT to_uint32 | ( | script_ctx_t * | ctx, |
jsval_t | val, | ||
UINT32 * | ret | ||
) |
Definition at line 686 of file jsutils.c.
Referenced by array_to_args(), get_length(), stack_pop_uint(), String_split(), StringConstr_fromCharCode(), and variant_change_type().
HRESULT variant_change_type | ( | script_ctx_t * | ctx, |
VARIANT * | dst, | ||
VARIANT * | src, | ||
VARTYPE | vt | ||
) |
Definition at line 881 of file jsutils.c.
Referenced by VariantChangeType_ChangeType().
Definition at line 152 of file jscript.h.
Referenced by invoke_prop_func(), jsdisp_call_value(), and NativeFunction_call().
|
extern |