Remove traceable natives (bug 698201 part 3, r=luke).

This commit is contained in:
David Anderson
2011-11-22 17:41:42 -05:00
parent 4253d21803
commit 3a8e74c6da
19 changed files with 30 additions and 1631 deletions

View File

@@ -66,7 +66,6 @@
#include "jsutil.h"
#include "jsapi.h"
#include "jsversion.h"
#include "jsbuiltins.h"
#include "jscntxt.h"
#include "jsdate.h"
#include "jsinterp.h"
@@ -1221,14 +1220,6 @@ date_now(JSContext *cx, uintN argc, Value *vp)
return JS_TRUE;
}
#ifdef JS_TRACER
static jsdouble FASTCALL
date_now_tn(JSContext*)
{
return NowAsMillis();
}
#endif
/*
* Set UTC time to a given time and invalidate cached local time.
*/
@@ -2550,14 +2541,10 @@ date_valueOf(JSContext *cx, uintN argc, Value *vp)
return date_format(cx, obj->getDateUTCTime().toNumber(), FORMATSPEC_FULL, args);
}
// 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, nanojit::ACCSET_STORE_ANY)))
static JSFunctionSpec date_static_methods[] = {
JS_FN("UTC", date_UTC, MAXARGS,0),
JS_FN("parse", date_parse, 1,0),
JS_TN("now", date_now, 0,0, &date_now_trcinfo),
JS_FN("now", date_now, 0,0),
JS_FS_END
};