mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-18 16:49:18 +03:00
Window.bnd: Suppress some unnecessary stack frame dumps
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
03624bcf7a
commit
e82107a296
@ -63,7 +63,7 @@ static void window_call_callback(duk_context *ctx, size_t handle, bool clear_ent
|
|||||||
/* ..., win, cbt, handle */
|
/* ..., win, cbt, handle */
|
||||||
duk_get_prop(ctx, -2);
|
duk_get_prop(ctx, -2);
|
||||||
/* ..., win, cbt, cbo */
|
/* ..., win, cbt, cbo */
|
||||||
dukky_log_stack_frame(ctx, "On entry to callback");
|
//dukky_log_stack_frame(ctx, "On entry to callback");
|
||||||
/* ..., win, cbt, cbo */
|
/* ..., win, cbt, cbo */
|
||||||
/* What we want to do is call cbo.func passing all of cbo.args */
|
/* What we want to do is call cbo.func passing all of cbo.args */
|
||||||
duk_get_prop_string(ctx, -1, "func");
|
duk_get_prop_string(ctx, -1, "func");
|
||||||
@ -77,7 +77,7 @@ static void window_call_callback(duk_context *ctx, size_t handle, bool clear_ent
|
|||||||
/* ..., win, cbt, cbo, func, argarr, args... */
|
/* ..., win, cbt, cbo, func, argarr, args... */
|
||||||
duk_remove(ctx, -(arrlen+1));
|
duk_remove(ctx, -(arrlen+1));
|
||||||
/* ..., win, cbt, cbo, func, args... */
|
/* ..., win, cbt, cbo, func, args... */
|
||||||
dukky_log_stack_frame(ctx, "Just before call");
|
//dukky_log_stack_frame(ctx, "Just before call");
|
||||||
(void) dukky_pcall(ctx, arrlen, true);
|
(void) dukky_pcall(ctx, arrlen, true);
|
||||||
/* ..., win, cbt, cbo, retval */
|
/* ..., win, cbt, cbo, retval */
|
||||||
if (clear_entry) {
|
if (clear_entry) {
|
||||||
@ -93,7 +93,7 @@ static void window_call_callback(duk_context *ctx, size_t handle, bool clear_ent
|
|||||||
duk_pop_n(ctx, 4);
|
duk_pop_n(ctx, 4);
|
||||||
}
|
}
|
||||||
/* ... */
|
/* ... */
|
||||||
dukky_log_stack_frame(ctx, "On leaving callback");
|
//dukky_log_stack_frame(ctx, "On leaving callback");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void window_schedule_callback(void *p) {
|
static void window_schedule_callback(void *p) {
|
||||||
|
Loading…
Reference in New Issue
Block a user