Fix bug in vm call_stack_size calculation (#1345)

call_stack_size should be register_count + maximum stack depth

* We don't add in the parser to save the size of snapshot header
* jerry_snapshot_version 5 -> 6

JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
Zidong Jiang
2016-09-15 15:54:01 +08:00
committed by László Langó
parent 9c50570ca3
commit 86ac6445e8
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -37,6 +37,6 @@ typedef struct
/**
* Jerry snapshot format version
*/
#define JERRY_SNAPSHOT_VERSION (5u)
#define JERRY_SNAPSHOT_VERSION (6u)
#endif /* !JERRY_SNAPSHOT_H */