Add support for eval in parser.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-06-10 22:38:17 +03:00
committed by Ruben Ayrapetyan
parent 57c6c377af
commit 3577261261
20 changed files with 322 additions and 92 deletions
+16
View File
@@ -695,6 +695,22 @@ literal_operand (lit_cpointer_t lit_cp)
return ret;
}
/**
* Creates operand for eval's return value
*
* @return constructed operand
*/
operand
eval_ret_operand (void)
{
operand ret;
ret.type = OPERAND_TMP;
ret.data.uid = EVAL_RET_VALUE;
return ret;
} /* eval_ret_operand */
bool
operand_is_empty (operand op)
{