Remove guardCount. No longer needed.
Remove guardCount. No longer needed.
--- a/js/src/jstracer.cpp
+++ b/js/src/jstracer.cpp
@@ -990,17 +990,16 @@ TraceRecorder::snapshot()
interpreter is using. For numbers we have to check what kind of store we used last
(integer or double) to figure out what the side exit show reflect in its typemap. */
FORALL_SLOTS(cx, treeInfo->ngslots, treeInfo->gslots, callDepth,
LIns* i = get(vp);
*m++ = isNumber(*vp)
? (isPromoteInt(i) ? JSVAL_INT : JSVAL_DOUBLE)
: JSVAL_TAG(*vp);
);
- ++guardCount;
return &exit;
}
LIns*
TraceRecorder::guard(bool expected, LIns* cond)
{
return lir->insGuard(expected ? LIR_xf : LIR_xt,
cond,
--- a/js/src/jstracer.h
+++ b/js/src/jstracer.h
@@ -136,17 +136,16 @@ class TraceRecorder {
nanojit::LirWriter* cse_filter;
nanojit::LirWriter* expr_filter;
nanojit::LirWriter* func_filter;
nanojit::LIns* cx_ins;
nanojit::LIns* gp_ins;
nanojit::LIns* rval_ins;
nanojit::SideExit exit;
bool recompileFlag;
- unsigned guardCount;
bool isGlobal(jsval* p) const;
ptrdiff_t nativeStackOffset(jsval* p) const;
ptrdiff_t nativeGlobalOffset(jsval* p) const;
void import(nanojit::LIns* base, ptrdiff_t offset, jsval* p, uint8& t,
const char *prefix, int index, jsuword* localNames);
void trackNativeStackUse(unsigned slots);