Sami Vaarala
5f6407da4c
Merge pull request #1815 from svaarala/api-duk-random
Add duk_random() API call
7 years ago
Sami Vaarala
07e67d8a0d
Releases: duk_random()
7 years ago
Sami Vaarala
e03f3a0811
API doc for duk_random()
7 years ago
Sami Vaarala
43bc176c46
Testcases for duk_random()
7 years ago
Sami Vaarala
c53d78775f
Add duk_api_random.c to dist/configure files
7 years ago
Sami Vaarala
7ca2062c35
Add duk_random() API call
7 years ago
Sami Vaarala
dbef981333
Merge pull request #1813 from svaarala/api-literal-pin-and-cache
Initial implementation of C API literal pinning and literal intern cache
7 years ago
Sami Vaarala
ae2e37c646
Releases: literal pinning and litcache
7 years ago
Sami Vaarala
4c74bc430d
API doc improvements for duk_xxx_literal() calls
7 years ago
Sami Vaarala
2b9ee20e23
Makefile target for literal intern test
7 years ago
Sami Vaarala
7732c18712
2.3 release note for pinned literals
7 years ago
Sami Vaarala
21b66211b3
Manual perf test for app literal usage
7 years ago
Sami Vaarala
fe5e4acf76
Mark ROM strings always pinned
7 years ago
Sami Vaarala
6f3e0d1971
Add C literal pinning and intern lookup cache
* Automatically pin C literals interned into heap strings. Or if the
literal maps to an already interned string, pin it too. Pinning is
implemented using a duk_hstring flag and a one-off refcount bump.
Mark-and-sweep avoids sweeping pinned strings based on the flag.
* Add a lookup cache for quickly mapping a C literal address (which is
assumed stable) into a duk_hstring pointer. Once a mapping has been
formed, it never needs to be invalidated because the duk_hstring is
always pinned if the cache is used. Only heap destruction will free
the pinned duk_hstrings.
* More internal call site conversion for literals.
* Wording trivia.
7 years ago
Sami Vaarala
df6f5102ad
Config changes for litcache
7 years ago
Sami Vaarala
a1afb0bc90
Merge pull request #1810 from svaarala/api-duk-get-prop-literal-etc
Add duk_{get,put,has,del}_prop_literal() and duk_{get,put}_global_{literal,heapptr}()
7 years ago
Sami Vaarala
7ca17bd033
Releases: duk_get_prop_literal() etc
7 years ago
Sami Vaarala
81c6cb7440
2.3 release note for duk_xxx_literal() calls
7 years ago
Sami Vaarala
ddbca66d3d
API doc changes for duk_get_prop_literal() etc
7 years ago
Sami Vaarala
deda13e80e
API tests for duk_get_prop_literal() etc
7 years ago
Sami Vaarala
a3ab4d14f8
duk_get_prop_literal() et al
7 years ago
Sami Vaarala
9fab752176
Merge pull request #1811 from ffontaine/master
Makefile.sharedlibrary: mkdir in install target
7 years ago
Fabrice Fontaine
98c14aea4c
Makefile.sharedlibrary: mkdir in install target
Headers are copied in $(INSTALL_PREFIX)/include so mkdir this directory
otherwise cp will fail
Same thing for libraries and $(INSTALL_PREFIX)/lib
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 years ago
Sami Vaarala
9b71032236
Perf test to exercise literal interning
7 years ago
Sami Vaarala
2e7fb77191
Merge pull request #1805 from svaarala/api-add-push-literal
Add duk_push_literal() API call
7 years ago
Sami Vaarala
ffa317c145
Releases: duk_push_literal()
7 years ago
Sami Vaarala
2d0fd42902
Release checklist experimental status note
7 years ago
Sami Vaarala
f828adcf62
Perf test additions for duk_push_literal()
* Add a microbenchmark that captures the (very small) impact of using
duk_push_literal() internally.
* Add an unrelated perf test missing from a previous commit.
7 years ago
Sami Vaarala
88c8a19aef
Change internals to use duk_push_literal()
9 years ago
Sami Vaarala
f48012418a
API documentation for duk_push_literal()
7 years ago
Sami Vaarala
ba13c8dab9
API test for duk_push_literal()
7 years ago
Sami Vaarala
d55a007ac1
Add duk_push_literal() API call
9 years ago
Sami Vaarala
8598e68bde
Merge pull request #1809 from svaarala/makefile-cc-whitespace-trivia
Makefile whitespace trivia
7 years ago
Sami Vaarala
8261f31138
Makefile whitespace consistency in repo Makefile
7 years ago
Sami Vaarala
5991468528
Makefile whitespace consistency in dist-files
7 years ago
Sami Vaarala
e73164eefb
Makefile whitespace consistency in extras
7 years ago
Sami Vaarala
711da95000
Merge pull request #1808 from ffontaine/master
Replace gcc by $(CC) in extras Makefiles
7 years ago
Fabrice Fontaine
c214a07849
Replace gcc by $(CC) in extras Makefiles
All Makefiles in extra folder were using gcc instead of $(CC), fix this
to allow cross-compilation
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 years ago
Sami Vaarala
8cb0b83926
Merge pull request #1804 from ffontaine/master
Replace gcc by $(CC) in Makefile.sharedlibrary and other dist Makefiles
7 years ago
Sami Vaarala
d281d91502
Merge pull request #1745 from svaarala/api-push-new-target
Add duk_push_new_target() API call
7 years ago
Fabrice Fontaine
d56cefe15a
Replace gcc by $(CC) in Makefiles
Some Makefiles were using gcc instead of $(CC), fix this to allow
cross-compilation
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
7 years ago
Sami Vaarala
eb6f943de6
Releases: duk_push_new_target()
7 years ago
Sami Vaarala
bab6bf2a19
API doc for duk_push_new_target()
7 years ago
Sami Vaarala
c3af4f9d1f
API test for duk_push_new_target()
7 years ago
Sami Vaarala
8fc6a0eb75
Share duk_push_new_target() in executor
7 years ago
Sami Vaarala
cc9b74ae6a
Add duk_push_new_target()
7 years ago
Sami Vaarala
a776f864e7
Merge pull request #1801 from svaarala/cbor-extra-improvements-2
CBOR extra improvements, add CBOR to dist
7 years ago
Sami Vaarala
9cdbe7696b
Releases: cbor extra
7 years ago
Sami Vaarala
8105dcd56b
Add cbor extra to dist package
7 years ago
Sami Vaarala
cbeb4998a3
Add CBOR binding to repo 'duk' by default
7 years ago