зеркало из https://github.com/mozilla/pjs.git
Accessor functions for cx->fp, bug 588978. r=lw
This commit is contained in:
Родитель
915535c6d3
Коммит
3e5c7400d7
|
@ -2241,7 +2241,7 @@ jstv_Lineno(JSContext *cx, JSStackFrame *fp)
|
|||
JS_FRIEND_API(void)
|
||||
js::StoreTraceVisState(JSContext *cx, TraceVisState s, TraceVisExitReason r)
|
||||
{
|
||||
JSStackFrame *fp = cx->fp;
|
||||
JSStackFrame *fp = cx->fp();
|
||||
|
||||
char *script_file = jstv_Filename(fp);
|
||||
JSHashNumber hash = JS_HashString(script_file);
|
||||
|
|
|
@ -217,8 +217,8 @@ DTrace::ObjectCreationScope::handleCreationEnd()
|
|||
void
|
||||
DTrace::ObjectCreationScope::handleCreationImpl(JSObject *obj)
|
||||
{
|
||||
JAVASCRIPT_OBJECT_CREATE(jsdtrace_filename(cx->fp), (char *)clasp->name, (uintptr_t)obj,
|
||||
jsdtrace_frame_linenumber(cx, cx->fp));
|
||||
JAVASCRIPT_OBJECT_CREATE(jsdtrace_filename(fp), (char *)clasp->name, (uintptr_t)obj,
|
||||
jsdtrace_frame_linenumber(cx, fp));
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -345,18 +345,19 @@ PropertyCache::fullTest(JSContext *cx, jsbytecode *pc, JSObject **objp, JSObject
|
|||
|
||||
JSAtom *atom = GetAtomFromBytecode(cx, pc, op, cs);
|
||||
#ifdef DEBUG_notme
|
||||
JSScript *script = cx->fp()->getScript();
|
||||
fprintf(stderr,
|
||||
"id miss for %s from %s:%u"
|
||||
" (pc %u, kpc %u, kshape %u, shape %u)\n",
|
||||
js_AtomToPrintableString(cx, atom),
|
||||
cx->fp->script->filename,
|
||||
js_PCToLineNumber(cx, cx->fp->script, pc),
|
||||
pc - cx->fp->script->code,
|
||||
entry->kpc - cx->fp->script->code,
|
||||
script->filename,
|
||||
js_PCToLineNumber(cx, script, pc),
|
||||
pc - script->code,
|
||||
entry->kpc - script->code,
|
||||
entry->kshape,
|
||||
obj->shape());
|
||||
js_Disassemble1(cx, cx->fp->script, pc,
|
||||
pc - cx->fp->script->code,
|
||||
js_Disassemble1(cx, script, pc,
|
||||
pc - script->code,
|
||||
JS_FALSE, stderr);
|
||||
#endif
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче