From 8799bf27d3ba9773e16ea41af95783a2f67e921b Mon Sep 17 00:00:00 2001 From: "igor.bukanov%gmail.com" Date: Sun, 17 Dec 2006 01:58:54 +0000 Subject: [PATCH] Bug 362909: Faster debugging of function calls. r=brendan --- js/src/jsinterp.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/src/jsinterp.c b/js/src/jsinterp.c index 72a71829b65e..c6989fc22f80 100644 --- a/js/src/jsinterp.c +++ b/js/src/jsinterp.c @@ -2107,8 +2107,10 @@ js_Interpret(JSContext *cx, jsbytecode *pc, jsval *result) }; static void *interruptJumpTable[] = { -# define OPDEF(op,val,name,token,length,nuses,ndefs,prec,format) \ - JS_EXTENSION &&interrupt, +# define OPDEF(op,val,name,token,length,nuses,ndefs,prec,format) \ + ((op != JSOP_PUSHOBJ) \ + ? JS_EXTENSION &&interrupt \ + : JS_EXTENSION &&L_JSOP_PUSHOBJ), # include "jsopcode.tbl" # undef OPDEF }; @@ -2317,7 +2319,7 @@ interrupt: } #endif /* DEBUG */ - if (interruptHandler) { + if (interruptHandler && op != JSOP_PUSHOBJ) { SAVE_SP_AND_PC(fp); switch (interruptHandler(cx, script, pc, &rval, rt->interruptHandlerData)) {