Remove argument names in function prototypes, declared in headers; fix '*' alignment in headers.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -34,13 +34,9 @@
|
||||
#include "ecma-try-catch-macro.h"
|
||||
#include "serializer.h"
|
||||
|
||||
bool is_reg_variable (vm_frame_ctx_t *frame_ctx_p, vm_idx_t var_idx);
|
||||
bool is_reg_variable (vm_frame_ctx_t *, vm_idx_t);
|
||||
ecma_completion_value_t get_variable_value (vm_frame_ctx_t *, vm_idx_t, bool);
|
||||
ecma_completion_value_t set_variable_value (vm_frame_ctx_t *, vm_instr_counter_t, vm_idx_t, ecma_value_t);
|
||||
ecma_completion_value_t vm_fill_varg_list (vm_frame_ctx_t *frame_ctx_p,
|
||||
ecma_length_t args_number,
|
||||
ecma_collection_header_t *args_values_p);
|
||||
extern void vm_fill_params_list (vm_frame_ctx_t *frame_ctx_p,
|
||||
ecma_length_t params_number,
|
||||
ecma_collection_header_t *formal_params_collection_p);
|
||||
ecma_completion_value_t vm_fill_varg_list (vm_frame_ctx_t *, ecma_length_t, ecma_collection_header_t *);
|
||||
extern void vm_fill_params_list (vm_frame_ctx_t *, ecma_length_t, ecma_collection_header_t *);
|
||||
#endif /* OPCODES_ECMA_SUPPORT_H */
|
||||
|
||||
@@ -203,7 +203,7 @@ typedef struct
|
||||
* process (see also: OPCODE_CALL_FLAGS_DIRECT_CALL_TO_EVAL_FORM) */
|
||||
vm_idx_t min_reg_idx; /**< minimum idx used for register identification */
|
||||
vm_idx_t max_reg_idx; /**< maximum idx used for register identification */
|
||||
ecma_number_t* tmp_num_p; /**< an allocated number (to reduce temporary allocations) */
|
||||
ecma_number_t *tmp_num_p; /**< an allocated number (to reduce temporary allocations) */
|
||||
vm_stack_frame_t stack_frame; /**< stack frame associated with the context */
|
||||
|
||||
#ifdef MEM_STATS
|
||||
@@ -233,8 +233,8 @@ typedef struct
|
||||
const vm_instr_counter_t end_oc; /**< instruction counter of the last instruction of the scope */
|
||||
} vm_run_scope_t;
|
||||
|
||||
vm_instr_counter_t vm_calc_instr_counter_from_idx_idx (const vm_idx_t oc_idx_1, const vm_idx_t oc_idx_2);
|
||||
vm_instr_counter_t vm_read_instr_counter_from_meta (opcode_meta_type expected_type, vm_frame_ctx_t *int_data);
|
||||
vm_instr_counter_t vm_calc_instr_counter_from_idx_idx (const vm_idx_t, const vm_idx_t);
|
||||
vm_instr_counter_t vm_read_instr_counter_from_meta (opcode_meta_type, vm_frame_ctx_t *);
|
||||
|
||||
typedef struct vm_instr_t
|
||||
{
|
||||
@@ -290,13 +290,13 @@ typedef enum
|
||||
} vm_op_t;
|
||||
|
||||
#define VM_OP_0(opcode_name, opcode_name_uppercase) \
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t*);
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t *);
|
||||
#define VM_OP_1(opcode_name, opcode_name_uppercase, arg1, arg1_type) \
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t*);
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t *);
|
||||
#define VM_OP_2(opcode_name, opcode_name_uppercase, arg1, arg1_type, arg2, arg2_type) \
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t*);
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t *);
|
||||
#define VM_OP_3(opcode_name, opcode_name_uppercase, arg1, arg1_type, arg2, arg2_type, arg3, arg3_type) \
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t*);
|
||||
ecma_completion_value_t opfunc_##opcode_name (vm_instr_t, vm_frame_ctx_t *);
|
||||
|
||||
#include "vm-opcodes.inc.h"
|
||||
|
||||
|
||||
@@ -57,20 +57,17 @@ typedef struct vm_stack_frame_t
|
||||
|
||||
extern void vm_stack_init (void);
|
||||
extern void vm_stack_finalize (void);
|
||||
extern vm_stack_frame_t*
|
||||
extern vm_stack_frame_t *
|
||||
vm_stack_get_top_frame (void);
|
||||
extern void
|
||||
vm_stack_add_frame (vm_stack_frame_t *frame_p,
|
||||
ecma_value_t *regs_p,
|
||||
int32_t regs_num,
|
||||
int32_t local_vars_regs_num);
|
||||
extern void vm_stack_free_frame (vm_stack_frame_t *frame_p);
|
||||
extern ecma_value_t vm_stack_frame_get_reg_value (vm_stack_frame_t *frame_p, int32_t reg_index);
|
||||
extern void vm_stack_frame_set_reg_value (vm_stack_frame_t *frame_p, int32_t reg_index, ecma_value_t value);
|
||||
extern void vm_stack_push_value (vm_stack_frame_t *frame_p, ecma_value_t value);
|
||||
extern ecma_value_t vm_stack_top_value (vm_stack_frame_t *frame_p);
|
||||
extern void vm_stack_pop (vm_stack_frame_t *frame_p);
|
||||
extern void vm_stack_pop_multiple (vm_stack_frame_t *frame_p, uint32_t number);
|
||||
vm_stack_add_frame (vm_stack_frame_t *, ecma_value_t *, int32_t, int32_t);
|
||||
extern void vm_stack_free_frame (vm_stack_frame_t *);
|
||||
extern ecma_value_t vm_stack_frame_get_reg_value (vm_stack_frame_t *, int32_t);
|
||||
extern void vm_stack_frame_set_reg_value (vm_stack_frame_t *, int32_t, ecma_value_t);
|
||||
extern void vm_stack_push_value (vm_stack_frame_t *, ecma_value_t);
|
||||
extern ecma_value_t vm_stack_top_value (vm_stack_frame_t *);
|
||||
extern void vm_stack_pop (vm_stack_frame_t *);
|
||||
extern void vm_stack_pop_multiple (vm_stack_frame_t *, uint32_t);
|
||||
|
||||
/**
|
||||
* @}
|
||||
|
||||
+9
-13
@@ -20,27 +20,23 @@
|
||||
#include "jrt.h"
|
||||
#include "opcodes.h"
|
||||
|
||||
extern void vm_init (const bytecode_data_header_t *program_p, bool dump_mem_stats);
|
||||
extern void vm_init (const bytecode_data_header_t *, bool);
|
||||
extern void vm_finalize (void);
|
||||
extern jerry_completion_code_t vm_run_global (void);
|
||||
extern ecma_completion_value_t vm_run_eval (const bytecode_data_header_t *bytecode_data_p,
|
||||
bool is_direct);
|
||||
extern ecma_completion_value_t vm_loop (vm_frame_ctx_t *frame_ctx_p, vm_run_scope_t *run_scope_p);
|
||||
extern ecma_completion_value_t vm_run_from_pos (const bytecode_data_header_t *header_p,
|
||||
vm_instr_counter_t start_pos,
|
||||
ecma_value_t this_binding_value,
|
||||
ecma_object_t *lex_env_p,
|
||||
bool is_strict,
|
||||
bool is_eval_code);
|
||||
extern ecma_completion_value_t vm_run_eval (const bytecode_data_header_t *, bool);
|
||||
|
||||
extern vm_instr_t vm_get_instr (const vm_instr_t*, vm_instr_counter_t counter);
|
||||
extern opcode_scope_code_flags_t vm_get_scope_flags (const vm_instr_t*, vm_instr_counter_t counter);
|
||||
extern ecma_completion_value_t vm_loop (vm_frame_ctx_t *, vm_run_scope_t *);
|
||||
extern ecma_completion_value_t vm_run_from_pos (const bytecode_data_header_t *, vm_instr_counter_t,
|
||||
ecma_value_t, ecma_object_t *, bool, bool);
|
||||
|
||||
extern vm_instr_t vm_get_instr (const vm_instr_t *, vm_instr_counter_t);
|
||||
extern opcode_scope_code_flags_t vm_get_scope_flags (const vm_instr_t *, vm_instr_counter_t);
|
||||
|
||||
extern bool vm_is_strict_mode (void);
|
||||
extern bool vm_is_direct_eval_form_call (void);
|
||||
|
||||
extern ecma_value_t vm_get_this_binding (void);
|
||||
extern ecma_object_t* vm_get_lex_env (void);
|
||||
extern ecma_object_t *vm_get_lex_env (void);
|
||||
|
||||
#endif /* VM_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user