1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Comptime method reflection, method entry/exit emission

This commit is contained in:
Brian Fiete 2021-01-13 05:09:09 -08:00
parent bc8758bbac
commit 8f3060fd3c
18 changed files with 944 additions and 117 deletions

View file

@ -1989,6 +1989,12 @@ void BfIRBuilder::Write(const BfIRValue& irValue)
Write(MapType(typeofConst->mType, BfIRPopulateType_Identity));
}
break;
case (int)BfConstType_Undef:
{
auto undefConst = (BfConstantUndef*)constant;
Write(undefConst->mType);
}
break;
case (int)BfConstType_TypeOf_WithData:
{
auto typeofConst = (BfTypeOf_WithData_Const*)constant;
@ -4478,7 +4484,7 @@ BfIRValue BfIRBuilder::CreateGlobalVariable(BfIRType varType, bool isConstant, B
retVal.mId = chunkId;
NEW_CMD_INSERTED_IRVALUE;
return retVal;
}
}
auto irValue = BfIRValue(BfIRValueFlags_Const, chunkId);
return irValue;