Added a FIXME, reminding us to remove the proto chain walking code once bug 497789 has been fixed (comment change only, no bug).

This commit is contained in:
Andreas Gal 2009-06-23 19:35:17 -07:00
Родитель 29541601ad
Коммит 45f64ac5b6
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -7197,6 +7197,7 @@ TraceRecorder::guardPrototypeHasNoIndexedProperties(JSObject* obj, LIns* obj_ins
if (js_PrototypeHasIndexedProperties(cx, obj))
return JSRS_STOP;
// FIXME: this loop can become a single shape test once bug 497789 has been fixed
while (guardHasPrototype(obj, obj_ins, &obj, &obj_ins, exit)) {
LIns* map_ins = lir->insLoad(LIR_ldp, obj_ins, (int)offsetof(JSObject, map));
LIns* ops_ins;
@ -9293,6 +9294,9 @@ TraceRecorder::prop(JSObject* obj, LIns* obj_ins, uint32& slot, LIns*& v_ins)
/*
* This trace will be valid as long as neither the object nor any object
* on its prototype chain changes shape.
*
* FIXME: This loop can become a single shape guard once bug 497789 has
* been fixed.
*/
VMSideExit* exit = snapshot(BRANCH_EXIT);
do {