File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1802,12 +1802,12 @@ NativeCodeGenerator::PrioritizedButNotYetProcessed(JsUtil::Job *const job)
1802
1802
ASSERT_THREAD ();
1803
1803
Assert (job);
1804
1804
1805
- #ifdef BGJIT_STATS
1806
1805
CodeGenWorkItem *const codeGenWorkItem = static_cast <CodeGenWorkItem *>(job);
1807
1806
if (codeGenWorkItem->Type () == JsFunctionType && codeGenWorkItem->IsInJitQueue ())
1808
1807
{
1808
+ #ifdef BGJIT_STATS
1809
1809
codeGenWorkItem->GetScriptContext ()->interpretedCallsHighPri ++;
1810
-
1810
+ # endif
1811
1811
if (codeGenWorkItem->GetJitMode () == ExecutionMode::FullJit)
1812
1812
{
1813
1813
QueuedFullJitWorkItem *const queuedFullJitWorkItem = codeGenWorkItem->GetQueuedFullJitWorkItem ();
@@ -1817,7 +1817,6 @@ NativeCodeGenerator::PrioritizedButNotYetProcessed(JsUtil::Job *const job)
1817
1817
}
1818
1818
}
1819
1819
}
1820
- #endif
1821
1820
}
1822
1821
1823
1822
Original file line number Diff line number Diff line change @@ -48,22 +48,20 @@ using namespace Js;
48
48
DebugOnly (VerifyEntryPoint ());
49
49
50
50
#if ENABLE_NATIVE_CODEGEN
51
- #ifdef BGJIT_STATS
52
51
if (!proxy->IsDeferred ())
53
52
{
54
53
FunctionBody* body = proxy->GetFunctionBody ();
55
54
if (!body->GetNativeEntryPointUsed () &&
56
55
body->GetDefaultFunctionEntryPointInfo ()->IsCodeGenDone ())
57
56
{
58
57
MemoryBarrier ();
59
-
58
+ # ifdef BGJIT_STATS
60
59
type->GetScriptContext ()->jitCodeUsed += body->GetByteCodeCount ();
61
60
type->GetScriptContext ()->funcJitCodeUsed ++;
62
-
61
+ # endif
63
62
body->SetNativeEntryPointUsed (true );
64
63
}
65
64
}
66
- #endif
67
65
#endif
68
66
}
69
67
You can’t perform that action at this time.
0 commit comments