Implement snapshot functionality.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
committed by
Ruben Ayrapetyan
parent
7481fb606f
commit
311cc65b33
@@ -36,4 +36,22 @@ jerry_dispatch_object_free_callback (ecma_external_pointer_t freecb_p,
|
||||
extern bool
|
||||
jerry_is_abort_on_fail (void);
|
||||
|
||||
/**
|
||||
* Snapshot header
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
uint32_t lit_table_size; /**< size of literal table */
|
||||
uint32_t bytecode_size; /**< size of instructions array */
|
||||
uint32_t idx_to_lit_map_size; /** size of idx-to-lit map */
|
||||
uint32_t is_run_global : 1; /**< flag, indicating whether the snapshot
|
||||
* was dumped as 'Global scope'-mode code (true)
|
||||
* or as eval-mode code (false) */
|
||||
} jerry_snapshot_header_t;
|
||||
|
||||
/**
|
||||
* Jerry snapshot format version
|
||||
*/
|
||||
#define JERRY_SNAPSHOT_VERSION (1u)
|
||||
|
||||
#endif /* !JERRY_INTERNAL_H */
|
||||
|
||||
Reference in New Issue
Block a user