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
Sami Vaarala
18c5534dbe
Merge pull request #1551 from svaarala/add-lookupgetter-lookupsetter
Add __lookupGetter__ and __lookupSetter__
8 years ago
Sami Vaarala
938655e143
Releases: __lookupGetter__, __lookupSetter__
8 years ago
Sami Vaarala
5ebd7e648e
Testcase improvements for __lookupGetter__, etc
8 years ago
Sami Vaarala
ce73b03e8d
Polyfill improvements for __lookupGetter__, etc
* Add polyfills for __lookupGetter__ and __lookupSetter__.
* Rework polyfills so that necessary Object functions are captured in setup.
8 years ago
Sami Vaarala
4738c87867
Add __lookupGetter__ and __lookupSetter__
8 years ago
Sami Vaarala
a8d9d1472b
Merge pull request #1531 from svaarala/add-definegetter-definesetter
Add __defineGetter__() and __defineSetter__()
8 years ago
Sami Vaarala
c298bff78d
Releases: __defineGetter__, __defineSetter__
8 years ago
Sami Vaarala
ed0dfe0319
Tests for __defineGetter__ and __defineSetter__
8 years ago
Sami Vaarala
3a2016c15a
Add __defineGetter__() and __defineSetter__()
8 years ago
Sami Vaarala
e7a2db9b04
Add ES7-ES9 blanket config options
8 years ago
Sami Vaarala
d298f6f3fe
Merge pull request #1544 from svaarala/add-new-target
Add minimal support for new.target
8 years ago
Sami Vaarala
b0fe99e8bd
Releases: minimal new.target
8 years ago
Sami Vaarala
56a9b19f52
Testcase coverage for new.target
8 years ago
Sami Vaarala
c890304a5c
Add NEWTARGET to debugger opcodes
8 years ago
Sami Vaarala
0438a8adc8
Add minimal new.target support
Add support for 'new.target' expression without yet adding support for an
explicit newTarget which may differ from the constructor function being
called.
8 years ago
Sami Vaarala
4efd67480b
Set direct eval flag for eval body call
8 years ago
Sami Vaarala
2b247aeffc
Merge pull request #1545 from svaarala/direct-reflect-construct-handling
Direct support for Reflect.construct in call handling
8 years ago
Sami Vaarala
65a9d4c3a2
Releases: Reflect.construct() rework
8 years ago
Sami Vaarala
05f0f27b8e
Website coroutine update for Reflect.construct()
8 years ago
Sami Vaarala
c63e619d29
Improve Makefile clean target
8 years ago