1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 23:18:26 +00:00

Bug 1464829 - Ensure the recover instruction vector has the expected size.

This commit is contained in:
Nicolas B. Pierron
2018-05-31 14:22:14 +02:00
committed by Roy Tam
parent 3dc461fc72
commit 0c1ca8a865
2 changed files with 1 additions and 5 deletions
-2
View File
@@ -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;
+1 -3
View File
@@ -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;
}