mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 506982 - Fix up jstracer style. r=Waldo.
This commit is contained in:
parent
e9f49c7644
commit
f0ca3c8bd9
@ -207,6 +207,10 @@ JSBool
|
||||
js_GetDenseArrayElementValue(JSContext *cx, JSObject *obj, JSProperty *prop,
|
||||
jsval *vp);
|
||||
|
||||
/* Array constructor native. Exposed only so the JIT can know its address. */
|
||||
JSBool
|
||||
js_Array(JSContext* cx, JSObject* obj, uintN argc, jsval* argv, jsval* rval);
|
||||
|
||||
JS_END_EXTERN_C
|
||||
|
||||
#endif /* jsarray_h___ */
|
||||
|
@ -415,6 +415,9 @@ js_BooleanOrUndefinedToNumber(JSContext* cx, int32 unboxed);
|
||||
extern JS_FRIEND_API(void)
|
||||
js_SetTraceableNativeFailed(JSContext *cx);
|
||||
|
||||
extern jsdouble FASTCALL
|
||||
js_dmod(jsdouble a, jsdouble b);
|
||||
|
||||
#else
|
||||
|
||||
#define JS_DEFINE_CALLINFO_1(linkage, rt, op, at0, cse, fold)
|
||||
|
@ -124,6 +124,10 @@ typedef uint32 JSIntervalTime;
|
||||
extern JS_FRIEND_API(JSIntervalTime)
|
||||
js_IntervalNow();
|
||||
|
||||
/* Date constructor native. Exposed only so the JIT can know its address. */
|
||||
JSBool
|
||||
js_Date(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval);
|
||||
|
||||
JS_END_EXTERN_C
|
||||
|
||||
#endif /* jsdate_h___ */
|
||||
|
@ -914,6 +914,10 @@ JS_FRIEND_API(void) js_DumpStackFrame(JSStackFrame *fp);
|
||||
extern uintN
|
||||
js_InferFlags(JSContext *cx, uintN defaultFlags);
|
||||
|
||||
/* Object constructor native. Exposed only so the JIT can know its address. */
|
||||
JSBool
|
||||
js_Object(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval);
|
||||
|
||||
JS_END_EXTERN_C
|
||||
|
||||
#endif /* jsobj_h___ */
|
||||
|
1740
js/src/jstracer.cpp
1740
js/src/jstracer.cpp
File diff suppressed because it is too large
Load Diff
@ -166,8 +166,10 @@ public:
|
||||
#if defined(JS_JIT_SPEW) || defined(MOZ_NO_VARADIC_MACROS)
|
||||
|
||||
enum LC_TMBits {
|
||||
/* Output control bits for all non-Nanojit code. Only use bits 16
|
||||
and above, since Nanojit uses 0 .. 15 itself. */
|
||||
/*
|
||||
* Output control bits for all non-Nanojit code. Only use bits 16 and
|
||||
* above, since Nanojit uses 0 .. 15 itself.
|
||||
*/
|
||||
LC_TMMinimal = 1<<16,
|
||||
LC_TMTracer = 1<<17,
|
||||
LC_TMRecorder = 1<<18,
|
||||
@ -192,14 +194,22 @@ extern nanojit::LogControl js_LogController;
|
||||
|
||||
#define debug_only_stmt(stmt) \
|
||||
stmt
|
||||
#define debug_only_printf(mask, fmt, ...) \
|
||||
do { if ((js_LogController.lcbits & (mask)) > 0) { \
|
||||
js_LogController.printf(fmt, __VA_ARGS__); fflush(stdout); \
|
||||
}} while (0)
|
||||
#define debug_only_print0(mask, str) \
|
||||
do { if ((js_LogController.lcbits & (mask)) > 0) { \
|
||||
js_LogController.printf(str); fflush(stdout); \
|
||||
}} while (0)
|
||||
|
||||
#define debug_only_printf(mask, fmt, ...) \
|
||||
JS_BEGIN_MACRO \
|
||||
if ((js_LogController.lcbits & (mask)) > 0) { \
|
||||
js_LogController.printf(fmt, __VA_ARGS__); \
|
||||
fflush(stdout); \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#define debug_only_print0(mask, str) \
|
||||
JS_BEGIN_MACRO \
|
||||
if ((js_LogController.lcbits & (mask)) > 0) { \
|
||||
js_LogController.printf("%s", str); \
|
||||
fflush(stdout); \
|
||||
} \
|
||||
JS_END_MACRO
|
||||
|
||||
#else
|
||||
|
||||
@ -333,7 +343,6 @@ public:
|
||||
_(DEEP_BAIL) \
|
||||
_(STATUS)
|
||||
|
||||
|
||||
enum ExitType {
|
||||
#define MAKE_EXIT_CODE(x) x##_EXIT,
|
||||
JS_TM_EXITCODES(MAKE_EXIT_CODE)
|
||||
@ -374,21 +383,6 @@ struct VMSideExit : public nanojit::SideExit
|
||||
}
|
||||
};
|
||||
|
||||
static inline JSTraceType* getStackTypeMap(nanojit::SideExit* exit)
|
||||
{
|
||||
return (JSTraceType*)(((VMSideExit*)exit) + 1);
|
||||
}
|
||||
|
||||
static inline JSTraceType* getGlobalTypeMap(nanojit::SideExit* exit)
|
||||
{
|
||||
return getStackTypeMap(exit) + ((VMSideExit*)exit)->numStackSlots;
|
||||
}
|
||||
|
||||
static inline JSTraceType* getFullTypeMap(nanojit::SideExit* exit)
|
||||
{
|
||||
return getStackTypeMap(exit);
|
||||
}
|
||||
|
||||
struct FrameInfo {
|
||||
JSObject* callee; // callee function object
|
||||
JSObject* block; // caller block chain head
|
||||
|
Loading…
Reference in New Issue
Block a user