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:
parent
bc8758bbac
commit
8f3060fd3c
18 changed files with 944 additions and 117 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue