Lines Matching defs:Desc
43 /// │ sizeof(Block) │ Desc->getMetadataSize() │ Desc->getSize() │
46 /// Desc->getAllocSize() describes the size after the Block, i.e.
53 const Descriptor *Desc, bool IsStatic = false, bool IsExtern = false)
55 IsDynamic(false), Desc(Desc) {
56 assert(Desc);
59 Block(unsigned EvalID, const Descriptor *Desc, bool IsStatic = false,
62 IsExtern(IsExtern), IsDynamic(false), Desc(Desc) {
63 assert(Desc);
67 const Descriptor *getDescriptor() const { return Desc; }
75 bool isTemporary() const { return Desc->IsTemporary; }
78 unsigned getSize() const { return Desc->getAllocSize(); }
88 /// You are allowed to read Desc->getSize() bytes from this address.
91 size_t DataOffset = Desc->getMetadataSize();
96 size_t DataOffset = Desc->getMetadataSize();
101 /// You are allowed to read Desc->getAllocSize() bytes from this address.
112 std::memset(rawData(), 0, Desc->getAllocSize());
113 if (Desc->CtorFn)
114 Desc->CtorFn(this, data(), Desc->IsConst, Desc->IsMutable,
115 /*isActive=*/true, Desc);
122 if (Desc->DtorFn)
123 Desc->DtorFn(this, data(), Desc);
136 Block(unsigned EvalID, const Descriptor *Desc, bool IsExtern, bool IsStatic,
139 IsDynamic(false), Desc(Desc) {
140 assert(Desc);
173 const Descriptor *Desc;