Sami Vaarala
3776bb424e
Testcase improvements for special_call handling
8 years ago
Sami Vaarala
606fadf001
Direct Reflect.construct() call handling
8 years ago
Sami Vaarala
e35b4768de
Merge pull request #1523 from svaarala/allow-yield-from-constructor
Handle constructor call semantics inline, allow yield from constructor
8 years ago
Sami Vaarala
e8f3f0496d
Releases: constructor call rework
8 years ago
Sami Vaarala
19bc8f44b7
2.2 migration notes: errCreate callstack
8 years ago
Sami Vaarala
a0dd78ebd3
Guide update for constructor call yield
8 years ago
Sami Vaarala
f0a4dca162
API doc for duk_is_constructable()
8 years ago
Sami Vaarala
1c52465513
Testcase updates for constructor call rework
8 years ago
Sami Vaarala
cd08ff8624
Allow yield from constructor calls
8 years ago
Sami Vaarala
37aaf9d069
Dump fastints as 123_F (not 123F) in debug prints
8 years ago
Sami Vaarala
22ac4dd8db
Merge pull request #1507 from svaarala/boundfunc-cleanups
Misc follow-ups to duk_hboundfunc change
8 years ago
Sami Vaarala
7eb247154a
Releases: duk_hboundfunc
8 years ago
Sami Vaarala
f99509bef6
duk_hboundfunc note in 2.2 release notes
8 years ago
Sami Vaarala
8dde62a84a
Add 1d cell perf test
8 years ago
Sami Vaarala
0acf098897
Function testcase improvements: bind, apply
8 years ago
Sami Vaarala
e84d763cf7
Rename internal duk_create_gap() helper
8 years ago
Sami Vaarala
6032058d29
Add duk_hboundfunc debugger artificial properties
8 years ago
Sami Vaarala
ea23aa1cfd
Function .bind() optimizations
8 years ago
Sami Vaarala
2752bcd6fb
Merge pull request #1540 from svaarala/fix-debugger-proplist
Fix debugger GetHeapObjInfo property list
8 years ago
Sami Vaarala
acacbe5ef2
Merge pull request #1539 from svaarala/fix-tailcall-assert
Fix incorrect tail call assert
8 years ago
Sami Vaarala
daff638d12
Releases: GetHeapObjInfo segfault
8 years ago
Sami Vaarala
35a78aadec
Debugger inspect bug fix
8 years ago
Sami Vaarala
05370e419b
Fix incorrect assert
8 years ago
Sami Vaarala
c84f18d17f
Merge pull request #1537 from svaarala/lazy-valstack-shrink-cleanups
Minor cleanups to value stack grow/shrink
8 years ago
Sami Vaarala
b1e9373813
Releases: value stack rework
8 years ago
Sami Vaarala
f3d086c82a
Value stack reserve test improvements
8 years ago
Sami Vaarala
735f9024c4
Value stack rework cleanups
* Wrap checks to duk_require_stack() and variants.
* Wrap check to value stack grow.
* Add internal helper duk_set_top_and_wipe(); for now it's just two
duk_set_top() calls but can be optimized later.
8 years ago
Sami Vaarala
fbf3ddf319
Merge pull request #1526 from svaarala/lazy-valstack-shrink
Rework value stack grow/shrink behavior, lazy shrink
8 years ago
Sami Vaarala
16ab694d59
Releases: value stack grow/shrink
8 years ago
Sami Vaarala
afe936a594
Internal doc changes for value stack rework
8 years ago
Sami Vaarala
163156474d
Config option updates
8 years ago
Sami Vaarala
540e14fe8c
Perf test updates
8 years ago
Sami Vaarala
0a310ce580
Testcases for valstack shrink
8 years ago
Sami Vaarala
a9fa2362ec
Rework value stack grow/shrink, lazy shrink
* Make value stack and call stack limits configurable via DUK_USE_xxx
options. Also make value stack grow/shrink constants configurable.
* Rewrite value stack grow/shrink check primitives for better hot/cold path
handling.
* Use a proportional spare for grow and shrink sizes so that applications
needing a large value stack have fewer value stack resizes.
* Grow value stack allocation when entering a call or when explicitly requested
via e.g. duk_require_stack().
* Never shrink the value stack when entering a call, so that the unwind path
is guaranteed to have value stack to handle a protected call return. This
guarantee is only needed for protected call but is now applied to all calls
for simplicity.
* Don't perform a value stack shrink check at all in function return anymore.
It would be OK from protected call semantics perspective to do a shrink
attempt without throwing if it fails.
* Perform a value stack shrink check in mark-and-sweep only for now. When
emergency GC is running, shrink to a minimal size respecting current value
stack reserve.
8 years ago
Sami Vaarala
97ebbcefc7
Merge pull request #1536 from svaarala/fix-check-require-stack-top
Fix duk_{check,require}_stack_top() reserve calculation
8 years ago
Sami Vaarala
d1b20f5ec9
Releases: duk_{check,require}_stack_top() reserve
8 years ago
Sami Vaarala
d164bd44ce
Fix duk_{check,require}_stack_top() reserve
8 years ago
Sami Vaarala
a51b5c0306
Improve duk_{check,require}_stack_top() test case
Cover case where there is an existing call in the call stack; this was
handled incorrectly so the updated test covers the bug.
8 years ago
Sami Vaarala
54bef09ef1
Merge pull request #1525 from svaarala/unpack-fast-path
Add a duk_harray fast path to the internal duk_unpack_array_like() helper
8 years ago
Sami Vaarala
503020c764
Releases: duk_harray unpack fast path
8 years ago
Sami Vaarala
ea217a30ec
duk_unpack_array_like() fastpath
8 years ago
Sami Vaarala
a3d39da5db
Merge pull request #1522 from svaarala/func-call-direct-handling-cleanups
Some cleanups for direct .call() and .apply() handling
8 years ago
Sami Vaarala
fb3ec6633c
Releases: .call()/.apply() cleanup
8 years ago
Sami Vaarala
2d8af4dc86
Simplify .call/.apply handling
8 years ago
Sami Vaarala
f209463718
Merge pull request #1421 from svaarala/func-call-direct-handling
Direct handling of .call(), .apply(), etc
8 years ago
Sami Vaarala
194075c805
Releases: .call() and .apply() inline handling
8 years ago
Sami Vaarala
076f206056
Release notes: .call/.apply
8 years ago
Sami Vaarala
4cbb65ce2c
Debugger doc update for 'special_call'
8 years ago
Sami Vaarala
973bfb38a4
Website yield and .call/.apply
8 years ago
Sami Vaarala
dd0cc4fa1c
Perf tests for .call/.apply
8 years ago