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
7857441bac
Use hybrid loop detection for slow path JSON
9 years ago
Sami Vaarala
4a59d4df8c
Support JX/JC in JSON.stringify() fast path
Also fix a minor fast path bug when unboxing String, Number, or Boolean.
Recursion depth was not decremented so it would accumulate and potentially
cause the fast path to fail unnecessarily. Outwardly this has no other
impact than the serialization being slower than intended.
9 years ago
Sami Vaarala
d8e3e8a856
Simplify JSON.stringify() gap/indent handling
9 years ago
Sami Vaarala
08c0457d80
Replace DUK_USE_DEEP_C_STACK with explicit limits
9 years ago
Sami Vaarala
f33560bb2b
Increase JSON fastpath loop limit to 64 for now
Needs a better solution for release but this fixes the original
issue for Atomic.
9 years ago
Sami Vaarala
9cb997423d
JSON.stringify() fast path
10 years ago
Sami Vaarala
3b467ff8ee
Rework JSON code to use bufwriter
9 years ago
Sami Vaarala
4586688185
Add some missing "const" specifiers for strings
10 years ago
Sami Vaarala
a9f0c88f55
Add byte offset for JSON.parse() syntax error
Remove "invalid number" error message in the process: as a result there
should be less code/constants but it's more useful to have the offset.
10 years ago
Sami Vaarala
8f0b85db1c
Typing cleanups for JSON
11 years ago
Sami Vaarala
c3586aeec7
rename JSONX and JSONC in code
11 years ago
Sami Vaarala
2d515afc70
rename duk_builtin_xxx -> duk_bi_xxx in code
11 years ago
Sami Vaarala
e75fd3c4c6
DUK_USE_JSONX/DUK_USE_JSONC flags
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
22e03d2c6f
add a USE define for deep C stacks used on mainstream platforms by default; add increased recursion limits when in use
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
fad076afa6
rename growable buffers 'dynamic' buffers (more common and more accurate); other api related changes and placeholders
11 years ago
Sami Vaarala
4862b7aa49
fix include guard names, don't use leading underscores as they are reserved
12 years ago
Sami Vaarala
332a488acb
missing json header
12 years ago
Sami Vaarala
26e50115e2
initial commit of JSON builtin stringify()
12 years ago