Sami Vaarala
8909b19011
API tests for duk_opt_xxx() API calls
8 years ago
Sami Vaarala
5b04a73ed5
Add duk_opt_xxx() API calls
8 years ago
Sami Vaarala
cbe05e79fa
Merge pull request #1457 from svaarala/allow-markandsweep-during-finalization
Allow mark-and-sweep during finalize_list processing
8 years ago
Sami Vaarala
359f2b13e0
Releases: mark-and-sweep during finalization
8 years ago
Sami Vaarala
51511857dd
Website finalizer guarantee clarifications
8 years ago
Sami Vaarala
83daed3244
Internal doc updates for mark-and-sweep
8 years ago
Sami Vaarala
00042faba1
Test coverage for GC during finalization
8 years ago
Sami Vaarala
49f87b6422
Allow mark-and-sweep during finalizer processing
Tweak mark-and-sweep so that if finalizers are present (heap->finalize_list
is not NULL), rescue decisions are postponed (free decisions are not).
In concrete terms this means that objects normally rescued keep their
FINALIZED flag so that their finalizer won't be called again if the object
turns out to be unreachable in a later run.
8 years ago
Sami Vaarala
cea8458cd1
Merge pull request #1464 from svaarala/compat-table-documentation
Add compat-table links to documentation
8 years ago
Sami Vaarala
eb53ede7f6
Merge pull request #1463 from svaarala/fix-regexp-noncapturing-parse
Fix missing SyntaxError for invalid RegExp groups like /(?Xabc)/
8 years ago
Sami Vaarala
086d94847a
Release checklist: compat-table
8 years ago
Sami Vaarala
ba6bfd7e8d
Add compat-table links to documentation
8 years ago
Sami Vaarala
47d246bd95
Releases: regexp group parsing
8 years ago
Sami Vaarala
1876bb785a
Fix RegExp group SyntaxError handling
8 years ago
Sami Vaarala
476c01b546
Bug test for invalid RegExp group, e.g. (?X...)
8 years ago
Sami Vaarala
d2a433e08e
Merge pull request #1462 from svaarala/releases-tinspire-xopen-source
Releases: Nspire portability
8 years ago
Sami Vaarala
67881ec47e
Releases: Nspire portability
8 years ago
Sami Vaarala
32a8b65a7e
Merge pull request #1461 from Legimet/tinspire-add-xopen-source
Define _XOPEN_SOURCE for Nspire (needed for strptime)
8 years ago
Sami Vaarala
fb6a0db168
Merge pull request #1459 from svaarala/fix-symbol-object-valueof
Fix Symbol object .valueOf() which returned Symbol object instead of plain Symbol
8 years ago
Legimet
ee1d7a9cdd
Define _XOPEN_SOURCE for Nspire (needed for strptime)
8 years ago
Sami Vaarala
0ec8c1699e
Releases: Symbol Object valueOf()
8 years ago
Sami Vaarala
c6f9ee1550
Fix Symbol object .valueOf()
8 years ago
Sami Vaarala
ca6cc2f23f
Add test for Symbol Object .valueOf()
8 years ago
Sami Vaarala
9bbadfd10d
Merge pull request #1442 from svaarala/push-heapptr-unreachable-unfinalized
Allow duk_push_heapptr() for an unreachable but not yet finalized object
8 years ago
Sami Vaarala
9b5d76930f
Releases: duk_push_heapptr() for pending finalizer
8 years ago
Sami Vaarala
8b2e22f12a
API doc update for duk_push_heapptr()
8 years ago
Sami Vaarala
6ef6ece6a3
Allow duk_push_heapptr() for obj pending finalizer
8 years ago
Sami Vaarala
c75c6f2e31
Test for duk_push_heapptr() for not-yet-finalized
8 years ago
Sami Vaarala
1b562eec7e
Merge pull request #1455 from svaarala/markandsweep-finalize-list-temproot
Include finalize_list in mark-and-sweep TEMPROOT handling
8 years ago
Sami Vaarala
8246c63e45
Releases: finalize_list TEMPROOTs
8 years ago
Sami Vaarala
13fee1d008
Makeduk commented out m&s reclimit
8 years ago
Sami Vaarala
111c0eac97
Check finalize_list also for temproots
This wasn't necessary before: finalize_list only contained unreachable
objects so nothing could point to them while we marked heap_allocated.
But when duk_push_heapptr() is allowed to push unreachable pointers
(which are pending finalization), it's possible for an object in
heap_allocated to point to an object on finalize_list, which also means
that the latter object can get a TEMPROOT flag.
8 years ago
Sami Vaarala
86a0b3301f
Merge pull request #1454 from svaarala/shared-object-in-list-asserts
Shared assert helper for 'in heap_allocated'
8 years ago
Sami Vaarala
0d41dba2d0
Releases: ptr-in-heap-allocated
8 years ago
Sami Vaarala
f8384d9520
Shared assert helper for 'in heap_allocated'
8 years ago
Sami Vaarala
0e3fb533be
Merge pull request #1451 from svaarala/fix-finalize-list-refcount-bump
Preincrement refcount on finalize_list insert to avoid refzero for pending objects
8 years ago
Sami Vaarala
7674dba826
Releases: finalizer rework
8 years ago
Sami Vaarala
0edffb70e3
Side effect doc refcount bump note
8 years ago
Sami Vaarala
6aade4f7bf
Bump refcounts on finalize_list insert
8 years ago
Sami Vaarala
929e969baf
Testcase for finalize_list refzero case
8 years ago
Sami Vaarala
18ff0e4d4d
Merge pull request #709 from svaarala/finalizer-torture-improvements
Forced stack reallocs in finalizer torture
8 years ago
Sami Vaarala
9228e9d7bf
Releases: stack reallocs in finalizer torture
8 years ago
Sami Vaarala
cc02912201
Forced stack reallocs in finalizer torture
9 years ago
Sami Vaarala
97ea26d51e
Merge pull request #1453 from svaarala/fix-duk-inspect-stale-tv
Fix duk_api_inspect() stale 'tv' pointer
8 years ago
Sami Vaarala
f5529d2e7c
Releases: duk_inspect_value() stale 'tv'
8 years ago
Sami Vaarala
71a05b79ce
Fix duk_api_inspect() stale 'tv' pointer
A pointer to the value stack was obtained before duk_push_bare_object()
and used after the push. If value stack resize happens as a side effect
of the push (mark-and-sweep, finalizers, etc) the 'tv' pointer could be
stale. Found using torture tests.
8 years ago
Sami Vaarala
5ef5eecd57
Merge pull request #1450 from svaarala/remove-compile-flag-translation
Remove duk_compile() flag translation
8 years ago
Sami Vaarala
1981f56fe8
Releases: avoid DUK_COMPILE_xxx flag translation
8 years ago
Sami Vaarala
e11753082f
Use DUK_COMPILE_xxx flags are internally
Avoids unnecessary translation.
8 years ago
Sami Vaarala
1304fe039a
Merge pull request #1452 from svaarala/module-node-shebang-support
Add shebang support to module-node
8 years ago