• Home
  • Raw
  • Download

Lines Matching defs:MethodLiteral

33 struct PUBLIC_API MethodLiteral : public base::AlignedStruct<sizeof(uint64_t),  struct
43 PUBLIC_API explicit MethodLiteral(EntityId methodId); argument
50 static constexpr size_t VREGS_ARGS_NUM_BITS = 28; // 28: maximum 268,435,455
51 using HaveThisBit = BitField<bool, 0, 1>; // offset 0
52 using HaveNewTargetBit = HaveThisBit::NextFlag; // offset 1
53 using HaveExtraBit = HaveNewTargetBit::NextFlag; // offset 2
54 using HaveFuncBit = HaveExtraBit::NextFlag; // offset 3
55 using NumVregsBits = HaveFuncBit::NextField<uint32_t, VREGS_ARGS_NUM_BITS>; // offset 4-31
56 using NumArgsBits = NumVregsBits::NextField<uint32_t, VREGS_ARGS_NUM_BITS>; // offset 32-59
57 using IsNativeBit = NumArgsBits::NextFlag; // offset 60
58 using IsAotCodeBit = IsNativeBit::NextFlag; // offset 61
59 using IsFastBuiltinBit = IsAotCodeBit::NextFlag; // offset 62
60 using IsFastCallBit = IsFastBuiltinBit::NextFlag; // offset 63
62 uint64_t GetCallField() const in GetCallField()
67 void SetNativeBit(bool isNative) in SetNativeBit()
72 void SetAotCodeBit(bool isCompiled) in SetAotCodeBit()
79 bool HaveThisWithCallField() const in HaveThisWithCallField()
84 bool HaveNewTargetWithCallField() const in HaveNewTargetWithCallField()
89 bool HaveExtraWithCallField() const in HaveExtraWithCallField()
94 bool HaveFuncWithCallField() const in HaveFuncWithCallField()
99 bool IsNativeWithCallField() const in IsNativeWithCallField()
104 uint32_t GetNumArgsWithCallField() const in GetNumArgsWithCallField()
109 uint32_t GetNumArgs() const in GetNumArgs()
115 uint32_t GetNumberVRegs() const in GetNumberVRegs()
120 uint32_t GetNewTargetVregIndex() const in GetNewTargetVregIndex()
129 static uint64_t SetNativeBit(uint64_t callField, bool isNative) in SetNativeBit()
134 static uint64_t SetAotCodeBit(uint64_t callField, bool isCompiled) in SetAotCodeBit()
139 static bool HaveThisWithCallField(uint64_t callField) in HaveThisWithCallField()
144 static bool HaveNewTargetWithCallField(uint64_t callField) in HaveNewTargetWithCallField()
149 static bool HaveExtraWithCallField(uint64_t callField) in HaveExtraWithCallField()
154 static bool HaveFuncWithCallField(uint64_t callField) in HaveFuncWithCallField()
159 static bool IsNativeWithCallField(uint64_t callField) in IsNativeWithCallField()
164 static bool IsAotWithCallField(uint64_t callField) in IsAotWithCallField()
169 static bool OnlyHaveThisWithCallField(uint64_t callField) in OnlyHaveThisWithCallField()
174 static bool OnlyHaveNewTagetAndThisWithCallField(uint64_t callField) in OnlyHaveNewTagetAndThisWithCallField()
179 static uint32_t GetNumVregsWithCallField(uint64_t callField) in GetNumVregsWithCallField()
184 uint32_t GetNumVregsWithCallField() const in GetNumVregsWithCallField()
189 static uint32_t GetNumArgsWithCallField(uint64_t callField) in GetNumArgsWithCallField()
194 static uint64_t SetIsFastCall(uint64_t callField, bool isFastCall) in SetIsFastCall()
199 void SetIsFastCall(bool isFastCall) in SetIsFastCall()
204 static bool IsFastCall(uint64_t callField) in IsFastCall()
209 bool IsFastCall() const in IsFastCall()
214 static constexpr size_t METHOD_ARGS_NUM_BITS = 16;
215 static constexpr size_t METHOD_ARGS_METHODID_BITS = 32;
216 static constexpr size_t METHOD_SLOT_SIZE_BITS = 16;
217 using HotnessCounterBits = BitField<int16_t, 0, METHOD_ARGS_NUM_BITS>; // offset 0-15
218 … MethodIdBits = HotnessCounterBits::NextField<uint32_t, METHOD_ARGS_METHODID_BITS>; // offset 16-47
219 using SlotSizeBits = MethodIdBits::NextField<uint16_t, METHOD_SLOT_SIZE_BITS>; // offset 48-63
221 static constexpr size_t BUILTINID_NUM_BITS = 8;
222 static constexpr size_t FUNCTION_KIND_NUM_BITS = 4;
223 static constexpr size_t EMPTY_BITS = 16;
224 using BuiltinIdBits = BitField<uint8_t, 0, BUILTINID_NUM_BITS>; // offset 0-7
225 …g FunctionKindBits = BuiltinIdBits::NextField<FunctionKind, FUNCTION_KIND_NUM_BITS>; // offset 8-11
226 using IsNoGCBit = FunctionKindBits::NextFlag; // offset 12
227 using HasDebuggerStmtBit = IsNoGCBit::NextFlag; // offset 13
228 using EmptyBit = HasDebuggerStmtBit::NextField<uint8_t, EMPTY_BITS>; // offset 14-29
229 using IsSharedBit = EmptyBit::NextFlag; // offset 30
230 using CanTypedCall = IsSharedBit::NextFlag; // offset 31
232 inline NO_THREAD_SANITIZE void SetHotnessCounter(int16_t counter) in SetHotnessCounter()
237 EntityId GetMethodId() const in GetMethodId()
242 uint32_t GetSlotSize() const in GetSlotSize()
248 uint8_t UpdateSlotSizeWith8Bit(uint16_t size) in UpdateSlotSizeWith8Bit()
263 void SetFunctionKind(FunctionKind kind) in SetFunctionKind()
268 void SetNoGCBit(bool isNoGC) in SetNoGCBit()
273 bool IsNoGC() const in IsNoGC()
278 void SetHasDebuggerStmtBit(bool isDebuggerStmt) in SetHasDebuggerStmtBit()
283 bool HasDebuggerStmt() const in HasDebuggerStmt()
288 void SetIsShared(bool isShared) in SetIsShared()
293 bool IsShared() const in IsShared()
298 void SetCanTypedCall(bool isTypedCall) in SetCanTypedCall()
303 bool IsTypedCall() const in IsTypedCall()
308 FunctionKind GetFunctionKind() const in GetFunctionKind()
313 inline bool IsClassConstructor() const in IsClassConstructor()
318 static inline int16_t GetHotnessCounter(uint64_t literalInfo) in GetHotnessCounter()
323 static uint64_t SetHotnessCounter(uint64_t literalInfo, int16_t counter) in SetHotnessCounter()
328 static uint64_t SetFunctionKind(uint64_t extraLiteralInfo, FunctionKind kind) in SetFunctionKind()
333 static FunctionKind GetFunctionKind(uint64_t extraLiteralInfo) in GetFunctionKind()
338 static EntityId GetMethodId(uint64_t literalInfo) in GetMethodId()
343 static uint32_t GetSlotSize(uint64_t literalInfo) in GetSlotSize()
360 const uint8_t *GetBytecodeArray() const in GetBytecodeArray()
365 const void* GetNativePointer() const in GetNativePointer()
370 uint64_t GetLiteralInfo() const in GetLiteralInfo()
375 uint64_t GetExtraLiteralInfo() const in GetExtraLiteralInfo()
383 enum class Index : size_t {
395 void SetMethodId(EntityId methodId) in SetMethodId()
419 STATIC_ASSERT_EQ_ARCH(sizeof(MethodLiteral), MethodLiteral::SizeArch32, MethodLiteral::SizeArch64); argument