Jacek Caban
|
150b7391b8
|
jscript: Add GetSourceLineText implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-04 21:30:27 +01:00 |
Jacek Caban
|
bfb2e5d959
|
jscript: Delay error object creation for builtin errors with message string until it's needed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:04 +01:00 |
Jacek Caban
|
bcba07229a
|
jscript: Support propagating error message.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:03 +01:00 |
Jacek Caban
|
0f4d4f7184
|
jscript: Store error location in jsexcept_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-03 20:48:03 +01:00 |
Jacek Caban
|
8b836797e2
|
jscript: Directly return error code instead of using throw_type_error where possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:12 +01:00 |
Jacek Caban
|
c372e79e25
|
jscript: Directly return error code instead of using throw_reference_error.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:25:00 +01:00 |
Jacek Caban
|
f6c5da47f7
|
jscript: Suport generic error object for exception with no associated JavaScript exception value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-02-02 16:24:51 +01:00 |
Jacek Caban
|
33984c390d
|
jscript: Use enter_script and leave_script to call script site notifications.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 16:22:33 +01:00 |
Jacek Caban
|
9855c248f8
|
jscript: Store error code in jsexcept_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 16:22:33 +01:00 |
Jacek Caban
|
3c9b7011ff
|
jscript: Store separated flag indicating if current exception value is valid.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 15:58:42 +01:00 |
Jacek Caban
|
63683b42f7
|
jscript: Use separated jsexcept_t instance for each external call.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2020-01-30 15:58:40 +01:00 |
Alexandre Julliard
|
784b3f611a
|
jscript: Consistently use wcscmp() instead of lstrcmpW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2019-06-13 14:49:04 +02:00 |
Alexandre Julliard
|
29ea8b42db
|
jscript: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2019-06-06 11:15:24 +02:00 |
Jacek Caban
|
e70825b014
|
jscript: Use jsstr_t as string argument type in OP_obj_prop.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2019-03-04 13:07:07 +01:00 |
Jacek Caban
|
0cc68cf82a
|
jscript: Add interpreter support for getters and setters in object initializer.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2018-12-03 10:50:28 +01:00 |
Jacek Caban
|
5a90acf59c
|
jscript: Use global accumulator for storing function call results.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2018-06-12 14:08:07 +02:00 |
Jacek Caban
|
3987d93992
|
jscript: Added Array.prototype.indexOf implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2018-03-02 10:54:32 +01:00 |
Jacek Caban
|
3c7ec6af92
|
jscript: Renamed equal2_values to jsval_strict_equal.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2018-03-02 10:54:29 +01:00 |
Jacek Caban
|
d72acebd6c
|
jscript: Properly handle elisions in array literals.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2018-03-02 10:54:27 +01:00 |
Jacek Caban
|
a48ecc7e7c
|
jscript: Improve interp_local debug traces.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2018-02-09 18:53:18 +01:00 |
Jacek Caban
|
77e27441b2
|
jscript: Use WARN for exception traces instead of separated debug channel.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2017-12-20 17:49:32 +01:00 |
Jacek Caban
|
59c39fa1f0
|
jscript: Added new debug channel printing details and backtrace of unwinded exceptions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2017-05-05 17:34:09 +02:00 |
Jacek Caban
|
60232cc770
|
jscript: Always jump to finally block from OP_pop_exept when available.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2017-05-01 19:29:15 +02:00 |
Jacek Caban
|
685cd437c9
|
jscript: Pass finally offset instead of catch ident to OP_push_except.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2017-05-01 19:29:15 +02:00 |
Jacek Caban
|
622eb728d7
|
jscript: Added new opcode to enter catch block and use it to setup the scope.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2017-05-01 19:29:15 +02:00 |
Francois Gouget
|
493659e097
|
jscript: Make scope_push() static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2017-01-10 19:19:15 +01:00 |
Jacek Caban
|
5088828f2a
|
jscript: Don't create arguments object in pop_call_frame if it wasn't already created.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-05 10:32:27 -05:00 |
Jacek Caban
|
403fb41cd1
|
jscript: Create scope in setup_scope.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-05 10:32:23 -05:00 |
Jacek Caban
|
983bbab531
|
jscript: Replaced OP_ident with static binding when possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-04 09:09:20 -05:00 |
Jacek Caban
|
04617ddf21
|
jscript: Replaced OP_identid with static binding when possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-04 09:09:18 -05:00 |
Jacek Caban
|
765a52e86a
|
jscript: Store variables on the stack if possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-04 09:09:16 -05:00 |
Jacek Caban
|
7694afff4b
|
jscript: Don't use OP_var_set.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-04 09:09:14 -05:00 |
Jacek Caban
|
713051d027
|
jscript: Store local functions in locals map.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-04 09:09:12 -05:00 |
Jacek Caban
|
2e06686ef9
|
jscript: Use locals map for local variables.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-04 09:09:10 -05:00 |
Jacek Caban
|
2f63a1e009
|
jscript: Delay arguments object until it's accessed and properly detach it after function exits.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-03 11:13:50 -05:00 |
Jacek Caban
|
5a7327d21d
|
jscript: Setup arguments object by interpreter and store all arguments inside the object on call exit.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-03 11:13:50 -05:00 |
Jacek Caban
|
9daafa87bc
|
jscript: Access arguments directly from stack in arguments object if possible.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-03 11:13:50 -05:00 |
Jacek Caban
|
b652a9787c
|
jscript: Build local references map in compiler and use it to search the scope.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-03 11:13:50 -05:00 |
Jacek Caban
|
da02140b43
|
jscript: Allow accessing arguments values directly from stack.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-02 16:18:05 -05:00 |
Jacek Caban
|
abba963006
|
jscript: Use exprval_t to represent property references passed on JS stack.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-02 16:18:04 -05:00 |
Jacek Caban
|
7af8330e93
|
jscript: Store exception code in exprval_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-08-02 16:18:04 -05:00 |
Jacek Caban
|
b0dcbbdbee
|
jscipt: Use passed copy of arguments if they are alread at the top of the stack.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-07-29 11:59:30 +09:00 |
Jacek Caban
|
5e4d3826ec
|
jscript: Store function arguments on JS stack and transfer them to variable object only when needed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-07-29 11:59:27 +09:00 |
Jacek Caban
|
be37b894a4
|
jscript: Use IDispatch* as iface_to_jsdisp argument type.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-07-20 23:04:53 +09:00 |
Jacek Caban
|
fa726bed4d
|
jscript: Use already running interpreter for execution new expressions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-03-30 11:54:37 +09:00 |
Jacek Caban
|
2d35954adb
|
jscript: Use already running interpreter for execution expressions that are source functions.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-03-30 11:54:35 +09:00 |
Jacek Caban
|
66632091bf
|
jscript: Use already running interpreter for execution of member source function.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-03-30 11:54:33 +09:00 |
Jacek Caban
|
35133dbe58
|
jscript: Find Function.arguments on the stack instead of storing it in FunctionInstance object.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-03-29 10:40:06 +09:00 |
Jacek Caban
|
42e90ca592
|
jscript: Moved arguments object destuction to interpreter.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-03-29 10:40:04 +09:00 |
Jacek Caban
|
cb317ed5b8
|
jscript: Moved more return object logic to enter_bytecode loop.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
|
2016-03-29 10:40:01 +09:00 |