Ruben Ayrapetyan
42c44830ce
Removing trailing whitespace from sources.
2014-12-19 14:35:17 +03:00
Ruben Ayrapetyan
6c65c48772
Removing 'length' field from ecma-string descriptor (calculating length upon request).
2014-11-28 16:26:22 +03:00
Ruben Ayrapetyan
c0a6ae3eff
- Smaller but not precise conversion between strings and numbers under
...
CONFIG_ECMA_NUMBER_TYPE==CONFIG_ECMA_NUMBER_FLOAT32 (float32 mode);
- float64 mode by default if not CompactProfile-mode;
- CompactProfile-mode for MCU builds.
2014-10-31 20:44:27 +03:00
Ruben Ayrapetyan
69624e4de2
Fixing search of shortest representation in ecma_number_to_zt_string.
...
Fixing right shift operation for big integers.
2014-10-27 15:34:33 +03:00
Ruben Ayrapetyan
f0ab69b01a
Replacing 96-bit integer with 128-bit integer in ecma_number_to_zt_string and ecma_zt_string_to_number conversion routines.
2014-10-24 23:06:25 +04:00
Ruben Ayrapetyan
e11f73df64
Improving precision in ecma_number_to_zt_string.
2014-10-24 20:39:59 +04:00
Ruben Ayrapetyan
82e8895b4c
Fixing ToInt32 conversion routine.
2014-10-24 20:39:59 +04:00
Ruben Ayrapetyan
904be9ece6
Fixing ecma_zt_string_to_number for '-0' string.
2014-10-24 20:39:59 +04:00
Ruben Ayrapetyan
e4629cca51
Improving precision of number to zt-string conversion, adding search for the shortest representation of number during the conversion.
2014-10-24 19:15:31 +04:00
Ruben Ayrapetyan
feedb37b20
Replacing way to specify ecma-char encoding and ecma-number type: instead of defining it like CONFIG_ECMA_NUMBER_FLOAT32 now it should be defined like CONFIG_ECMA_NUMBER_TYPE=CONFIG_ECMA_NUMBER_FLOAT32.
2014-10-23 18:33:10 +04:00
Ruben Ayrapetyan
7f4a70ccb5
Improving precision of zt-string to ecma-number conversion.
2014-10-23 15:46:42 +04:00
Ruben Ayrapetyan
6ebd96f903
Improving precision of string to number conversion in ecma_zt_string_to_number.
2014-10-20 13:46:13 +04:00
Ruben Ayrapetyan
dce3e5db59
Removing assertions about fitting of uint32_t and int32_t to ecma_number_t as they are incorrect under CONFIG_ECMA_NUMBER_FLOAT32.
2014-10-16 20:24:05 +04:00
Ruben Ayrapetyan
e9a632ea4e
Fixing sign of converted number in ecma_zt_string_to_number.
2014-10-14 19:11:11 +04:00
Ruben Ayrapetyan
d44b13e0cd
Adding magic strings for the Global object's properties names.
2014-09-19 17:45:52 +04:00
Ruben Ayrapetyan
7fc3b178d8
Introducing ecma_is_string_magic, ecma_init and ecma_finalize interfaces, 'magic-string' container type for ecma-strings. Renaming ecma_is_magic_string to ecma_is_zt_string_magic. Moving magic-string related routines to ecma-helpers-string.c.
2014-09-19 12:08:19 +04:00
Ruben Ayrapetyan
76de0e9a06
Improving precision of ecma_number_to_string in case number can be represented as UInt32.
2014-09-03 15:05:58 +04:00
Ruben Ayrapetyan
3dc9a5838a
Fixing ecma_uint32_to_string helper.
2014-09-02 21:55:04 +04:00
Ruben Ayrapetyan
813831a23b
Decimal conversion of Number to zt-string (still not precise enough). Zt-string copy and length calculation helpers.
2014-09-01 21:12:02 +04:00
Ruben Ayrapetyan
e35f54fe86
Implementing ECMA String to Number conversion helper.
2014-08-29 22:46:38 +04:00
Ruben Ayrapetyan
23b62bce54
Replacing doxygen header for ECMA modules 'addtogroup ecma ---TODO---' -> 'addtogroup ecma ECMA'.
2014-08-29 18:35:44 +04:00
Ruben Ayrapetyan
8998189bc0
Storing Number as UInt32 in ecma-string if the Number may be represented as UInt32. Calculating length for Number-represented ecma-strings in ecma-string constructor. loop_arithmetics_1kk.js: 2.9112 -> 2.8536.
2014-08-25 20:03:33 +04:00
e.gavrin
7dea812364
Add shift opcodes handlers
2014-08-21 21:39:05 +04:00
Ruben Ayrapetyan
616c96d3bb
Implementing ecma_string_to_zt_string for number-represented string and strings that are stored in literal table
2014-08-21 16:46:45 +04:00
Ruben Ayrapetyan
a96705701d
Implementing prototype of ToString (Number) routine - ecma_number_to_zt_string; adding unit tests for the routine.
2014-08-21 14:43:43 +04:00
Ruben Ayrapetyan
15b65a27fb
Moving type conversion helpers from libecmaoperations to libecmaobjects.
2014-08-18 16:26:22 +04:00