Jacek Caban : jscript: Improve interp_local debug traces.
Alexandre Julliard
julliard at winehq.org
Fri Mar 12 14:36:17 CST 2021
Module: wine
Branch: master
Commit: bb85e0aefdc58cf0a2eebee15e13fc5028a823f9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=bb85e0aefdc58cf0a2eebee15e13fc5028a823f9
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Mar 12 18:39:23 2021 +0100
jscript: Improve interp_local debug traces.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/jscript/engine.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/jscript/engine.c b/dlls/jscript/engine.c
index e1c3783196f..b6930a25b65 100644
--- a/dlls/jscript/engine.c
+++ b/dlls/jscript/engine.c
@@ -1304,7 +1304,7 @@ static HRESULT interp_local_ref(script_ctx_t *ctx)
call_frame_t *frame = ctx->call_ctx;
exprval_t ref;
- TRACE("%d\n", arg);
+ TRACE("%s\n", debugstr_w(local_name(frame, arg)));
if(!frame->base_scope || !frame->base_scope->frame)
return interp_identifier_ref(ctx, local_name(frame, arg), flags);
@@ -1321,15 +1321,16 @@ static HRESULT interp_local(script_ctx_t *ctx)
jsval_t copy;
HRESULT hres;
- TRACE("%d: %s\n", arg, debugstr_w(local_name(frame, arg)));
-
- if(!frame->base_scope || !frame->base_scope->frame)
+ if(!frame->base_scope || !frame->base_scope->frame) {
+ TRACE("%s\n", debugstr_w(local_name(frame, arg)));
return identifier_value(ctx, local_name(frame, arg));
+ }
hres = jsval_copy(ctx->stack[local_off(frame, arg)], ©);
if(FAILED(hres))
return hres;
+ TRACE("%s: %s\n", debugstr_w(local_name(frame, arg)), debugstr_jsval(copy));
return stack_push(ctx, copy);
}
More information about the wine-cvs
mailing list