Sami Vaarala
458018a886
Merge pull request #1157 from svaarala/fix-bound-coroutine-assert
Fix bound coroutine resume assert
8 years ago
Sami Vaarala
a21b027e00
Releases: coroutine boundfunc assert
8 years ago
Sami Vaarala
8544c5f0c3
Fix bound coroutine resume assert
8 years ago
Sami Vaarala
506d5413c8
Merge pull request #1155 from svaarala/validate-duk-use-metadata
Add tooling to validate DUK_USE_xxx options in source code
8 years ago
Sami Vaarala
9cbe03b214
Add missing config option metadata file
8 years ago
Sami Vaarala
8146a925bb
Validate DUK_USE_xxx in source against config meta
Also info log about config options which are defined (and not removed) but
don't appear in source code.
8 years ago
Sami Vaarala
1dd448809e
Merge pull request #1146 from svaarala/improve-varmap-dropping
Allow dropping of _Varmap when only safe slow path variable reads are present
8 years ago
Sami Vaarala
2a2782432c
Releases: _Varmap dropping in more cases
8 years ago
Sami Vaarala
af1bca7696
Testcases for _Varmap and _Formals dropping
8 years ago
Sami Vaarala
8e5da76ee0
Improve _Varmap and _Formals dropping, initial bc
Previously _Varmap was kept if any slow path accesses were made. Improve this
behavior so that, in the absence of eval() etc, safe slow path accesses are
allowed while still dropping the _Varmap. A safe slow path access is one that
doesn't match any of the statically declared variables in the function so that
(again assuming no new variables are declared by e.g. eval()) the varmap won't
be needed at runtime.
Allow dropping of _Formals even in presence of eval() or a potentially
dangerous slow path access if _Formals is empty *and* _Formals.length matches
nargs so that .length computation works out even without _Formals.
Also reduce initial bytecode allocation from 2kB to 256 bytes when
DUK_USE_PREFER_SIZE is defined (in absence of a more specific define).
8 years ago
Sami Vaarala
3badb0bd03
Merge pull request #1154 from svaarala/fix-array-push-fastpath-retval
Fix Array .push() fast path return value
8 years ago
Sami Vaarala
af7f68a360
Releases: Array .push() fast path
8 years ago
Sami Vaarala
198612901d
Test262 known issues update, array fastpath
8 years ago
Sami Vaarala
62088773eb
Fix Array .push() fastpath return value
8 years ago
Sami Vaarala
88f20fc411
Bug testcase for Array .push() fastpath bug
8 years ago
Sami Vaarala
aaaddcc28d
Merge pull request #1134 from svaarala/allow-bound-func-for-thread
Allow bound function as initial Duktape.Thread function
8 years ago
Sami Vaarala
5aaec337db
Releases: Thread bound function
8 years ago
Sami Vaarala
a317a5a2b4
Website fixes for bound .name, Thread constructor
8 years ago
Sami Vaarala
e2636bedd0
Tests for Duktape.Thread bound/native initial func
8 years ago
Sami Vaarala
4c8f675c47
Allow bound function as Thread initial function
8 years ago
Sami Vaarala
6ad71abb1c
Merge pull request #1152 from svaarala/more-varint-initdata
Use varuint encoding for more initdata fields
8 years ago
Sami Vaarala
1196b55591
Releases: more initdata varuint
8 years ago
Sami Vaarala
237090ad8e
Update debugger classnames metadata
8 years ago
Sami Vaarala
7914e4f26d
Testcase fix for internal class number changes
8 years ago
Sami Vaarala
d3b568b722
Use varuint for more initdata encodings
8 years ago
Sami Vaarala
9f734d3434
Genbuiltins.py varuint encoding tweaks
8 years ago
Sami Vaarala
47b96b2cbe
Merge pull request #1151 from svaarala/varint-bits-initdata
Use a shared varuint bit-packed type for some built-ins initdata fields
8 years ago
Sami Vaarala
a79aa870e3
Releases: varuint bitpacked initdata
8 years ago
Sami Vaarala
29f8be5830
Use varuint for a few built-ins initdata items
8 years ago
Sami Vaarala
689d704702
Genbuiltins bitencoder support for shared varuint
8 years ago
Sami Vaarala
e5adf5ccd2
Merge pull request #1150 from svaarala/bump-num-func-prop-bits
Bump RAM built-ins initdata bits for normal/function property count
8 years ago
Sami Vaarala
64b6693027
Releases: normal/func prop bits in RAM initdata
8 years ago
Sami Vaarala
98d03d9a40
Bump normal/func count bits in RAM initdata
8 years ago
Sami Vaarala
83bcc0b7cd
Merge pull request #1149 from svaarala/jx-array-gaps
Fix JX/JC handling of array gaps in JSON stringify fast path
8 years ago
Sami Vaarala
0348224dc7
Releases: JX array gaps 'undefined'
8 years ago
Sami Vaarala
e59e1833f4
Abort JSON fastpath if object has arridx key(s)
8 years ago
Sami Vaarala
f817025003
Testcase fixes for JX/JC ES6 property ordering
8 years ago
Sami Vaarala
6eb352fa21
Fix JX/JC handling of array gaps
8 years ago
Sami Vaarala
70d8c2ad79
Testcase for JX/JC array gaps
8 years ago
Sami Vaarala
c4d7dbdfdc
Merge pull request #1139 from svaarala/es6-function-tostring
Change Function.prototype.toString() to be ES6 compatible
8 years ago
Sami Vaarala
04f62d4177
Releases: Function.prototype.toString() ES6
8 years ago
Sami Vaarala
54dbb743ac
2.0 migration note for Function .toString()
8 years ago
Sami Vaarala
bb7ad2517b
Testcases for Function.prototype.toString() ES6
8 years ago
Sami Vaarala
b654310fb7
Change function .toString() behavior to match ES6
String output must either (a) eval() back as an equivalent object, OR
(b) eval() to a SyntaxError.
Previous Duktape output, conformant to ES5/ES5.1, matched FunctionDeclaration
syntax but didn't parse back as an equivalent function.
8 years ago
Sami Vaarala
402e77f758
Merge pull request #1141 from svaarala/prune-formals-when-possible
Prune duk_hcompfunc _Formals when possible
8 years ago
Sami Vaarala
67381ace99
Releases: prune _Formals when safe to do so
8 years ago
Sami Vaarala
70506526ff
Testcase for hcompfunc _Formals/length handling
8 years ago
Sami Vaarala
0d36379451
Omit _Formals from duk_hcompfunc when possible
8 years ago
Sami Vaarala
b7504069cf
Merge pull request #1132 from svaarala/perf-explicit-lexenv-varenv
Add explicit lexenv/varenv fields to duk_hcompfunc
8 years ago
Sami Vaarala
b77a85c3fa
Releases: explicit lexenv/varenv in duk_hcompfunc
8 years ago