Bug 456165 part 2. Trace Date.now. r=gal

This commit is contained in:
Boris Zbarsky
2008-09-26 14:37:50 -04:00
parent a2ab4fd382
commit cd852419be
6 changed files with 37 additions and 3 deletions

View File

@@ -51,6 +51,7 @@
#include "jslibmath.h"
#include "jsmath.h"
#include "jsnum.h"
#include "prmjtime.h"
#include "jsscope.h"
#include "jsstr.h"
#include "jstracer.h"
@@ -862,6 +863,12 @@ js_Arguments(JSContext* cx)
return NULL;
}
jsdouble FASTCALL
js_Date_now(JSContext*)
{
return PRMJ_Now() / PRMJ_USEC_PER_MSEC;
}
/* soft float */
jsdouble FASTCALL