MCPcopy Create free account
hub / github.com/beefytech/Beef / AllocEmptyList

Method AllocEmptyList

IDEHelper/Backend/BeMCContext.cpp:183–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183BeVTrackingList* BeVTrackingContext::AllocEmptyList()
184{
185 int allocBytes = sizeof(int) * (2);
186 auto newList = (BeVTrackingList*)mAlloc.AllocBytes(allocBytes);
187 mStats.mListBytes += allocBytes;
188 newList->mSize = 0;
189 newList->mNumChanges = 0;
190 return newList;
191}
192
193BeVTrackingList* BeVTrackingContext::AddFiltered(BeVTrackingList* list, SizedArrayImpl<int>& filteredAdds, bool perserveChangeList)
194{

Callers 3

GenerateLivenessMethod · 0.80
GenerateVRegInitFlagsMethod · 0.80
DoCodeEmissionMethod · 0.80

Calls 1

AllocBytesMethod · 0.45

Tested by

no test coverage detected