Don't bother tracing some elem sets yet (bug 561939, r=gal).

This commit is contained in:
David Anderson 2010-04-26 20:29:49 -07:00
parent 3579b2b1fb
commit dac6f52234

View File

@ -12170,6 +12170,9 @@ TraceRecorder::setElem(int lval_spindex, int idx_spindex, int v_spindex)
if (JS_InstanceOf(cx, obj, &js_ArgumentsClass, NULL))
RETURN_STOP_A("can't trace setting elements of the |arguments| object");
if (obj == globalObj)
RETURN_STOP_A("can't trace setting elements on the global object");
if (!JSVAL_IS_INT(idx)) {
if (!JSVAL_IS_PRIMITIVE(idx))
RETURN_STOP_A("non-primitive index");