From 3e03ef3a42704269c8291d15eb1917f217d7a6aa Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Mon, 8 Mar 2010 16:11:59 +1100 Subject: [PATCH] Bug 550796 - TM: remove dead ImportGlobalSlotVisitor class. r=lw. --- js/src/jstracer.cpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/js/src/jstracer.cpp b/js/src/jstracer.cpp index 28eee7d758f..525a4133f19 100644 --- a/js/src/jstracer.cpp +++ b/js/src/jstracer.cpp @@ -3403,28 +3403,6 @@ TraceRecorder::import(LIns* base, ptrdiff_t offset, jsval* p, TraceType t, #endif } -class ImportGlobalSlotVisitor : public SlotVisitorBase -{ - TraceRecorder &mRecorder; - LIns *mBase; - TraceType *mTypemap; -public: - ImportGlobalSlotVisitor(TraceRecorder &recorder, - LIns *base, - TraceType *typemap) : - mRecorder(recorder), - mBase(base), - mTypemap(typemap) - {} - - JS_REQUIRES_STACK JS_ALWAYS_INLINE void - visitGlobalSlot(jsval *vp, unsigned n, unsigned slot) { - JS_ASSERT(*mTypemap != TT_JSVAL); - mRecorder.import(mBase, mRecorder.nativeGlobalOffset(vp), - vp, *mTypemap++, "global", n, NULL); - } -}; - class ImportBoxedStackSlotVisitor : public SlotVisitorBase { TraceRecorder &mRecorder;