Fixes to VMFunctions.cpp, assert no longer crashes.

Fixes to VMFunctions.cpp, assert no longer crashes.
This commit is contained in:
win7-7 2026-01-12 23:53:49 +02:00 committed by wuggy
commit 31404beca9
2 changed files with 2 additions and 2 deletions

View file

@ -316,7 +316,7 @@ BaselineCacheIRCompiler::emitGuardSpecificAtom()
// The pointers are not equal, so if the input string is also an atom it
// must be a different string.
masm.branchTest32(Assembler::NonZero, Address(str, JSString::offsetOfFlags()),
masm.branchTest32(Assembler::Zero, Address(str, JSString::offsetOfFlags()),
Imm32(JSString::NON_ATOM_BIT), failure->label());
// Check the length.

View file

@ -684,7 +684,7 @@ IonCacheIRCompiler::emitGuardSpecificAtom()
// The pointers are not equal, so if the input string is also an atom it
// must be a different string.
masm.branchTest32(Assembler::NonZero, Address(str, JSString::offsetOfFlags()),
masm.branchTest32(Assembler::Zero, Address(str, JSString::offsetOfFlags()),
Imm32(JSString::NON_ATOM_BIT), failure->label());
// Check the length.