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
Sami Vaarala
56d0e2b8fc
Update testcase known issues
8 years ago
Sami Vaarala
0394a4f280
Testcases for direct .call/.apply handling
8 years ago
Sami Vaarala
22b72646a2
Don't shrink value stack for a call
8 years ago
Sami Vaarala
4c2a198978
Direct call handling of .call() and .apply()
Handle .call() and .apply() directly without them being visible on the call
stack.
8 years ago
Sami Vaarala
9ad07cd4cc
Genbuiltins support for special_call flag
8 years ago
Sami Vaarala
601cd7153d
Merge pull request #1518 from svaarala/fix-reflect-construct-extra-args
Fix Reflect.construct() handling of extra arguments (4 or more arguments)
8 years ago
Sami Vaarala
e111b401b8
Releases: Reflect.apply() extra arg handling
8 years ago
Sami Vaarala
4bc11b8ea6
Fix Reflect.construct() extra argument handling
8 years ago
Sami Vaarala
63c0504059
Add testcase for Reflect.construct() extra args
8 years ago
Sami Vaarala
b1241ccf26
Merge pull request #1515 from svaarala/native-function-prototype
Add a %NativeFunctionPrototype% for user created Duktape/C functions and lightfuncs
8 years ago
Sami Vaarala
155bd43cb2
Releases: %NativeFunctionPrototype%
8 years ago
Sami Vaarala
5de8fdbc77
2.2 migration note for %NativeFunctionPrototype%
8 years ago
Sami Vaarala
db35cddd51
Internal doc updates for DUKFUNC flag change
8 years ago
Sami Vaarala
b2667848dd
Testcase updates for %NativeFunctionPrototype%
8 years ago
Sami Vaarala
adcc4e5bed
Use %NativeFunctionPrototype% for native functions
Not applied to built-in native functions which must inherit directly
from Function.prototype.
8 years ago