MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / beforeTable

Method beforeTable

src/simulate/simulate_gc.cpp:394–407  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392 popRange();
393 }
394 virtual void beforeTable ( Table * PT, TypeInfo * ti ) override {
395 auto tsize = (ti->firstType->size + ti->secondType->size) * PT->capacity + tableHashSlotBytes(*PT)*PT->capacity;
396 DAS_ASSERT(tsize==(getTypeSize(ti->firstType)+getTypeSize(ti->secondType))*PT->capacity + tableHashSlotBytes(*PT)*PT->capacity);
397 char * pa = PT->data;
398 PtrRange rdata(pa, tsize);
399 if ( reportHeap && tsize && markRange(rdata) ) {
400 if ( describe_ptr(pa, tsize) ) {
401 describeInfo(ti);
402 ReportHistory();
403 tp << "TABLE " << getTypeInfoMangledName(ti) << "\n";
404 }
405 }
406 pushRange(rdata);
407 }
408 virtual void afterTable ( Table *, TypeInfo * ) override {
409 popRange();
410 }

Callers

nothing calls this directly

Calls 3

tableHashSlotBytesFunction · 0.85
getTypeSizeFunction · 0.85
getTypeInfoMangledNameFunction · 0.85

Tested by

no test coverage detected