Bug 362909: Faster debugging of function calls. r=brendan

This commit is contained in:
igor.bukanov%gmail.com 2006-12-17 01:58:54 +00:00
Родитель 2b48f143b1
Коммит 8799bf27d3
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -2107,8 +2107,10 @@ js_Interpret(JSContext *cx, jsbytecode *pc, jsval *result)
}; };
static void *interruptJumpTable[] = { static void *interruptJumpTable[] = {
# define OPDEF(op,val,name,token,length,nuses,ndefs,prec,format) \ # define OPDEF(op,val,name,token,length,nuses,ndefs,prec,format) \
JS_EXTENSION &&interrupt, ((op != JSOP_PUSHOBJ) \
? JS_EXTENSION &&interrupt \
: JS_EXTENSION &&L_JSOP_PUSHOBJ),
# include "jsopcode.tbl" # include "jsopcode.tbl"
# undef OPDEF # undef OPDEF
}; };
@ -2317,7 +2319,7 @@ interrupt:
} }
#endif /* DEBUG */ #endif /* DEBUG */
if (interruptHandler) { if (interruptHandler && op != JSOP_PUSHOBJ) {
SAVE_SP_AND_PC(fp); SAVE_SP_AND_PC(fp);
switch (interruptHandler(cx, script, pc, &rval, switch (interruptHandler(cx, script, pc, &rval,
rt->interruptHandlerData)) { rt->interruptHandlerData)) {