Skip to content

Commit a00830e

Browse files
author
Meghana Gupta
committed
StrictEquals fastpath
- Handle Neq case in TryGenerateFastCmSrXx - While generating fastpath IsConstRegOpnd was checking IsSingleDef, change it to value type check to check for undefined/null/boolean - Fast path for when one of the sources has a definite value type - Changed helper path to include fast paths for objects which are not GlobalObject, HotDispatch or External
1 parent faa7f33 commit a00830e

File tree

11 files changed

+426
-136
lines changed

11 files changed

+426
-136
lines changed

lib/Backend/IR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2842,7 +2842,7 @@ Instr::IsByteCodeUsesInstrFor(IR::Instr * instr) const
28422842
IR::LabelInstr *
28432843
Instr::GetOrCreateContinueLabel(const bool isHelper)
28442844
{
2845-
if(m_next && m_next->IsLabelInstr() && m_next->AsLabelInstr()->isOpHelper == isHelper)
2845+
if (m_next && m_next->IsLabelInstr() && m_next->AsLabelInstr()->isOpHelper == isHelper)
28462846
{
28472847
return m_next->AsLabelInstr();
28482848
}

0 commit comments

Comments
 (0)