Sami Vaarala
02e8adcce8
Source reorg for duk_api_public.h.in
* Merge duk_api_public.h.in to duktape.h.in.
* Adjust define order so that duk_config.h sees DUK_VERSION which allows
user config fixups to react to it.
8 years ago
Sami Vaarala
39ecb8b7eb
Source fixes for #ifdef and #ifndef convention
8 years ago
Sami Vaarala
68b95558fe
Double handling improvements, str rep comments
8 years ago
Sami Vaarala
2d43ef8c04
String.prototype.repeat(), internal buf zeroing
8 years ago
Sami Vaarala
203c0cb3d2
Add String.fromCodePoint() support
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
78a1128117
Minor source fixes
* Remove DUK_USE_PACKED_TVAL_POSSIBLE refs
* Remove DUK_USE_BYTEORDER_FORCED refs
* Remove DUK_USE_RDTSC() refs
* Remove DUK_USE_NO_DOUBLE_ALIASING_SELFTEST, disable aliasing self test
when duk_tval is not packed (since we don't strictly require it then)
* Fix debugger declaration visibility, undeclared function
* Fix debugger compile warning
* Fix compile warning for time() provider
* Fix BCC compilation error in switch-case
* Add missing 'const' to hex enctab
* Fix duk_get_hobject_or_lfunc_coerce() storage class
* Move computed NaN / infinity declarations to internals
* Declare built-in Date providers internally instead of in duk_config.h
* Whitespace trivia
* Fix compile warning for MSVC 64-bit (assignment in buffer code)
* Suppress warning for heap destruction curr_limit (MIPS32 gcc)
9 years ago
Sami Vaarala
ea58277c8b
Double union quiet NaN notes
9 years ago
Sami Vaarala
6645e711c6
Buffer object implementation cleanups and fixes
10 years ago
Sami Vaarala
ee5c67be0b
Add float to duk_double_union, duk_float_t typedef
10 years ago
Sami Vaarala
b8e9c3b141
Trivial code fixes from review
- Add parens for 'thr' inside macro body
- Remove misplaced assert
- Indent trivia in macro body
- XXX note on LDINTX
10 years ago
Sami Vaarala
22a38b4b07
Fastint fast paths and cleanups
Change a few built-ins to treat length as a 32-bit quantity
even though the specification allows some operations to extend
the Array length above 2^32-1. This is not very useful, because
it will be read back through ToUint32().
10 years ago
Sami Vaarala
0f0fe6e4f4
Change to explicit fastint downgrade model
Midcommit:
Feature detection typo fix (harmless).
Add self test for known double-to-int64 issue.
Add DUK_INLINE and DUK_ALWAYS_INLINE.
10 years ago
Sami Vaarala
15f1be7f8d
Add byteswap macros and self tests
- DUK_BSWAP32() and DUK_BSWAP16() in duk_features.h so that platform specific
macros, intrinsics, or inline assembly can be used if necessary
- DUK_DBLUNION_BSWAP() for byte swapping doubles (needed by debugger)
- duk_byteswap_bytes() helper for byte swapping arbitrary data (needed by
debugger for pointers)
10 years ago
Sami Vaarala
3ab572de8a
Code policy issue fix trivia
10 years ago
Sami Vaarala
d397785934
add a .in extension for header snippets used to build duktape.h (cleaner to see that they're not standalone headers)
11 years ago
Sami Vaarala
84ba77df23
use 'mixed endian' instead of 'middle endian' to refer to arm mixed endian; rename DUK_USE_LITTLE_ENDIAN to DUK_USE_INTEGER_LE (same for big, middle) for clarity; when using mixed endian, define DUK_USE_INTEGER_LE instead of DUK_USE_INTEGER_BE
11 years ago
Sami Vaarala
f29e5a5ca6
more comment notes on clang aliasing
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
aef64f5baf
rework duk_double_union and duk_tval macros; doubles are now normalized using a union which should be strict aliasing compatible
11 years ago