Storing literals' indexes instead of literals' contents in ecma-strings if possible.

This commit is contained in:
Ruben Ayrapetyan
2014-08-18 20:52:02 +04:00
parent 8bc41358ec
commit 9d33a91822
4 changed files with 76 additions and 56 deletions
+2
View File
@@ -192,6 +192,8 @@ try_get_string_by_idx (T_IDX idx, /**< literal id */
FIXME (ecma_char_t strncpy);
JERRY_ASSERT (buffer_p != NULL);
__strncpy ((char*)buffer_p, (const char*)str_p, (size_t)req_length);
return req_length;