Free eval's code and literal hash-table after its execution if it does not contain functions.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-08-19 20:13:26 +03:00
parent 13941df8dd
commit 01604974e3
5 changed files with 60 additions and 0 deletions
+1
View File
@@ -32,5 +32,6 @@ void parser_set_show_instrs (bool);
jsp_status_t parser_parse_script (const jerry_api_char_t *, size_t, const vm_instr_t **);
jsp_status_t parser_parse_eval (const jerry_api_char_t *, size_t, bool, const vm_instr_t **);
jsp_status_t parser_parse_new_function (const jerry_api_char_t **, const size_t *, size_t, const vm_instr_t **);
bool parser_is_code_contains_functions ();
#endif /* PARSER_H */