ReactOS 0.4.16-dev-297-gc569aee
|
#include <math.h>
#include <assert.h>
#include "jscript.h"
#include "engine.h"
#include "parser.h"
#include "wine/rbtree.h"
#include "wine/debug.h"
Go to the source code of this file.
Classes | |
struct | _statement_ctx_t |
struct | function_local_t |
struct | _compiler_ctx_t |
Macros | |
#define | X(n, a, b, c) {#n,b,c}, |
#define | LABEL_FLAG 0x80000000 |
Typedefs | |
typedef struct _statement_ctx_t | statement_ctx_t |
typedef struct _compiler_ctx_t | compiler_ctx_t |
Variables | |
struct { | |
const char * op_str | |
instr_arg_type_t arg1_type | |
instr_arg_type_t arg2_type | |
} | instr_info [] |
typedef struct _compiler_ctx_t compiler_ctx_t |
typedef struct _statement_ctx_t statement_ctx_t |
|
static |
Definition at line 395 of file compile.c.
Referenced by compile_dowhile_statement(), compile_for_statement(), compile_foreach_statement(), compile_forin_statement(), compile_forto_statement(), compile_func(), compile_if_statement(), compile_labelled_statement(), compile_select_statement(), compile_switch_statement(), and compile_while_statement().
|
static |
Definition at line 1848 of file compile.c.
Referenced by alloc_variable(), and compile_function().
|
static |
Definition at line 1863 of file compile.c.
Referenced by visit_function_expression(), and visit_variable_list().
|
static |
Definition at line 427 of file compile.c.
Referenced by emit_identifier(), and emit_identifier_ref().
|
static |
Definition at line 2445 of file compile.c.
Referenced by compile_script().
|
static |
Definition at line 865 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 729 of file compile.c.
Referenced by compile_expression().
|
static |
|
static |
Definition at line 1113 of file compile.c.
Referenced by compile_function(), and compile_statement().
|
static |
Definition at line 1472 of file compile.c.
Referenced by compile_statement().
|
static |
|
static |
|
static |
Definition at line 566 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 1419 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 670 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 923 of file compile.c.
Referenced by compile_args(), compile_array_literal(), compile_assign_expression(), compile_assignment(), compile_binary_expression(), compile_call_expression(), compile_comma_expression(), compile_conditional_expression(), compile_const_statement(), compile_delete_expression(), compile_dowhile_statement(), compile_expression(), compile_expression_statement(), compile_for_statement(), compile_foreach_statement(), compile_forin_statement(), compile_forto_statement(), compile_if_statement(), compile_increment_expression(), compile_logical_expression(), compile_member_expression(), compile_memberid_expression(), compile_new_expression(), compile_object_literal(), compile_return_statement(), compile_retval_statement(), compile_select_statement(), compile_switch_statement(), compile_throw_statement(), compile_typeof_expression(), compile_unary_expression(), compile_variable_list(), compile_while_statement(), and compile_with_statement().
|
static |
|
static |
Definition at line 1268 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 1325 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 2272 of file compile.c.
Referenced by compile_function(), and compile_script().
|
static |
Definition at line 918 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 1178 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 512 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 1557 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 833 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 544 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 382 of file compile.c.
Referenced by compile_call_statement(), and compile_expression().
|
static |
Definition at line 461 of file compile.c.
Referenced by compile_assign_expression(), compile_call_expression(), compile_forin_statement(), compile_increment_expression(), and compile_typeof_expression().
|
static |
Definition at line 600 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 892 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 1509 of file compile.c.
Referenced by compile_statement().
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().
|
static |
Definition at line 1766 of file compile.c.
Referenced by compile_block_statement(), compile_dowhile_statement(), compile_for_statement(), compile_foreach_statement(), compile_forin_statement(), compile_forto_statement(), compile_func(), compile_if_statement(), compile_labelled_statement(), compile_select_statement(), compile_switch_statement(), compile_try_statement(), compile_while_statement(), and compile_with_statement().
|
static |
Definition at line 1583 of file compile.c.
Referenced by compile_statement().
|
static |
|
static |
Definition at line 1690 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 812 of file compile.c.
Referenced by compile_expression().
|
static |
|
static |
Definition at line 1160 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 1129 of file compile.c.
Referenced by compile_for_statement(), compile_forin_statement(), and compile_var_statement().
|
static |
Definition at line 1217 of file compile.c.
Referenced by compile_statement().
|
static |
Definition at line 1534 of file compile.c.
Referenced by compile_statement().
|
inlinestatic |
Definition at line 128 of file compile.c.
Referenced by compile_arguments(), compile_class(), compile_func(), compile_function(), compiler_alloc_string(), create_function(), fill_array_desc(), and push_instr_double().
|
static |
Definition at line 187 of file compile.c.
Referenced by alloc_variable(), compile_function(), compile_try_statement(), push_instr_bstr(), and push_instr_bstr_uint().
|
static |
Definition at line 199 of file compile.c.
Referenced by parse_arguments().
|
static |
Definition at line 161 of file compile.c.
Referenced by compile_class(), compile_delete_expression(), compile_func(), compile_memberid_expression(), create_class_funcprop(), create_function(), push_instr_str(), and push_instr_uint_str().
jsstr_t * compiler_alloc_string_len | ( | compiler_ctx_t * | ctx, |
const WCHAR * | str, | ||
unsigned | len | ||
) |
Definition at line 133 of file compile.c.
Referenced by compiler_alloc_string(), parse_regexp(), and parse_string_literal().
|
static |
Definition at line 109 of file compile.c.
Referenced by compile_function(), and compile_script().
|
static |
Definition at line 86 of file compile.c.
Referenced by dump_code().
|
static |
Definition at line 453 of file compile.c.
Referenced by compile_expression().
|
static |
Definition at line 445 of file compile.c.
Referenced by compile_forin_statement(), compile_memberid_expression(), and compile_variable_list().
|
static |
Definition at line 166 of file compile.c.
Referenced by compiler_alloc_bstr(), and compiler_alloc_bstr_len().
|
inlinestatic |
Definition at line 1842 of file compile.c.
Referenced by alloc_variable(), and compile_function().
|
static |
Definition at line 2246 of file compile.c.
Referenced by compile_script().
|
inlinestatic |
Definition at line 230 of file compile.c.
Referenced by compile_array_literal(), compile_assign_expression(), compile_call_expression(), compile_forto_statement(), compile_if_statement(), compile_try_statement(), compile_while_statement(), emit_catch_jmp(), push_instr_addr(), push_instr_bstr(), push_instr_bstr_uint(), push_instr_double(), push_instr_int(), push_instr_str(), push_instr_str_uint(), push_instr_uint(), push_instr_uint_bstr(), push_instr_uint_str(), and set_arg_uint().
|
inlinestatic |
Definition at line 1107 of file compile.c.
Referenced by compile_continue_statement().
|
inlinestatic |
Definition at line 422 of file compile.c.
Referenced by compile_assign_expression(), compile_call_expression(), compile_forin_statement(), compile_increment_expression(), and compile_typeof_expression().
|
static |
Definition at line 416 of file compile.c.
Referenced by compile_dowhile_statement(), compile_for_statement(), compile_foreach_statement(), compile_forin_statement(), compile_forto_statement(), compile_func(), compile_if_statement(), compile_labelled_statement(), compile_select_statement(), compile_switch_statement(), and compile_while_statement().
|
static |
Definition at line 851 of file compile.c.
Referenced by compile_object_literal().
|
static |
Definition at line 2391 of file compile.c.
Referenced by compile_arguments().
|
static |
Definition at line 1386 of file compile.c.
Referenced by compile_break_statement(), compile_continue_statement(), and compile_return_statement().
|
static |
Definition at line 211 of file compile.c.
Referenced by compile_array_literal(), compile_assign_expression(), compile_binary_expression(), compile_call_expression(), compile_conditional_expression(), compile_delete_expression(), compile_expression(), compile_expression_statement(), compile_foreach_statement(), compile_forto_statement(), compile_func(), compile_if_statement(), compile_literal(), compile_logical_expression(), compile_new_expression(), compile_object_literal(), compile_return_statement(), compile_retval_statement(), compile_select_statement(), compile_statement(), compile_switch_statement(), compile_throw_statement(), compile_try_statement(), compile_typeof_expression(), compile_unary_expression(), compile_variable_list(), compile_while_statement(), compile_with_statement(), emit_catch_jmp(), pop_to_stat(), push_instr_addr(), push_instr_bstr(), push_instr_bstr_uint(), push_instr_double(), push_instr_int(), push_instr_str(), push_instr_str_uint(), push_instr_uint(), push_instr_uint_bstr(), and push_instr_uint_str().
|
static |
Definition at line 273 of file compile.c.
Referenced by compile_const_statement(), compile_delete_expression(), compile_member_expression(), compile_try_statement(), compile_typeof_expression(), and emit_identifier().
|
static |
Definition at line 290 of file compile.c.
Referenced by compile_assignment(), compile_dim_statement(), compile_member_expression(), and emit_identifier_ref().
|
static |
Definition at line 326 of file compile.c.
Referenced by compile_expression(), and compile_literal().
|
static |
Definition at line 236 of file compile.c.
Referenced by compile_expression(), compile_forin_statement(), compile_forto_statement(), compile_increment_expression(), compile_literal(), compile_onerror_statement(), emit_identifier(), and emit_identifier_ref().
|
static |
Definition at line 248 of file compile.c.
Referenced by compile_delete_expression(), compile_expression(), compile_literal(), and compile_memberid_expression().
|
static |
Definition at line 260 of file compile.c.
Referenced by compile_literal(), and compile_object_literal().
|
static |
Definition at line 343 of file compile.c.
Referenced by compile_array_literal(), compile_assign_expression(), compile_break_statement(), compile_call_expression(), compile_conditional_expression(), compile_continue_statement(), compile_exitdo_statement(), compile_exitfor_statement(), compile_expression(), compile_for_statement(), compile_forin_statement(), compile_forto_statement(), compile_function(), compile_function_expression(), compile_increment_expression(), compile_memberid_expression(), compile_new_expression(), compile_return_statement(), compile_select_statement(), compile_switch_statement(), compile_variable_list(), compile_while_statement(), exit_label(), and pop_to_stat().
|
static |
Definition at line 308 of file compile.c.
Referenced by compile_delete_expression().
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().
|
static |
Definition at line 2211 of file compile.c.
Referenced by compile_func(), and compile_function().
|
inlinestatic |
Definition at line 338 of file compile.c.
Referenced by compile_conditional_expression(), compile_if_statement(), compile_logical_expression(), compile_switch_statement(), and push_instr_uint().
|
static |
Definition at line 2037 of file compile.c.
Referenced by compile_function(), and visit_statement().
|
static |
Definition at line 1886 of file compile.c.
Referenced by visit_expression(), visit_statement(), and visit_variable_list().
|
static |
Definition at line 1877 of file compile.c.
Referenced by visit_expression().
|
static |
Definition at line 2052 of file compile.c.
Referenced by visit_block_statement(), and visit_statement().
|
static |
Definition at line 2016 of file compile.c.
Referenced by visit_statement().
WINE_DECLARE_DEBUG_CHANNEL | ( | jscript_disas | ) |
WINE_DEFAULT_DEBUG_CHANNEL | ( | jscript | ) |
instr_arg_type_t arg1_type |
instr_arg_type_t arg2_type |
const struct { ... } instr_info[] |
Definition at line 77 of file compile.c.
Referenced by CShellDispatch::ShellExecute().