mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Some more fixes.
Some more fixes.
This commit is contained in:
parent
b9a2a715cd
commit
7945c4577f
2 changed files with 7 additions and 2 deletions
|
|
@ -43,6 +43,11 @@ class RelocationOverlay
|
|||
return reinterpret_cast<RelocationOverlay*>(cell);
|
||||
}
|
||||
|
||||
// ADD THIS: Const-friendly version
|
||||
static const RelocationOverlay* fromCell(const Cell* cell) {
|
||||
return reinterpret_cast<const RelocationOverlay*>(cell);
|
||||
}
|
||||
|
||||
bool isForwarded() const {
|
||||
return magic_ == Relocated;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -392,7 +392,7 @@ void
|
|||
MacroAssembler::branchIfRope(Register str, Label* label)
|
||||
{
|
||||
Address flags(str, JSString::offsetOfFlags());
|
||||
static_assert(JSString::ROPE_FLAGS == 0, "Rope type flags must be 0");
|
||||
static_assert(JSString::ROPE_FLAGS == JSString::NON_ATOM_BIT, "Rope type flags must be 0");
|
||||
branchTest32(Assembler::Zero, flags, Imm32(JSString::TYPE_FLAGS_MASK), label);
|
||||
}
|
||||
|
||||
|
|
@ -403,7 +403,7 @@ MacroAssembler::branchIfRopeOrExternal(Register str, Register temp, Label* label
|
|||
move32(Imm32(JSString::TYPE_FLAGS_MASK), temp);
|
||||
and32(flags, temp);
|
||||
|
||||
static_assert(JSString::ROPE_FLAGS == 0, "Rope type flags must be 0");
|
||||
static_assert(JSString::ROPE_FLAGS == JSString::NON_ATOM_BIT, "Rope type flags must be 0");
|
||||
branchTest32(Assembler::Zero, temp, temp, label);
|
||||
|
||||
branch32(Assembler::Equal, temp, Imm32(JSString::EXTERNAL_FLAGS), label);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue