ReactOS 0.4.16-dev-297-gc569aee
|
#include <math.h>
#include <assert.h>
#include "jscript.h"
#include "engine.h"
#include "wine/debug.h"
Go to the source code of this file.
Macros | |
#define | MIN_BLOCK_SIZE 128 |
#define | ARENA_FREE_FILLER 0xaa |
Variables | |
static const IServiceProviderVtbl | ServiceProviderVtbl |
Definition at line 66 of file jsutils.c.
Referenced by chmc_crunch_lzx(), ctl2_alloc_segment(), ext4_xattr_entry_data(), FDSA_Initialize(), heap_pool_alloc(), heap_pool_clear(), heap_pool_grow(), load_APE_metadata(), lznt1_decompress(), lzx_compress_block(), RtlpCompressBufferLZNT1(), sort_linked_list(), test_fdsa(), test_marshal_HGLOBAL(), and urlcache_entry_alloc().
HRESULT create_jscaller | ( | script_ctx_t * | ctx | ) |
Definition at line 1047 of file jsutils.c.
Referenced by JScriptParse_InitNew().
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 727 of file jsutils.c.
Referenced by literal_as_string(), stringify(), and to_string().
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 heap_pool_free().
void heap_pool_free | ( | heap_pool_t * | heap | ) |
void * heap_pool_grow | ( | heap_pool_t * | heap, |
void * | mem, | ||
DWORD | size, | ||
DWORD | inc | ||
) |
void heap_pool_init | ( | heap_pool_t * | heap | ) |
heap_pool_t * heap_pool_mark | ( | heap_pool_t * | heap | ) |
|
inlinestatic |
Definition at line 974 of file jsutils.c.
Referenced by JSCaller_AddRef(), JSCaller_QueryInterface(), JSCaller_QueryService(), and JSCaller_Release().
Definition at line 58 of file jsutils.c.
Referenced by JSGlobal_isFinite(), Number_toExponential(), Number_toFixed(), Number_toPrecision(), Number_toString(), stringify(), and to_int32().
|
static |
Definition at line 999 of file jsutils.c.
|
static |
|
static |
Definition at line 1024 of file jsutils.c.
|
static |
Definition at line 231 of file jsutils.c.
Referenced by Arguments_idx_get(), Arguments_idx_put(), create_bind_function(), detach_arguments_object(), Enumerator_item(), exprval_propget(), exprval_propput(), interp_local(), jsdisp_define_property(), JSGlobal_eval(), maybe_to_primitive(), prop_get(), prop_put(), RegExp_get_lastIndex(), RegExp_set_lastIndex(), setup_scope(), to_primitive(), and VBArrayConstr_value().
Definition at line 191 of file jsutils.c.
Referenced by add_eval(), Arguments_destructor(), Arguments_idx_put(), Array_forEach(), Array_indexOf(), array_join(), Array_map(), Array_pop(), Array_reverse(), Array_shift(), Array_slice(), Array_sort(), Array_splice(), array_to_args(), Array_unshift(), bind_event_target(), BindFunction_destructor(), clear_acc(), clear_ei(), concat_array(), convert_params(), DateConstr_value(), delete_prop(), DispatchEx_InvokeEx(), enter_bytecode(), Enumerator_destructor(), enumvar_get_next_item(), equal_values(), Error_toString(), exprval_propput(), exprval_release(), Function_apply(), get_length(), init_dispex_from_constr(), interp_add(), interp_array(), interp_assign(), interp_bneg(), interp_carray_set(), interp_case(), interp_delete(), interp_enter_catch(), interp_eq(), interp_eq2(), interp_gt(), interp_gteq(), interp_in(), interp_instanceof(), interp_jmp_z(), interp_lt(), interp_lteq(), interp_memberid(), interp_neg(), interp_neq(), interp_neq2(), interp_obj_prop(), interp_postinc(), interp_preinc(), interp_push_scope(), interp_ret(), interp_setret(), interp_throw(), interp_tonum(), interp_typeof(), interp_typeofid(), interp_typeofident(), JScriptParse_ParseScriptText(), jsdisp_define_properties(), jsdisp_define_property(), jsdisp_free(), JSON_parse(), JSON_stringify(), less_eval(), parse_json_value(), pop_call_frame(), prop_put(), RegExp_destructor(), RegExp_set_lastIndex(), release_property_descriptor(), rep_call(), script_release(), set_last_index(), setup_scope(), sort_cmp(), stack_pop_number(), stack_pop_object(), stack_popn(), stack_push(), stringify(), stringify_object(), throw_error(), to_number(), to_property_descriptor(), to_string(), unwind_exception(), variant_change_type(), and VBArray_toArray().
Definition at line 347 of file jsutils.c.
Referenced by disp_call(), disp_call_value(), disp_propput(), DispatchEx_InvokeEx(), and JScriptParse_ParseScriptText().
Definition at line 210 of file jsutils.c.
Referenced by jsval_copy(), and variant_to_jsval().
Definition at line 515 of file jsutils.c.
Referenced by to_number().
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 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().
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 258 of file jsutils.c.
Referenced by convert_params(), disp_call(), disp_call_value(), disp_propget(), DispatchEx_InvokeEx(), enumvar_get_next_item(), variant_change_type(), VBArray_getItem(), and VBArray_toArray().
WINE_DECLARE_DEBUG_CHANNEL | ( | heap | ) |
WINE_DEFAULT_DEBUG_CHANNEL | ( | jscript | ) |
|
static |
Definition at line 1040 of file jsutils.c.
Referenced by create_jscaller().