mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Bug 1464829 - Ensure the recover instruction vector has the expected size.
This commit is contained in:
parent
3dc461fc72
commit
0c1ca8a865
2 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue