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:
Zsolt Borbély
2016-02-22 08:50:11 +01:00
parent e14d0b8942
commit 3f377692d9
14 changed files with 88 additions and 167 deletions
+2 -2
View File
@@ -792,7 +792,7 @@ lexer_parse_number (parser_context_t *context_p) /**< context */
do
{
source_p ++;
source_p++;
}
while (source_p < source_end_p
&& lexer_is_hex_digit (source_p[0]));
@@ -809,7 +809,7 @@ lexer_parse_number (parser_context_t *context_p) /**< context */
do
{
source_p ++;
source_p++;
}
while (source_p < source_end_p
&& source_p[0] >= '0'
+1 -1
View File
@@ -1430,7 +1430,7 @@ parser_post_processing (parser_context_t *context_p) /**< context */
* instructions, since this form is constructed during post
* processing and cannot be emitted directly. */
*opcode_p = CBC_JUMP_FORWARD;
length --;
length--;
}
else
{