From 6072d59b36cd9be23f8ac53bf2ac45a9e450c289 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 26 Apr 2010 20:44:45 -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 6ef63e801003..b900995a8ffc 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -12116,6 +12116,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");