Backed out bug 480657. Massive failures across all platforms.
This commit is contained in:
@@ -2022,6 +2022,8 @@ date_valueOf(JSContext *cx, uintN argc, jsval *vp)
|
||||
return date_toString(cx, argc, vp);
|
||||
}
|
||||
|
||||
JS_DEFINE_CALLINFO_2(extern, OBJECT, js_FastNewDate, CONTEXT, OBJECT, 0, 0)
|
||||
|
||||
// Don't really need an argument here, but we don't support arg-less builtins
|
||||
JS_DEFINE_TRCINFO_1(date_now,
|
||||
(1, (static, DOUBLE, date_now_tn, CONTEXT, 0, 0)))
|
||||
@@ -2170,8 +2172,8 @@ JS_STATIC_ASSERT(JSSLOT_PRIVATE == JSSLOT_UTC_TIME);
|
||||
JS_STATIC_ASSERT(JSSLOT_UTC_TIME + 1 == JSSLOT_LOCAL_TIME);
|
||||
|
||||
#ifdef JS_TRACER
|
||||
static JSObject* FASTCALL
|
||||
Date_tn(JSContext* cx, JSObject* proto)
|
||||
JSObject* FASTCALL
|
||||
js_FastNewDate(JSContext* cx, JSObject* proto)
|
||||
{
|
||||
JS_ASSERT(JS_ON_TRACE(cx));
|
||||
JSObject* obj = (JSObject*) js_NewGCThing(cx, GCX_OBJECT, sizeof(JSObject));
|
||||
@@ -2199,10 +2201,6 @@ Date_tn(JSContext* cx, JSObject* proto)
|
||||
obj->dslots = NULL;
|
||||
return obj;
|
||||
}
|
||||
|
||||
JS_DEFINE_TRCINFO_1(js_Date,
|
||||
(2, (static, CONSTRUCTOR_RETRY, Date_tn, CONTEXT, CALLEE_PROTO, 0, 0)))
|
||||
|
||||
#endif
|
||||
|
||||
JSObject *
|
||||
@@ -2218,10 +2216,6 @@ js_InitDateClass(JSContext *cx, JSObject *obj)
|
||||
if (!proto)
|
||||
return NULL;
|
||||
|
||||
#ifdef JS_TRACER
|
||||
js_SetTraceableNative(cx, proto, js_Date_trcinfo);
|
||||
#endif
|
||||
|
||||
/* Alias toUTCString with toGMTString. (ECMA B.2.6) */
|
||||
if (!JS_AliasProperty(cx, proto, "toUTCString", "toGMTString"))
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user