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 | 7a03c9933a25b3453d98cc5daeaf13ed6008de45 (patch) | |
tree | b004fbba39c432d0306f932f9d3aab883f807559 /js | |
parent | 579dfc09eb550a972b389f87b92fbba7c8513f67 (diff) | |
download | uxp-7a03c9933a25b3453d98cc5daeaf13ed6008de45.tar.gz |
Bug 1464829 - Ensure the recover instruction vector has the expected size.
Diffstat (limited to 'js')
-rw-r--r-- | js/src/jit/JitFrameIterator.h | 2 | ||||
-rw-r--r-- | js/src/jit/JitFrames.cpp | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/js/src/jit/JitFrameIterator.h b/js/src/jit/JitFrameIterator.h index ba5efef6a5..3620badbda 100644 --- a/js/src/jit/JitFrameIterator.h +++ b/js/src/jit/JitFrameIterator.h @@ -322,9 +322,7 @@ class RInstructionResults MOZ_MUST_USE 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 f11f17225c..019be46ddb 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; } |