Small refactorings
Modifications: * eliminate unnecessary variables, functions * use ECMA_NUMBER macros where it is possible * simplify code * minor style fix (comments, increase-decrease operators) JerryScript-DCO-1.0-Signed-off-by: Zsolt Borbély zsborbely.u-szeged@partner.samsung.com
This commit is contained in:
+2
-2
@@ -1121,7 +1121,7 @@ vm_loop (vm_frame_ctx_t *frame_ctx_p) /**< frame context */
|
||||
if (base & 0x2)
|
||||
{
|
||||
/* For decrement operators */
|
||||
increase = -ECMA_NUMBER_ONE;
|
||||
increase = ECMA_NUMBER_MINUS_ONE;
|
||||
}
|
||||
|
||||
/* Post operators require the unmodifed number value. */
|
||||
@@ -2290,7 +2290,7 @@ vm_execute (vm_frame_ctx_t *frame_ctx_p, /**< frame context */
|
||||
else
|
||||
{
|
||||
ecma_value_t *src_p = (ecma_value_t *) arg_p;
|
||||
arg_list_len --;
|
||||
arg_list_len--;
|
||||
|
||||
if (arg_list_len > argument_end)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user