зеркало из https://github.com/mozilla/gecko-dev.git
Bug 362909: Faster debugging of function calls. r=brendan
This commit is contained in:
Родитель
2b48f143b1
Коммит
8799bf27d3
|
@ -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)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче