From b38648bf7b2cc3c377745a6eede7b79d6096793c Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Thu, 14 Jun 2018 21:32:53 -0700 Subject: [PATCH] #500: M1464829 --- js/src/jit/JitFrameIterator.h | 2 -- js/src/jit/JitFrames.cpp | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/js/src/jit/JitFrameIterator.h b/js/src/jit/JitFrameIterator.h index 61fbdb6f8..dce63665e 100644 --- a/js/src/jit/JitFrameIterator.h +++ b/js/src/jit/JitFrameIterator.h @@ -344,9 +344,7 @@ class RInstructionResults bool init(JSContext* cx, uint32_t numResults); bool isInitialized() const; -#ifdef DEBUG size_t length() const; -#endif JitFrameLayout* frame() const; diff --git a/js/src/jit/JitFrames.cpp b/js/src/jit/JitFrames.cpp index 8a5a495d0..b92565885 100644 --- a/js/src/jit/JitFrames.cpp +++ b/js/src/jit/JitFrames.cpp @@ -1753,13 +1753,11 @@ RInstructionResults::isInitialized() const return initialized_; } -#ifdef DEBUG size_t RInstructionResults::length() const { return results_->length(); } -#endif JitFrameLayout* RInstructionResults::frame() const @@ -2227,7 +2225,7 @@ SnapshotIterator::initInstructionResults(MaybeReadFallback& fallback) } MOZ_ASSERT(results->isInitialized()); - MOZ_ASSERT(results->length() == recover_.numInstructions() - 1); + MOZ_RELEASE_ASSERT(results->length() == recover_.numInstructions() - 1); instructionResults_ = results; return true; }