Optimize parser memory consumption. Remove 'prev' and 'block_size' fields form the linked list structure. Remove 'magic' field from structures used in parser.

This commit is contained in:
Andrey Shitov
2015-04-01 11:48:23 +03:00
parent ef2265ee41
commit e459ab7d64
11 changed files with 26 additions and 43 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
/* Copyright 2014 Samsung Electronics Co., Ltd.
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@
#include "ecma-globals.h"
#include "lexer.h"
typedef enum
typedef enum __attr_packed___
{
OPERAND_LITERAL,
OPERAND_TMP
@@ -39,7 +39,7 @@ typedef struct
}
operand;
typedef enum
typedef enum __attr_packed___
{
VARG_FUNC_DECL,
VARG_FUNC_EXPR,