-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathJITTimeWorkItem.h
51 lines (37 loc) · 1.78 KB
/
JITTimeWorkItem.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
//-------------------------------------------------------------------------------------------------------
// 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 for the backend to use to access CodeGenWorkItem properties
class JITTimeWorkItem
{
public:
JITTimeWorkItem(CodeGenWorkItemIDL * workItemData);
CodeGenWorkItemType Type() const;
ExecutionMode GetJitMode() const;
uint GetLoopNumber() const;
const JITLoopHeaderIDL * GetLoopHeader() const;
intptr_t GetLoopHeaderAddr() const;
bool IsLoopBody() const;
bool IsJitInDebugMode() const;
intptr_t GetCallsCountAddress() const;
intptr_t GetJittedLoopIterationsSinceLastBailoutAddr() const;
void InitializeReader(
Js::ByteCodeReader * reader,
Js::StatementReader<Js::FunctionBody::ArenaStatementMapList> * statementReader, ArenaAllocator* alloc);
JITTimeFunctionBody * GetJITFunctionBody();
uint16 GetProfiledIterations() const;
CodeGenWorkItemIDL* GetWorkItemData();
JITTimePolymorphicInlineCacheInfo * GetPolymorphicInlineCacheInfo();
JITTimePolymorphicInlineCacheInfo * GetInlineePolymorphicInlineCacheInfo(intptr_t funcBodyAddr);
void SetJITTimeData(FunctionJITTimeDataIDL * jitData);
FunctionJITTimeInfo * GetJITTimeInfo() const;
bool TryGetValueType(uint symId, ValueType * valueType) const;
bool HasSymIdToValueTypeMap() const;
private:
Js::FunctionBody::ArenaStatementMapList * m_fullStatementList;
CodeGenWorkItemIDL * m_workItemData;
JITTimeFunctionBody m_jitBody;
Js::SmallSpanSequence m_statementMap;
};