Introducing cache for property by name lookup (LCache).

This commit is contained in:
Ruben Ayrapetyan
2014-11-17 18:13:09 +03:00
parent 8a6eae0ca5
commit 76ed780895
9 changed files with 466 additions and 6 deletions
+6
View File
@@ -274,6 +274,9 @@ typedef struct ecma_property_t
/** Attribute 'Configurable' (ecma_property_configurable_value_t) */
unsigned int configurable : 1;
/** Flag indicating whether the property is registered in LCache */
unsigned int is_lcached : 1;
/** Value */
ecma_value_t value;
} named_data_property;
@@ -290,6 +293,9 @@ typedef struct ecma_property_t
/** Attribute 'Configurable' (ecma_property_configurable_value_t) */
unsigned int configurable : 1;
/** Flag indicating whether the property is registered in LCache */
unsigned int is_lcached : 1;
/** Compressed pointer to property's getter */
unsigned int get_p : ECMA_POINTER_FIELD_WIDTH;