Sami Vaarala
3ebad08ca9
Merge pull request #445 from svaarala/perf-json-fastpath-jxjc-indent-support
Add indent and JX/JC support into the JSON.stringify() fast path
9 years ago
Sami Vaarala
4c6a2e4dff
Releases: JSON stringify() indent and JX/JC
9 years ago
Sami Vaarala
12a79e36b9
JSON stringify fast path config option update
Document new limitations.
9 years ago
Sami Vaarala
97ece21279
Testcase improvements for JSON fast path changes
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
a0ec5e656c
Support indent in JSON.stringify() fast path
9 years ago
Sami Vaarala
3f008f3239
Merge pull request #444 from svaarala/perf-json-stringify-indent-rework
Simplify JSON.stringify() slow path indent handling
9 years ago
Sami Vaarala
ade141e95f
Releases: JSON indent
9 years ago
Sami Vaarala
3b13718d50
Improve JSON indentation handling
Copy already emitted indent prefix so that we can efficiently emit deep
indents. Code footprint is still about the same but the loop is much
faster.
9 years ago
Sami Vaarala
d8e3e8a856
Simplify JSON.stringify() gap/indent handling
9 years ago
Sami Vaarala
f8d5bba92c
More detailed testcases for indented JSON
Additional tests should exercise the new indent algorithm corner cases.
9 years ago
Sami Vaarala
b3630e22e5
Perf tests for indented JSON
9 years ago
Sami Vaarala
81a788d592
Merge pull request #440 from svaarala/website-detect-websurf-index-page
Detect and greet NetSurf users on index page
9 years ago
Sami Vaarala
7a3fcfe0d6
Merge pull request #439 from svaarala/website-flip-download-list
Flip download list order to match releases list
9 years ago
Sami Vaarala
e9997eb8fc
Detect and greet NetSurf users on index page
9 years ago
Sami Vaarala
c9db0da9b9
Flip download list order to match releases list
Most users seem to prefer newest-first ordering.
9 years ago
Sami Vaarala
26d1bb9d25
Merge pull request #417 from svaarala/not-callable-error-improvement
More verbose error message for "not callable"
9 years ago
Sami Vaarala
e8c1dd82ee
Releases: call handling error messages
9 years ago
Sami Vaarala
50a477b6c2
Makefile fixes for paranoid errors
9 years ago
Sami Vaarala
d3ee9bacb4
Matrix compile fix for paranoid errors
9 years ago
Sami Vaarala
d0f6d7f7a3
Sandboxing doc update for paranoid errors
Config option was renamed.
9 years ago
Sami Vaarala
39094df3df
Testcase fixes for call error messages
Fix some expect strings and add a specific test for call errors.
9 years ago
Sami Vaarala
8717df276f
Paranoid error message for call handling
Also handle config option rename.
9 years ago
Sami Vaarala
293b36e1b2
Config option changes for paranoid errors
9 years ago
Sami Vaarala
77c2635ed5
Merge pull request #394 from svaarala/perf-tval-updref-optimize
Optimize DUK_TVAL_SET_TVAL_UPDREF() for speed and size
9 years ago
Sami Vaarala
af5748eb68
Releases: tval refcount
9 years ago
Sami Vaarala
cdac15541b
DUK_TVAL_SET_TVAL_UPDREF() macro optimization
9 years ago
Sami Vaarala
798f5ac4b0
Merge pull request #437 from svaarala/debugger-cleanups
Minor debugger (and other) cleanups
9 years ago
Sami Vaarala
cf412a60a4
Releases: debugger Detaching notify
9 years ago
Sami Vaarala
927ff20e4e
Example debugger call stack level handling
No support in web UI yet.
9 years ago
Sami Vaarala
03edf0dba7
Miscellaneous code cleanups
* Comment cleanups
* String hash declaration fix when dense hash not used
* -Wcast-qual fix for debug fixedbuffer
- Debugger is_err macro argument renaming and re-typing
9 years ago
Sami Vaarala
9f6d4d41f9
Debugger document minor improvements
9 years ago
Sami Vaarala
0019c64fe5
Utility to format perftest output into HTML
9 years ago
Sami Vaarala
12e6f9b2ae
Merge pull request #430 from fatcerberus/debugger-detach-notify
Implement debugger Detach notify
9 years ago
Sami Vaarala
f6bac2da6c
Merge pull request #432 from svaarala/perf-string-hash
Use a more sparse string hash
9 years ago
Sami Vaarala
08d6a6719e
Releases: string hash algorithm
10 years ago
Sami Vaarala
5c8b222faa
License changes for string hashing (Lua, djb2)
9 years ago
Sami Vaarala
27ebe604b3
Clean up string hash algorithms
* Remove string hash algorithms which weren't chosen
* Clean up comments
9 years ago
Sami Vaarala
355754eb1d
Add more perf tests for string hash behavior
9 years ago
Sami Vaarala
49177c7151
Add config options for string hash changes
- Add DUK_USE_STRHASH_SKIP_SHIFT option for the "fast" skipping hash.
- Add DUK_USE_STRHASH_DENSE option (default false) to revert back to
the Duktape 1.3.0 string hash algorithm.
9 years ago
Sami Vaarala
d87f82866b
Add string hash replacement candidates
Use a string skipping approach similar to Lua 5.1, and try a few byte based
string hash algorithms to see what works best in practice.
10 years ago
Sami Vaarala
cd2037ab07
Makefile test target improvements
9 years ago
Sami Vaarala
bd96db68af
Add --sleep-factor to timing utility
Useful for thermal throttling: cool down relative to test run time.
9 years ago
Sami Vaarala
f5f47760ba
Merge pull request #435 from svaarala/add-readme-bc
Add 'bc' to README dependency list
9 years ago
Sami Vaarala
63004ae464
Add 'bc' to README dependency list
Missing at least on Raspbian.
9 years ago
Bruce Pascoe
8077a2e362
Add Detaching notify to debugger.rst
9 years ago
Bruce Pascoe
4edfe68d04
Implement debugger Detaching notify
When the debugger is detached, Duktape will send out a notify,
DUK_DBG_CMD_DETACHING, before dropping the transport. The debug client
can look for this message to differentiate between an intentional detach
and a dropped connection.
9 years ago
Sami Vaarala
f0d806e1a5
Merge pull request #433 from svaarala/api-is-xxx-error
Add duk_is_xxx_error() convenience calls
9 years ago
Sami Vaarala
9f575e5417
Releases: duk_is_xxx_error() calls
9 years ago
Sami Vaarala
6f3e1433df
API docs for duk_is_xxx_error() calls
9 years ago