Remove guardCount. No longer needed.
authorAndreas Gal <gal@mozilla.com>
Sun, 27 Jul 2008 12:05:01 -0700
changeset 17843 ee5bf68b0025791cbe4b43a501ed5f9ddeabbe1e
parent 17842 ff7fb1bfd03df2eb976db17bf1fd65e67d53ee30
child 17844 f5e9534513710c4f703b3e7b0df98b2fb9311466
child 17845 7eed0be91ce49c924ad8b9b86c0bdb199a411b79
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.1a1pre
Remove guardCount. No longer needed.
js/src/jstracer.cpp
js/src/jstracer.h
--- 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);