mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +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);
|
MOZ_MUST_USE bool init(JSContext* cx, uint32_t numResults);
|
||||||
bool isInitialized() const;
|
bool isInitialized() const;
|
||||||
#ifdef DEBUG
|
|
||||||
size_t length() const;
|
size_t length() const;
|
||||||
#endif
|
|
||||||
|
|
||||||
JitFrameLayout* frame() const;
|
JitFrameLayout* frame() const;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1688,13 +1688,11 @@ RInstructionResults::isInitialized() const
|
||||||
return initialized_;
|
return initialized_;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
size_t
|
size_t
|
||||||
RInstructionResults::length() const
|
RInstructionResults::length() const
|
||||||
{
|
{
|
||||||
return results_->length();
|
return results_->length();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
JitFrameLayout*
|
JitFrameLayout*
|
||||||
RInstructionResults::frame() const
|
RInstructionResults::frame() const
|
||||||
|
|
@ -2150,7 +2148,7 @@ SnapshotIterator::initInstructionResults(MaybeReadFallback& fallback)
|
||||||
}
|
}
|
||||||
|
|
||||||
MOZ_ASSERT(results->isInitialized());
|
MOZ_ASSERT(results->isInitialized());
|
||||||
MOZ_ASSERT(results->length() == recover_.numInstructions() - 1);
|
MOZ_RELEASE_ASSERT(results->length() == recover_.numInstructions() - 1);
|
||||||
instructionResults_ = results;
|
instructionResults_ = results;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue