mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug - 488607
- fixing test_property_cache asserts. r=brendan
This commit is contained in:
parent
d9e9626654
commit
40475ad940
@ -309,7 +309,7 @@ js_FillPropertyCache(JSContext *cx, JSObject *obj,
|
||||
if (op == JSOP_LENGTH) {
|
||||
atom = cx->runtime->atomState.lengthAtom;
|
||||
} else {
|
||||
pcoff = (JOF_TYPE(cs->format) == JOF_SLOTATOM) ? 2 : 0;
|
||||
pcoff = (JOF_TYPE(cs->format) == JOF_SLOTATOM) ? SLOTNO_LEN : 0;
|
||||
GET_ATOM_FROM_BYTECODE(cx->fp->script, pc, pcoff, atom);
|
||||
}
|
||||
JS_ASSERT_IF(scopeIndex == 0,
|
||||
@ -375,7 +375,7 @@ js_FullTestPropertyCache(JSContext *cx, jsbytecode *pc,
|
||||
if (op == JSOP_LENGTH) {
|
||||
atom = cx->runtime->atomState.lengthAtom;
|
||||
} else {
|
||||
pcoff = (JOF_TYPE(cs->format) == JOF_SLOTATOM) ? 2 : 0;
|
||||
pcoff = (JOF_TYPE(cs->format) == JOF_SLOTATOM) ? SLOTNO_LEN : 0;
|
||||
GET_ATOM_FROM_BYTECODE(cx->fp->script, pc, pcoff, atom);
|
||||
}
|
||||
|
||||
|
@ -6128,11 +6128,15 @@ TraceRecorder::test_property_cache(JSObject* obj, LIns* obj_ins, JSObject*& obj2
|
||||
}
|
||||
} else {
|
||||
#ifdef DEBUG
|
||||
JSOp op = JSOp(*pc);
|
||||
ptrdiff_t pcoff = (op == JSOP_GETARGPROP) ? ARGNO_LEN :
|
||||
(op == JSOP_GETLOCALPROP) ? SLOTNO_LEN : 0;
|
||||
jsatomid index = js_GetIndexFromBytecode(cx, cx->fp->script, pc, pcoff);
|
||||
JS_ASSERT(entry->kpc == (jsbytecode*) atoms[index]);
|
||||
JSOp op = js_GetOpcode(cx, cx->fp->script, pc);
|
||||
JSAtom *pcatom;
|
||||
if (op == JSOP_LENGTH) {
|
||||
pcatom = cx->runtime->atomState.lengthAtom;
|
||||
} else {
|
||||
ptrdiff_t pcoff = (JOF_TYPE(js_CodeSpec[op].format) == JOF_SLOTATOM) ? SLOTNO_LEN : 0;
|
||||
GET_ATOM_FROM_BYTECODE(cx->fp->script, pc, pcoff, pcatom);
|
||||
}
|
||||
JS_ASSERT(entry->kpc == (jsbytecode *) pcatom);
|
||||
JS_ASSERT(entry->kshape == jsuword(aobj));
|
||||
#endif
|
||||
if (aobj != globalObj && !obj_ins->isconstp()) {
|
||||
|
Loading…
Reference in New Issue
Block a user