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:
Andrey Shitov
2015-09-03 18:11:27 +03:00
committed by Ruben Ayrapetyan
parent 6a6fb3fdfa
commit 443673fc5d
22 changed files with 207 additions and 194 deletions
+4 -3
View File
@@ -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,