Sami Vaarala
d6307f778c
Add duk_context check to code policy
7 years ago
Sami Vaarala
e10c3396aa
Internal doc changes for duk_hthread
7 years ago
Sami Vaarala
ec8a181549
Use duk_hthread, not duk_context in internals
Both duk_hthread and duk_context typedefs resolve to struct duk_hthread
internally. In external API duk_context resolves to struct duk_hthread
which is intentionally left undefined as the struct itself is not
dereferenced. Change internal code to use duk_hthread exclusively which
removes unnecessary and awkward thr <-> ctx casts from internals.
The basic guidelines are:
* Public API uses duk_context in prototype declarations. The intent is to
hide the internal type, and there's already a wide dependency on the
type name.
* All internal code, both declarations and definitions, use duk_hthread
exclusively. This is done even for API functions, i.e. an API function
declared as "void duk_foo(duk_context *ctx);" is then defined as
"void duk_foo(duk_hthread *thr);".
7 years ago
Sami Vaarala
9c42b8cb36
Config duk_context vs. duk_hthread note
7 years ago
Sami Vaarala
531c977940
Merge pull request #1612 from svaarala/faster-duk-to-number-tval
Faster duk_to_number_tval(), some more duk_pop_unsafe() internal calls
7 years ago
Sami Vaarala
40243d84ba
Releases: faster duk_to_number_tval()
7 years ago
Sami Vaarala
eb882f1488
Faster duk_to_number_tval(), more pop unsafe
7 years ago
Sami Vaarala
473bdb6116
Merge pull request #1611 from svaarala/non-lowmem-bufwriter-growth
Faster bufwriter growth for non-lowmem targets
7 years ago
Sami Vaarala
72a996c4a6
Releases: larger bufwriter spare
7 years ago
Sami Vaarala
eadd74d1b4
Merge pull request #1610 from Legimet/add-missing-parenthesis
Add missing parenthesis in duk_safe_call() example
7 years ago
Legimet
bbe86ce292
Add missing parenthesis in duk_safe_call() example
7 years ago
Sami Vaarala
07fdaf59ec
Faster bufwriter growth for non-lowmem targets
8 years ago
Sami Vaarala
5674fa8936
Merge pull request #1607 from svaarala/use-enum-sort-key
Use sort key for enum sort
7 years ago
Sami Vaarala
4c6e6e84d9
Releases: enum sort key
7 years ago
Sami Vaarala
b161135a03
Use sort key for enum sort
7 years ago
Sami Vaarala
18e364fd3d
Merge pull request #1608 from Legimet/fix-api-doc-typo
Fix typo in duk_time_to_components documentation
7 years ago
Legimet
472ae49065
Fix typo in duk_time_to_components documentation
7 years ago
Sami Vaarala
059d664ade
Merge pull request #1460 from svaarala/implement-ownkeys-symbol-order
Implement Symbol sorting for Reflect.ownKeys() order
7 years ago
Sami Vaarala
6f1249977e
Releases: Reflect.ownKeys() symbol sort order
7 years ago
Sami Vaarala
12c005985d
API doc clarification for duk_enum()
7 years ago
Sami Vaarala
e52db108a9
Add Reflect.ownKeys() (enum sort) perf tests
7 years ago
Sami Vaarala
bc3ebb4535
Proper symbol sorting for Reflect.ownKeys()
7 years ago
Sami Vaarala
2b58de5927
Testcase for Reflect.ownKeys() order
Doesn't implement Symbol order now.
8 years ago
Sami Vaarala
a0f5cef347
Merge pull request #1606 from svaarala/releases-module-node
Releases: module-node 1.x compatibility, warnings
7 years ago
Sami Vaarala
aa13080871
Releases: module-node 1.x compatibility, warnings
7 years ago
Sami Vaarala
cfb72d4ead
Merge pull request #1605 from Legimet/module-node-fixes
module-node fixes
7 years ago
Legimet
c9ed1ff9d0
Fix module-node compilation with Duktape 1.x
- duk_push_bare_object() does not exist
7 years ago
Legimet
9516f91723
Fix compiler warnings with Duktape >= 2.0 in module-node
- Add void cast to duk_throw/duk_error calls
7 years ago
Sami Vaarala
7384fab911
Merge pull request #1601 from svaarala/add-call-proxy-trap
Add 'apply' and 'construct' Proxy traps with a few limitations
7 years ago
Sami Vaarala
30aabd2ed5
Releases: Proxy 'apply' and 'construct'
7 years ago
Sami Vaarala
c63512a6f0
Debugger 'callable' artificial property
7 years ago
Sami Vaarala
c0ff4988a3
Minimal perf test for Proxy call handling
7 years ago
Sami Vaarala
ab740c0053
Genbuiltins CALLABLE flag support
7 years ago
Sami Vaarala
b5a5e5031d
Testcases for Proxy 'apply' and 'construct' traps
8 years ago
Sami Vaarala
d9068536e7
Implement 'apply' and 'construct' Proxy support
8 years ago
Sami Vaarala
fd75df2247
Merge pull request #1599 from svaarala/faster-arith-string-concat
Add internal duk_concat_2() helper for str+str arithmetic
7 years ago
Sami Vaarala
14d2bad256
Releases: duk_concat_2()
7 years ago
Sami Vaarala
2c71ffd8bd
Add string addition perf test
7 years ago
Sami Vaarala
637919bc72
Testcase for + operator coercion order
7 years ago
Sami Vaarala
15f4d8bfcd
Add internal duk_concat_2() helper
7 years ago
Sami Vaarala
c47ef78c9f
Merge pull request #1597 from svaarala/newarr-init-size
Add init size for NEWARR opcode (array literal)
7 years ago
Sami Vaarala
8fefc050c6
Releases: NEWARR init size
7 years ago
Sami Vaarala
ba197aea0f
Perf tests for array literals
7 years ago
Sami Vaarala
d96d29ddf1
Testcases for array/object literal sizes
7 years ago
Sami Vaarala
f1ad01b482
Opcode metadata update for NEWARR
7 years ago
Sami Vaarala
e1370ead29
Add init size for NEWARR opcode
7 years ago
Sami Vaarala
4688c177c2
Merge pull request #1596 from svaarala/newobj-init-size
Add initial alloc size to NEWOBJ opcode (object literals)
7 years ago
Sami Vaarala
0119de260e
Releases: NEWOBJ initial size
7 years ago
Sami Vaarala
ba2b83dd95
Merge pull request #1580 from svaarala/fix-dukdebug-source-scan
Fix duk_debug.js source code scan
7 years ago
Sami Vaarala
3a4baa1755
NEWOBJ opcode metadata update
7 years ago