Rework literal storage.
The new literal storage keeps ecma strings rather than having a custom string implementation which duplicates the string management routines. Conversions between string implementations are eliminated which improved the performance by 4%. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include "ecma-helpers.h"
|
||||
#include "lit-strings.h"
|
||||
#include "ecma-init-finalize.h"
|
||||
#include "lit-literal.h"
|
||||
|
||||
#include "test-common.h"
|
||||
|
||||
@@ -107,7 +106,6 @@ main ()
|
||||
TEST_INIT ();
|
||||
|
||||
jmem_init ();
|
||||
lit_init ();
|
||||
ecma_init ();
|
||||
|
||||
lit_utf8_byte_t cesu8_string[max_bytes_in_string];
|
||||
@@ -219,7 +217,6 @@ main ()
|
||||
JERRY_ASSERT (res_buf[2] == 0xBF);
|
||||
|
||||
ecma_finalize ();
|
||||
lit_finalize ();
|
||||
jmem_finalize (true);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user