Bug 666049 - Remove JSFloat64, float64 and float32 r=luke

--HG--
extra : rebase_source : cde4c4d059ca8dde49d2570c87f52824cccc47a2
This commit is contained in:
Paul Biggar 2011-06-21 15:07:02 -07:00
parent 224e7890aa
commit 5e4b0131a6
5 changed files with 3 additions and 13 deletions

View File

@ -190,7 +190,7 @@ _callHook(JSDContext *jsdc, JSContext *cx, JSStackFrame *fp, JSBool before,
jsdouble delta;
now = JS_Now();
ll_delta = now - pdata->lastCallStart;
delta = (JSFloat64) ll_delta;
delta = ll_delta;
delta /= 1000.0;
pdata->totalExecutionTime += delta;
/* minExecutionTime starts as 0, so we need to overwrite
@ -214,7 +214,7 @@ _callHook(JSDContext *jsdc, JSContext *cx, JSStackFrame *fp, JSBool before,
* running time as 'delta'. */
ll_delta = now - jsdc->lastReturnTime;
pdata->runningTime += ll_delta;
delta = (JSFloat64) pdata->runningTime;
delta = pdata->runningTime;
delta /= 1000.0;
}

View File

@ -50,5 +50,4 @@ typedef JSIntn intN;
typedef JSUintn uintN;
typedef JSUword jsuword;
typedef JSWord jsword;
typedef float float32;
#endif /* jscompat_h___ */

View File

@ -93,6 +93,4 @@ typedef JSInt16 int16;
typedef JSInt8 int8;
#endif /* AIX && HAVE_SYS_INTTYPES_H */
typedef JSFloat64 float64;
#endif /* !defined(PROTYPES_H) */

View File

@ -96,7 +96,7 @@ JS_BEGIN_EXTERN_C
/* Scalar typedefs. */
typedef JSInt32 jsint;
typedef JSUint32 jsuint;
typedef float64 jsdouble;
typedef double jsdouble;
typedef JSInt32 jsrefcount; /* PRInt32 if JS_THREADSAFE, see jslock.h */
#ifdef WIN32

View File

@ -340,13 +340,6 @@ JS_BEGIN_EXTERN_C
typedef int JSIntn;
typedef unsigned int JSUintn;
/************************************************************************
** TYPES: JSFloat64
** DESCRIPTION:
** NSPR's floating point type is always 64 bits.
************************************************************************/
typedef double JSFloat64;
/************************************************************************
** TYPES: JSSize
** DESCRIPTION: