зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
29541601ad
Коммит
45f64ac5b6
|
@ -7197,6 +7197,7 @@ TraceRecorder::guardPrototypeHasNoIndexedProperties(JSObject* obj, LIns* obj_ins
|
||||||
if (js_PrototypeHasIndexedProperties(cx, obj))
|
if (js_PrototypeHasIndexedProperties(cx, obj))
|
||||||
return JSRS_STOP;
|
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)) {
|
while (guardHasPrototype(obj, obj_ins, &obj, &obj_ins, exit)) {
|
||||||
LIns* map_ins = lir->insLoad(LIR_ldp, obj_ins, (int)offsetof(JSObject, map));
|
LIns* map_ins = lir->insLoad(LIR_ldp, obj_ins, (int)offsetof(JSObject, map));
|
||||||
LIns* ops_ins;
|
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
|
* This trace will be valid as long as neither the object nor any object
|
||||||
* on its prototype chain changes shape.
|
* 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);
|
VMSideExit* exit = snapshot(BRANCH_EXIT);
|
||||||
do {
|
do {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче