Browse Source

limit debug dumping of verbose thread state

pull/1/head
Sami Vaarala 12 years ago
parent
commit
ef25990cf9
  1. 2
      src/duk_hobject_enum.c
  2. 2
      src/duk_js_call.c
  3. 4
      src/duk_js_executor.c

2
src/duk_hobject_enum.c

@ -49,13 +49,11 @@ void duk_hobject_enumerator_create(duk_context *ctx, int enum_flags) {
duk_push_new_object_internal(ctx);
DUK_DPRINT("created internal object");
DUK_DEBUG_DUMP_HTHREAD(thr);
/* [target res] */
duk_push_hstring_stridx(ctx, DUK_HEAP_STRIDX_INT_TARGET);
duk_push_hobject(ctx, target);
DUK_DEBUG_DUMP_HTHREAD(thr);
duk_put_prop(ctx, -3);
/* initialize index so that we skip internal control keys */

2
src/duk_js_call.c

@ -1473,7 +1473,7 @@ int duk_handle_safe_call(duk_hthread *thr,
/* [ ... | ] or [ ... | errobj (M * undefined)] where M = num_stack_rets - 1 */
#if 1
#ifdef DUK_USE_DDDEBUG
DUK_DDPRINT("protected safe_call error handling finished, thread dump:");
DUK_DEBUG_DUMP_HTHREAD(thr);
#endif

4
src/duk_js_executor.c

@ -668,10 +668,6 @@ static int handle_longjmp(duk_hthread *thr,
* except us, and we switch 'thr' in that case.
*/
#if 0
DUK_DEBUG_DUMP_HTHREAD(thr);
#endif
/*
* (Re)try handling the longjmp.
*

Loading…
Cancel
Save