Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal).

This commit is contained in:
Brendan Eich
2010-06-18 17:43:02 -07:00
parent 431b86c258
commit d4c5ccb2b1
24 changed files with 462 additions and 357 deletions

View File

@@ -2343,7 +2343,7 @@ js_InitDateClass(JSContext *cx, JSObject *obj)
JS_FRIEND_API(JSObject *)
js_NewDateObjectMsec(JSContext *cx, jsdouble msec_time)
{
JSObject *obj = NewObject(cx, &js_DateClass, NULL, NULL);
JSObject *obj = NewBuiltinClassInstance(cx, &js_DateClass);
if (!obj || !SetUTCTime(cx, obj, msec_time))
return NULL;
return obj;