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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user