Sami Vaarala
13af94da67
Minor base64 encode improvement
9 years ago
Sami Vaarala
7e662098e6
Merge pull request #467 from svaarala/perf-hex-lookup-tables
Add hex encode/decode fast path
9 years ago
Sami Vaarala
e0006d1add
Releases: hex fastpath
9 years ago
Sami Vaarala
0b66c6bf17
Reduce runtests thread count to avoid timeouts
9 years ago
Sami Vaarala
28ff4b2a3a
Testcases to exercise hex encode/decode fast paths
9 years ago
Sami Vaarala
ced0e83d58
Perf test updates for hex enc/dec fast path
9 years ago
Sami Vaarala
dc2b52ba8e
Add hex encode/decode fast path using lookups
9 years ago
Sami Vaarala
03a77e2051
Config options for hex enc/dec fastpath
9 years ago
Sami Vaarala
f4ec57b8a6
Merge pull request #465 from svaarala/perf-base64-lookup-tables
Add base64 encode/decode fast path
9 years ago
Sami Vaarala
5efea5ee2c
Releases: base64 whitespace in padding fix
9 years ago
Sami Vaarala
e6c804e864
Releases: base64 fastpath
9 years ago
Sami Vaarala
defbb907d0
Test cases for base64 enc/dec with more coverage
9 years ago
Sami Vaarala
aacdaf13d1
Perf tests for base64
9 years ago
Sami Vaarala
52cb9e2961
Config option for base64 fast path
9 years ago
Sami Vaarala
2a43bac8b3
Add base64 encode/decode fast path
9 years ago
Sami Vaarala
3000e758ef
Bug testcase for whitespace inside base64 padding
9 years ago
Sami Vaarala
7f5d1df74e
Merge pull request #464 from svaarala/fix-license-spdx-year
Fix license.spdx year range
9 years ago
Sami Vaarala
1258afd90f
Merge pull request #463 from svaarala/remove-test262-fixed-octal-issue
Remove fixed test262 octal parse known issue
9 years ago
Sami Vaarala
ec02cd7b70
Fix license.spdx year range
9 years ago
Sami Vaarala
3c02b8c202
Remove fixed test262 octal parse known issue
9 years ago
Sami Vaarala
fa048ca6d6
Merge pull request #452 from svaarala/v1.3.1-release-prep
Misc changes for 1.3.1 release: releases entry, website
9 years ago
Sami Vaarala
3164162901
Update website download list for 1.3.1
9 years ago
Sami Vaarala
651dd4d979
Releases: 1.3.1 issues
9 years ago
Sami Vaarala
332769ff40
Merge pull request #429 from svaarala/fix-prop-assign-mutate
Fix property access handling of inner expression mutating a register-bound variable holding the base value
9 years ago
Sami Vaarala
4f91e74155
Releases: property assign base mutation
9 years ago
Sami Vaarala
932288423f
Perf tests for prop RHS/LHS in assignment
9 years ago
Sami Vaarala
9d4f22ef72
Fix a nested property assignment mutation issue
When evaluating foo[xxx] = 'quux', evaluation of 'xxx' may mutate the
register bound variable 'foo'. So even if it seems we could safely
assume 'foo' maps to a register (without emitting any code) we need to
copy it to a temporary unless we know 'xxx' doesn't mutate it as a side
effect. Duktape doesn't currently have the compiler state to do such a
check so we must assume the worst. Even with a compiler internal
representation it's difficult to prove 'xxx' is safe if it involves any
side effects; e.g. foo[bar.quux] = 'quux' is potentially unsafe because
'bar.quux' may be an accessor and write to 'foo'.
9 years ago
Sami Vaarala
d6cd1eadf0
Add testcases for base mutation during prop expr
9 years ago
Sami Vaarala
225194bf72
Merge pull request #461 from svaarala/error-fileline-comment-trivia
Trivial typofix in comment
9 years ago
Sami Vaarala
0b46a7c5b9
Trivial typofix in comment
9 years ago
Sami Vaarala
a7c073a72d
Merge pull request #459 from svaarala/error-fileline-minor-improvement
Simplify file/line blaming w/o tracebacks
9 years ago
Sami Vaarala
a524518404
Simplify file/line blaming w/o tracebacks
Also clean up error augmentation process code a little bit; e.g. add a
separate helper for adding file/line similarly to what is used for
tracebacks.
9 years ago
Sami Vaarala
9a26d9dd85
Merge pull request #455 from svaarala/error-filename-linenumber-rework
Better error .fileName and .lineNumber default
9 years ago
Sami Vaarala
eafa29ab14
Releases: error .fileName/.lineNumber attribution
9 years ago
Sami Vaarala
a6d974d3e8
Website error .fileName/.lineNumber note
9 years ago
Sami Vaarala
080eeff55d
Examples of preprocessor compare issues
9 years ago
Sami Vaarala
43335dfcff
Code issues notes on preprocessor conventions
- #if defined(XXX) preferred over #ifdef XXX
- Avoid preprocessor comparison when values not known to be defined
9 years ago
Sami Vaarala
3da19ff2db
Internal doc on file/line attribution for errors
Also improve the internal error object documentation a bit.
9 years ago
Sami Vaarala
11e5ebf22e
API testcase for error file/line blame
9 years ago
Sami Vaarala
a7395400e7
Fix stacktrace [...] handling
The compilation error and C call site were not taken into account, which caused
the traceback to contain a truncation marker early.
9 years ago
Sami Vaarala
42185429b3
Better error .fileName and .lineNumber default
Use the first traceback entry which actually has a .fileName to provide
virtual .fileName and .lineNumber. This works better for expressions
such as 'Duktape.enc(123)' which currently get 'undefined' as .fileName
(comes from the enc() function, which has no .fileName property).
9 years ago
Sami Vaarala
c0234dddf1
Define DUK_USE_TRACEBACK_DEPTH even w/o tracebacks
The traceback depth limit is also used to limit the depth to which we scan
the callstack for a viable .fileName/.lineNumber.
9 years ago
Sami Vaarala
e1ab8d4918
Merge pull request #441 from svaarala/api-require-error-strings
Improve error messages for invalid index and require errors in API calls
9 years ago
Sami Vaarala
c577466243
Releases: error messages
9 years ago
Sami Vaarala
7beac965f9
Fix harmless uninitialized data warning
The warning is actually unnecessary because the code path ensures the string
pointer read is always valid. The compiler just doesn't know why this is the
case. Memzero the variable to avoid the warning.
9 years ago
Sami Vaarala
ba542f9792
Use helper for DUK_ERR_API_ERROR call sites
Reduces footprint further.
9 years ago
Sami Vaarala
f5653f95db
Relocate error throwing helpers to duk_error.h
9 years ago
Sami Vaarala
67901651ba
Reduce error call site size
9 years ago
Sami Vaarala
041ed4f67b
Refactor error message handling further
9 years ago
Sami Vaarala
131b51485e
Fix API test expect strings for new error messages
9 years ago