-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathFunctionJITTimeInfo.h
61 lines (56 loc) · 3.23 KB
/
FunctionJITTimeInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
#pragma once
class FunctionJITTimeInfo
{
public:
FunctionJITTimeInfo(FunctionJITTimeDataIDL * data);
static void BuildJITTimeData(
__in ArenaAllocator * alloc,
__in const Js::FunctionCodeGenJitTimeData * codeGenData,
__in_opt const Js::FunctionCodeGenRuntimeData * runtimeData,
__out FunctionJITTimeDataIDL * jitData,
bool isInlinee,
bool isForegroundJIT);
uint GetInlineeCount() const;
bool IsLdFldInlineePresent() const;
const FunctionJITTimeInfo * GetCallbackInlinee(Js::ProfileId profileId) const;
const FunctionJITTimeInfo * GetCallApplyTargetInlinee(Js::ProfileId profileId) const;
const Js::ProfileId GetCallApplyCallSiteIdForCallSiteId(Js::ProfileId profiledCallSiteId) const;
const FunctionJITTimeInfo * GetLdFldInlinee(Js::InlineCacheIndex inlineCacheIndex) const;
const FunctionJITTimeInfo * GetInlinee(Js::ProfileId profileId) const;
const FunctionJITTimeInfo * GetNext() const;
JITTimeFunctionBody * GetBody() const;
bool IsPolymorphicCallSite(Js::ProfileId profiledCallSiteId) const;
intptr_t GetFunctionInfoAddr() const;
intptr_t GetEntryPointInfoAddr() const;
intptr_t GetWeakFuncRef() const;
uint GetLocalFunctionId() const;
uint GetSourceContextId() const;
bool HasBody() const;
bool IsAggressiveInliningEnabled() const;
bool IsInlined() const;
const FunctionJITRuntimeInfo * GetRuntimeInfo() const;
const BVFixed * GetInlineesBV() const;
const FunctionJITTimeInfo * GetJitTimeDataFromFunctionInfoAddr(intptr_t polyFuncInfo) const;
ObjTypeSpecFldInfo * GetObjTypeSpecFldInfo(uint index) const;
void ClearObjTypeSpecFldInfo(uint index);
ObjTypeSpecFldInfo * GetGlobalObjTypeSpecFldInfo(uint index) const;
uint GetGlobalObjTypeSpecFldInfoCount() const;
const FunctionJITRuntimeInfo * GetInlineeForTargetInlineeRuntimeData(const Js::ProfileId profiledCallSiteId, intptr_t inlineeFuncBodyAddr) const;
const FunctionJITRuntimeInfo *GetInlineeRuntimeData(const Js::ProfileId profiledCallSiteId) const;
const FunctionJITRuntimeInfo *GetLdFldInlineeRuntimeData(const Js::InlineCacheIndex inlineCacheIndex) const;
const FunctionJITRuntimeInfo * GetCallbackInlineeRuntimeData(const Js::ProfileId profiledCallSiteId) const;
const FunctionJITRuntimeInfo * GetInlineeForCallbackInlineeRuntimeData(const Js::ProfileId profiledCallSiteId, intptr_t inlineeFuncBodyAddr) const;
const FunctionJITRuntimeInfo * GetCallApplyTargetInlineeRuntimeData(const Js::ProfileId callApplyCallSiteId) const;
bool ForceJITLoopBody() const;
bool HasSharedPropertyGuards() const;
bool HasSharedPropertyGuard(Js::PropertyId id) const;
bool IsJsBuiltInForceInline() const;
char16* GetDisplayName() const;
char16* GetDebugNumberSet(wchar(&bufferToWriteTo)[MAX_FUNCTION_BODY_DEBUG_STRING_SIZE]) const;
private:
FunctionJITTimeDataIDL m_data;
};