From 5e299b13e9bd3e8b8d67addb4d21c523a885f998 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 26 Apr 2010 20:29:49 -0700 Subject: [PATCH] Don't bother tracing some elem sets yet (bug 561939, r=gal). --- js/src/jstracer.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 5d9b979b359..11020f9ba42 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -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");