jerryscript/src/include/Jerryscript/VirtualMachine.h File Reference
#include "Types.h"
#include <FileSystem.h>
#include <Platform/Clocks.h>
Include dependency graph for jerryscript/src/include/Jerryscript/VirtualMachine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Jerryscript
 
 Jerryscript::Watchdog
 
 Jerryscript::Snapshot
 Snapshot management functions.
 

Functions

void Jerryscript::initialise (jerry_init_flag_t flags=JERRY_INIT_EMPTY)
 Initializes the JavaScript VM. More...
 
void Jerryscript::cleanup ()
 Clean up the virtual machine by unloading snapshots, freeing allocated memory, etc. More...
 
bool Jerryscript::isFeatureEnabled (Feature feature)
 Check if optional feature is available. More...
 
void Jerryscript::Watchdog::setPeriod (unsigned milliseconds)
 Set watchdog period. More...
 
Timer2Clock::Ticks< uint32_t > Jerryscript::Watchdog::read ()
 Get elapsed watchdog time since last reset. More...
 
Value Jerryscript::eval (const String &jsCode)
 
void Jerryscript::gc (bool maximumEffort=false)
 Perform memory garbage collection. More...
 
Load a snapshot into the virtual machine and execute it
Value Jerryscript::Snapshot::load (const uint32_t *snapshot, size_t snapshotSize)
 Load from memory buffer. More...
 
Value Jerryscript::Snapshot::load (const String &snapshot)
 Load snapshot from String and execute it. More...
 
Value Jerryscript::Snapshot::loadFromFile (const String &fileName)
 Load a snapshot from file and execute it. More...