@@ -1316,7 +1316,7 @@ ByteCodeParser::Terminality ByteCodeParser::handleCall(
1316
1316
unsigned nextOffset = m_currentIndex + instructionSize;
1317
1317
1318
1318
if (handleInlining (callTarget, result, callLinkStatus, registerOffset, virtualRegisterForArgument (0 , registerOffset), VirtualRegister (), 0 , argumentCountIncludingThis, nextOffset, op, kind, prediction)) {
1319
- if (m_graph.compilation ())
1319
+ if (UNLIKELY ( m_graph.compilation () ))
1320
1320
m_graph.compilation ()->noticeInlinedCall ();
1321
1321
return NonTerminal;
1322
1322
}
@@ -1354,7 +1354,7 @@ ByteCodeParser::Terminality ByteCodeParser::handleVarargsCall(Instruction* pc, N
1354
1354
1355
1355
if (callLinkStatus.canOptimize ()
1356
1356
&& handleInlining (callTarget, result, callLinkStatus, firstFreeReg, VirtualRegister (thisReg), VirtualRegister (arguments), firstVarArgOffset, 0 , m_currentIndex + OPCODE_LENGTH (op_call_varargs), op, InlineCallFrame::varargsKindFor (callMode), prediction)) {
1357
- if (m_graph.compilation ())
1357
+ if (UNLIKELY ( m_graph.compilation () ))
1358
1358
m_graph.compilation ()->noticeInlinedCall ();
1359
1359
return NonTerminal;
1360
1360
}
@@ -3717,7 +3717,7 @@ void ByteCodeParser::handleGetById(
3717
3717
3718
3718
if (getById != TryGetById && getByIdStatus.isModuleNamespace ()) {
3719
3719
if (handleModuleNamespaceLoad (destinationOperand, prediction, base, getByIdStatus)) {
3720
- if (m_graph.compilation ())
3720
+ if (UNLIKELY ( m_graph.compilation () ))
3721
3721
m_graph.compilation ()->noticeInlinedGetById ();
3722
3722
return ;
3723
3723
}
@@ -3731,7 +3731,7 @@ void ByteCodeParser::handleGetById(
3731
3731
GetByIdVariant variant = getByIdStatus[0 ];
3732
3732
ASSERT (variant.domAttribute ());
3733
3733
if (handleDOMJITGetter (destinationOperand, variant, base, identifierNumber, prediction)) {
3734
- if (m_graph.compilation ())
3734
+ if (UNLIKELY ( m_graph.compilation () ))
3735
3735
m_graph.compilation ()->noticeInlinedGetById ();
3736
3736
return ;
3737
3737
}
@@ -3782,7 +3782,7 @@ void ByteCodeParser::handleGetById(
3782
3782
cases.append (MultiGetByOffsetCase (*m_graph.addStructureSet (variant.structureSet ()), method));
3783
3783
}
3784
3784
3785
- if (m_graph.compilation ())
3785
+ if (UNLIKELY ( m_graph.compilation () ))
3786
3786
m_graph.compilation ()->noticeInlinedGetById ();
3787
3787
3788
3788
// 2) Emit a MultiGetByOffset
@@ -3804,7 +3804,7 @@ void ByteCodeParser::handleGetById(
3804
3804
return ;
3805
3805
}
3806
3806
3807
- if (m_graph.compilation ())
3807
+ if (UNLIKELY ( m_graph.compilation () ))
3808
3808
m_graph.compilation ()->noticeInlinedGetById ();
3809
3809
3810
3810
ASSERT (type == AccessType::Get || !variant.callLinkStatus ());
@@ -3903,7 +3903,7 @@ void ByteCodeParser::handlePutById(
3903
3903
}
3904
3904
}
3905
3905
3906
- if (m_graph.compilation ())
3906
+ if (UNLIKELY ( m_graph.compilation () ))
3907
3907
m_graph.compilation ()->noticeInlinedPutById ();
3908
3908
3909
3909
for (const PutByIdVariant& variant : putByIdStatus.variants ()) {
@@ -3927,7 +3927,7 @@ void ByteCodeParser::handlePutById(
3927
3927
switch (variant.kind ()) {
3928
3928
case PutByIdVariant::Replace: {
3929
3929
store (base, identifierNumber, variant, value);
3930
- if (m_graph.compilation ())
3930
+ if (UNLIKELY ( m_graph.compilation () ))
3931
3931
m_graph.compilation ()->noticeInlinedPutById ();
3932
3932
return ;
3933
3933
}
@@ -3994,7 +3994,7 @@ void ByteCodeParser::handlePutById(
3994
3994
// https://bugs.webkit.org/show_bug.cgi?id=142924.
3995
3995
addToGraph (PutStructure, OpInfo (transition), base);
3996
3996
3997
- if (m_graph.compilation ())
3997
+ if (UNLIKELY ( m_graph.compilation () ))
3998
3998
m_graph.compilation ()->noticeInlinedPutById ();
3999
3999
return ;
4000
4000
}
@@ -4124,7 +4124,7 @@ bool ByteCodeParser::parseBlock(unsigned limit)
4124
4124
if (Options::verboseDFGByteCodeParsing ())
4125
4125
dataLog (" parsing " , currentCodeOrigin (), " : " , opcodeID, " \n " );
4126
4126
4127
- if (m_graph.compilation ()) {
4127
+ if (UNLIKELY ( m_graph.compilation () )) {
4128
4128
addToGraph (CountExecution, OpInfo (m_graph.compilation ()->executionCounterFor (
4129
4129
Profiler::OriginStack (*m_vm->m_perBytecodeProfiler , m_codeBlock, currentCodeOrigin ()))));
4130
4130
}
@@ -6061,7 +6061,7 @@ void ByteCodeParser::parseCodeBlock()
6061
6061
6062
6062
CodeBlock* codeBlock = m_inlineStackTop->m_codeBlock ;
6063
6063
6064
- if (m_graph.compilation ()) {
6064
+ if (UNLIKELY ( m_graph.compilation () )) {
6065
6065
m_graph.compilation ()->addProfiledBytecodes (
6066
6066
*m_vm->m_perBytecodeProfiler , m_inlineStackTop->m_profiledBlock );
6067
6067
}
0 commit comments