Sami Vaarala
ba9c99752e
Add 0o123 and 0b10001 support to ToNumber()
8 years ago
Sami Vaarala
ad94449d8e
Add ES6 0oNNN, 0bNNN literals, 078 decimal literal
8 years ago
Sami Vaarala
68b95558fe
Double handling improvements, str rep comments
8 years ago
Sami Vaarala
96d301b3cb
Rename src/ to src-input/ to match dist
With this change the directory naming in the main repo and dist is the same.
8 years ago
Sami Vaarala
fe64dd0836
Fix some source and doc refs to relocated tools
8 years ago
Sami Vaarala
8fb43bfcfd
Remove int cast from switch arguments
Avoid some other int casts (leftovers from previous reworks).
9 years ago
Sami Vaarala
100894b3ac
Use DUK_USE_DEBUG_LEVEL for debug level control
9 years ago
Sami Vaarala
1245df1e12
Reduce error call site footprint, internal changes
* Use shared error macros and shared error handler to reduce the size of call
sites of common errors.
* Make zero argument DUK_ERROR() calls non-vararg calls to reduce call site
footprint. Non-vararg calls have smaller call sites and because there are
a lot of call sites, this turns out to be significant.
* Remove variadic macros from internal DUK_ERROR() macro set and add separate
macros for argument counts 0 to 4; this is more portable and requires less
conditional code, and works well when a non-vararg call is used for most
error call sites.
* Rework macro / function argument order for the error path, try to keep 'thr'
in the same argument slot to avoid unnecessary register moves.
* Pack linenumber and error code into a single 32-bit argument when possible,
removes one more constant load from the call site.
* Convert some internal errors to RangeErrors when the underlying cause is an
implementation limit (such as a compiler temp limit) rather than an actual
unexpected internal situation.
* Simplify and share a few error messages to reduce string count.
9 years ago
Sami Vaarala
3fc88286dd
Fix type cast warnings
9 years ago
Sami Vaarala
df36995118
Fix -Wcast-qual warnings for DDDPRINTs
9 years ago
Sami Vaarala
bf1304c4bc
Fixes for -Wcast-qual, const/volatile casts
Also one -Wcast-align fix (for clang).
9 years ago
Sami Vaarala
174eaca036
Fix .txt refs to .rst in source code
9 years ago
Karl Skomski
1c857c90e5
Fix incorrect bool comparison in duk__dragon4_generate
9 years ago
Sami Vaarala
1fa66cd25a
Symbol visibility changes for code and headers
10 years ago
Sami Vaarala
82f00754ac
Add some missing static declarations
10 years ago
Sami Vaarala
bbdb315c77
Avoid 'exp' var name, shadows exp() from math.h
10 years ago
Sami Vaarala
3ab572de8a
Code policy issue fix trivia
10 years ago
Sami Vaarala
c70e7898d1
Minor typing trivia
10 years ago
Sami Vaarala
6a15c0be73
Formatting casts for custom format (%!T etc)
10 years ago
Sami Vaarala
018774dc55
Format string cleanups, %ld instead of %d etc
10 years ago
Sami Vaarala
23faa3c4a3
Intermediate commit: string format cleanups
10 years ago
Sami Vaarala
d25e3ea2ba
Disable incorrect assert in numconv
11 years ago
Sami Vaarala
e3e2f4f3eb
fix a 'naked' use of int64_t (not duk_int64_t) in numconv, and similar ones in debug size dumps
11 years ago
Sami Vaarala
66a652762d
fix a set of multiline debug call sites
11 years ago
Sami Vaarala
95dee49efa
autofixed one line debug call sites
11 years ago
Sami Vaarala
8c8bc36d82
clean up debug defines: DUK_USE_DEBUG now enables/disables debug code globally, while DUK_USE_DPRINT, DUK_USE_DDPRINT, and DUK_USE_DDDPRINT control specific log levels (earlier DUK_USE_DEBUG and DUK_USE_DPRINT were the same, which was confusing)
11 years ago
Sami Vaarala
dc5f780f2c
fix some 'while(' to 'while (' spacings
11 years ago
Sami Vaarala
5475a07a4f
change DUK_MEMSET() to DUK_MEMZERO() when appropriate
11 years ago
Sami Vaarala
9a5240aeea
fix a NaN signbit assertion which may not always be true
11 years ago
Sami Vaarala
d4f7b242ab
rename a few file local structs/typedefs to have a duk__ prefix
11 years ago
Sami Vaarala
e62fe12e24
prepend a 'duk__' prefix to a bunch of internal functions, some helper renames
11 years ago
Sami Vaarala
666613c1c2
-Wextra fixes
11 years ago
Sami Vaarala
351ecaa19b
internal macro renames, XXX -> DUK__XXX
11 years ago
Sami Vaarala
bff2638c34
MSVC (VS2010 express) fixes, now compiles and works
11 years ago
Sami Vaarala
6ef6f07848
downgrade a FIXME to XXX in numconv
11 years ago
Sami Vaarala
a16f8d8534
remove duk_numconv.c FIXME: precomputing flags into variables has no impact on code size (on gcc)
11 years ago
Sami Vaarala
50f8aa82a2
FIXME trivia
11 years ago
Sami Vaarala
91b58b5907
C type rework for numconv
11 years ago
Sami Vaarala
ff0df9b236
compile warning fixes for gcc-4.4.5 (on mips)
11 years ago
Sami Vaarala
5a69f12153
rename number_conversion.txt -> number-conversion.txt for consistency
11 years ago
Sami Vaarala
02a364258a
snprintf convention fixes
11 years ago
Sami Vaarala
c584b74863
remove unnecessary volatile attributes
11 years ago
Sami Vaarala
9fa1ec592d
clean up #define, #undef, #ifdef etc to have a single space after the directive
11 years ago
Sami Vaarala
86acd7478a
make as many data / pointer tables 'const' as possible to allow them to compiled into the text section
11 years ago
Sami Vaarala
cc8bd440e4
number parsing fix: trailing garbage after Infinity now works properly, fixes parseFloat() behavior for Infinity
11 years ago
Sami Vaarala
321d7a4927
fix some number constants
11 years ago
Sami Vaarala
60351e8897
fix type portability of duk_double_union
11 years ago
Sami Vaarala
d1748015dd
a few int16_t type uses fixed
11 years ago
Sami Vaarala
884045b1d1
typedef C99 'wrapper' types like duk_uint32_t; bulk replacement of duk_u32 with duk_uint32_t, and other type usage replacements
11 years ago
Sami Vaarala
671fdb9792
bi_mul overflow optimization, overflow always over a zero so just set
11 years ago