Backed out changeset 19b4c1cacdb8 - everything related to bug 517199.

This commit is contained in:
Igor Bukanov
2009-10-01 16:10:42 +04:00
parent bf9a0f2d25
commit b058f1858f
10 changed files with 79 additions and 87 deletions

View File

@@ -3391,7 +3391,7 @@ js_NewEmptyArray(JSContext* cx, JSObject* proto)
{
JS_ASSERT(OBJ_IS_ARRAY(cx, proto));
JSObject* obj = js_NewGCObject(cx);
JSObject* obj = js_NewGCObject(cx, GCX_OBJECT);
if (!obj)
return NULL;
@@ -3463,7 +3463,7 @@ js_NewArrayObject(JSContext *cx, jsuint length, jsval *vector, JSBool holey)
JS_POP_TEMP_ROOT(cx, &tvr);
/* Set/clear newborn root, in case we lost it. */
cx->weakRoots.newbornObject = obj;
cx->weakRoots.newborn[GCX_OBJECT] = obj;
return obj;
}