Introducing exitval opcode for end of script and assertions in unit tests. The opcode finishes interpretation with status code 0 (success) or 1 (failure).

This commit is contained in:
Ruben Ayrapetyan
2014-07-17 21:32:29 +04:00
parent 819b947445
commit 0209acad65
4 changed files with 34 additions and 2 deletions
+1
View File
@@ -55,6 +55,7 @@ typedef ecma_CompletionValue_t (*opfunc)(OPCODE, struct __int_data *);
op(varg_2_end) \
op(varg_3) \
op(varg_3_end) \
op(exitval) \
op(retval) \
op(ret)