Update bytecode header structure so that bytecode could be stored independently from hash table and bytecode header.
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
committed by
Ruben Ayrapetyan
parent
6a6fb3fdfa
commit
443673fc5d
+4
-3
@@ -16,17 +16,18 @@
|
||||
#ifndef VM_H
|
||||
#define VM_H
|
||||
|
||||
#include "bytecode-data.h"
|
||||
#include "ecma-globals.h"
|
||||
#include "jrt.h"
|
||||
#include "opcodes.h"
|
||||
|
||||
extern void vm_init (const vm_instr_t* program_p, bool dump_mem_stats);
|
||||
extern void vm_init (const bytecode_data_header_t *program_p, bool dump_mem_stats);
|
||||
extern void vm_finalize (void);
|
||||
extern jerry_completion_code_t vm_run_global (void);
|
||||
extern ecma_completion_value_t vm_run_eval (const vm_instr_t *instrs_p,
|
||||
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 vm_instr_t *instrs_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,
|
||||
|
||||
Reference in New Issue
Block a user