diff --git a/js/src/jit/shared/CodeGenerator-shared-inl.h b/js/src/jit/shared/CodeGenerator-shared-inl.h index 662e2fa5d6ae..c40aab4bcd7e 100644 --- a/js/src/jit/shared/CodeGenerator-shared-inl.h +++ b/js/src/jit/shared/CodeGenerator-shared-inl.h @@ -226,12 +226,6 @@ CodeGeneratorShared::ArgToStackOffset(int32_t slot) const slot; } -int32_t -CodeGeneratorShared::CalleeStackOffset() const -{ - return masm.framePushed() + JitFrameLayout::offsetOfCalleeToken(); -} - int32_t CodeGeneratorShared::SlotToStackOffset(int32_t slot) const { diff --git a/js/src/jit/shared/CodeGenerator-shared.h b/js/src/jit/shared/CodeGenerator-shared.h index af54bc5f785b..d75572dac0a6 100644 --- a/js/src/jit/shared/CodeGenerator-shared.h +++ b/js/src/jit/shared/CodeGenerator-shared.h @@ -213,9 +213,6 @@ class CodeGeneratorShared : public LElementVisitor // For arguments to the current function. inline int32_t ArgToStackOffset(int32_t slot) const; - // For the callee of the current function. - inline int32_t CalleeStackOffset() const; - inline int32_t SlotToStackOffset(int32_t slot) const; inline int32_t StackOffsetToSlot(int32_t offset) const;