diff options
author | Nicolas B. Pierron <nicolas.b.pierron@gmail.com> | 2018-05-31 14:22:14 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-07 15:50:32 +0200 |
commit | f3657d6b4d4b30574a43a886bed6945590bf1508 (patch) | |
tree | b004fbba39c432d0306f932f9d3aab883f807559 /js/src/jit/JitFrames.cpp | |
parent | c631245c9c387850b9a0c0184135d9fa27aaef15 (diff) | |
download | UXP-f3657d6b4d4b30574a43a886bed6945590bf1508.tar UXP-f3657d6b4d4b30574a43a886bed6945590bf1508.tar.gz UXP-f3657d6b4d4b30574a43a886bed6945590bf1508.tar.lz UXP-f3657d6b4d4b30574a43a886bed6945590bf1508.tar.xz UXP-f3657d6b4d4b30574a43a886bed6945590bf1508.zip |
Bug 1464829 - Ensure the recover instruction vector has the expected size.
Diffstat (limited to 'js/src/jit/JitFrames.cpp')
-rw-r--r-- | js/src/jit/JitFrames.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/js/src/jit/JitFrames.cpp b/js/src/jit/JitFrames.cpp index f11f17225..019be46dd 100644 --- a/js/src/jit/JitFrames.cpp +++ b/js/src/jit/JitFrames.cpp @@ -1688,13 +1688,11 @@ RInstructionResults::isInitialized() const return initialized_; } -#ifdef DEBUG size_t RInstructionResults::length() const { return results_->length(); } -#endif JitFrameLayout* RInstructionResults::frame() const @@ -2150,7 +2148,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; } |