[INFER] Inlined natives for Array.{push,pop}, object flag cleanup, bug 653962.

This commit is contained in:
Brian Hackett
2011-05-10 23:33:30 -07:00
parent a2e6aa4ef8
commit d003a0dcad
18 changed files with 333 additions and 325 deletions

View File

@@ -496,6 +496,9 @@ VectorToKeyIterator(JSContext *cx, JSObject *obj, uintN flags, AutoIdVector &key
{
JS_ASSERT(!(flags & JSITER_FOREACH));
if (obj)
cx->markTypeObjectFlags(obj->getType(), types::OBJECT_FLAG_ITERATED);
JSObject *iterobj = NewIteratorObject(cx, flags);
if (!iterobj)
return false;
@@ -543,6 +546,9 @@ VectorToValueIterator(JSContext *cx, JSObject *obj, uintN flags, AutoIdVector &k
{
JS_ASSERT(flags & JSITER_FOREACH);
if (obj)
cx->markTypeObjectFlags(obj->getType(), types::OBJECT_FLAG_ITERATED);
JSObject *iterobj = NewIteratorObject(cx, flags);
if (!iterobj)
return false;