Sami Vaarala
ff588aa8f6
Use unsafe (trusted) pops in internals
7 years ago
Sami Vaarala
c212aaf675
Merge pull request #1582 from svaarala/add-no-stack-protector
Add -fno-stack-protector to repo build
7 years ago
Sami Vaarala
a6d9a91870
Add -fno-stack-protector to testrunner builds
7 years ago
Sami Vaarala
75a8b0cf07
Add -fno-stack-protector to nondebug build
7 years ago
Sami Vaarala
ffae2412df
Merge pull request #1579 from svaarala/add-debug-stats
Add simple stats dumped in mark-and-sweep
7 years ago
Sami Vaarala
f3508f4814
Releases: stats
7 years ago
Sami Vaarala
58a1ee4531
Add simple stats dumped in mark-and-sweep
7 years ago
Sami Vaarala
1851559c51
Merge pull request #1337 from svaarala/lazy-string-charlen-optional
Add lowmem option for making lazy duk_hstring charlen optional
7 years ago
Sami Vaarala
a73da66a45
Releases: optional lazy charlen
7 years ago
Sami Vaarala
0215e41c99
Commented out lazy charlen option for 'duk'
7 years ago
Sami Vaarala
69529b4e59
DUK_USE_HSTRING_LAZY_CLEN config option
7 years ago
Sami Vaarala
ec21bd0f9b
Make lazy charlen optional; non-lazy is smaller
8 years ago
Sami Vaarala
fff6ee1e3c
Merge pull request #1572 from svaarala/fix-newtarget-opcode-metadata
Fix NEWTARGET opcode metadata
7 years ago
Sami Vaarala
347607e843
Releases: new.target
7 years ago
Sami Vaarala
026aed0624
Fix NEWTARGET opcode metadata
7 years ago
Sami Vaarala
f27908baef
Merge pull request #1552 from svaarala/shared-call-setup
Rework call handling for smaller footprint and less duplication
7 years ago
Sami Vaarala
3f14e7bd8d
Releases: call rework
8 years ago
Sami Vaarala
2e56321245
2.2 migration note for duk_safe_call()
8 years ago
Sami Vaarala
8f76b51e4d
Internal doc updates for call rework
8 years ago
Sami Vaarala
e8f432a390
Add duk_is_constructable() test coverage
8 years ago
Sami Vaarala
f47af1d4d3
Perf test updates for call handling
8 years ago
Sami Vaarala
63c6ac6b09
Testcase additions for call rework
8 years ago
Sami Vaarala
c22017c045
Debugger opcode metadata updates
8 years ago
Sami Vaarala
caa76c249c
Update example pool sizes for valstack
8 years ago
Sami Vaarala
e8a1268759
Shared call setup for Ecma-to-Ecma calls
Remove the special ecma-to-ecma call setup code and just use the normal
unprotected call setup code for that instead. Most of the code is the
same; just before calling into the bytecode executor check if the current
executor can be reused, and if so, indicate the situation using a special
return code.
Also remove internal duk_handle_call_protected() and implement all
protected API calls via duk_safe_call(). This reduces footprint and code
duplication further.
Rework call handling to use helpers more to make the call handling code
easier to follow.
Various other minor changer, e.g. DUK_OP_NEW is now DUK_OP_CONSCALL and
bytecode sets up the initial default instance.
8 years ago
Sami Vaarala
127981234d
Avoid side effect in valstack torture realloc
8 years ago
Sami Vaarala
fbf6409720
Merge pull request #1570 from svaarala/fix-regexp-class-dash
Fix bug in RegExp class dash parsing (Duktape 2.0 and later)
8 years ago
Sami Vaarala
a458cd2211
Releases: regexp class dash
8 years ago
Sami Vaarala
894e916cc9
Fix regexp class range dash parse lookup
8 years ago
Sami Vaarala
5526790411
Add bug test for regexp class dash
8 years ago
Sami Vaarala
3f3a93cbcc
Merge pull request #1562 from svaarala/codepolicy-ll-ull-constants
Add codepolicycheck for longlong consts, fix a few consts
8 years ago
Sami Vaarala
c6b482e2b8
Releases: portability for old MSVC versions
8 years ago
Sami Vaarala
c0d0a9f189
Fix a few more unwrapped (U)LL constants
8 years ago
Sami Vaarala
2875c32b8f
Add codepolicycheck for longlong consts
8 years ago
Sami Vaarala
0d12c9869b
Merge pull request #1559 from shdon/master
Fixed some issues with Microsoft Visual Studio
8 years ago
Steven Don
0867a8fdb1
Fixed some issues with Microsoft Visual Studio, allowing compilations on VC2005 and earlier (up to at least VC6).
Replaced #ifdefs with DUK_U64_CONSTANT and DUK_I64_CONSTANT macros for cleaner
code and to prevent future breakage, as suggested by svaarala.
Missed a few replacements. Added.
Last one.
Changed parameter name from x to a.
Split MinGW and MSVC typedefs for 64-bit types.
Added myself to list of code contributors.
8 years ago
Sami Vaarala
b4e7ed1e27
Merge pull request #1561 from svaarala/more-es6-math-bindings
Add ES2015 Math clz32(), imul(), sign()
8 years ago
Sami Vaarala
22c926fd12
Releases: more ES2015 Math functions
8 years ago
Sami Vaarala
34dce7f8e6
Testcases for new Math built-ins
8 years ago
Sami Vaarala
545f15b128
Add more ES6 Math built-ins: clz32() etc
Add Math builtins:
* clz32()
* imul()
* sign()
8 years ago
Sami Vaarala
f70c2daf54
Merge pull request #1557 from svaarala/fix-tailcall-in-constructor
Fix tailcall in constructor handling
8 years ago
Sami Vaarala
84a76954a4
Releases: constructor tailcall fix
8 years ago
Sami Vaarala
0bc781e721
Fix tailcall-in-constructor handling
8 years ago
Sami Vaarala
350bbac952
Tailcall testcase improvements
8 years ago
Sami Vaarala
26e8dfa835
Bug testcase for GH-1554
8 years ago
Sami Vaarala
695b187eee
Merge pull request #1553 from svaarala/protected-call-stack-shape
Protected call stack shape
8 years ago
Sami Vaarala
ffc6290f2c
Releases: protected call arg fixes
8 years ago
Sami Vaarala
99601ffc29
Fix API docs for protected call stack shape
If a protected call is given API call arguments that conflict with the input
value stack shape -- e.g. nargs is too large compared to available arguments --
current behavior is to throw an error because the value stack API contract
cannot be provided.
API documentation describes the behavior as an error code being returned with
the result value stack shape being undefined.
Fix documentation to match behavior.
8 years ago
Sami Vaarala
4673535d98
Improve testcases for protected call invalid args
8 years ago
Sami Vaarala
dc97a9361d
Fix some protected call arg checks
* Fix duk_pcall_prop() nargs check to check for negative nargs
explicitly. Otherwise negative arguments would be accepted
in some cases.
* Fix duk_safe_call() nargs check similarly.
* Fix duk_pnew() nargs check similarly.
8 years ago