mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Linux fixes
This commit is contained in:
parent
e4fa6776a8
commit
08e3f9155e
4 changed files with 7 additions and 7 deletions
|
@ -51,7 +51,7 @@ public:
|
||||||
{
|
{
|
||||||
int size = 0;
|
int size = 0;
|
||||||
int checkNode = mHead;
|
int checkNode = mHead;
|
||||||
while (checkNode != NULL)
|
while (checkNode != -1)
|
||||||
{
|
{
|
||||||
size++;
|
size++;
|
||||||
checkNode = CH_REL_TO_ABS(checkNode)->mNext;
|
checkNode = CH_REL_TO_ABS(checkNode)->mNext;
|
||||||
|
|
|
@ -5488,7 +5488,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
|
||||||
{
|
{
|
||||||
BfTypeCode loweredRetType = BfTypeCode_None;
|
BfTypeCode loweredRetType = BfTypeCode_None;
|
||||||
BfTypeCode loweredRetType2 = BfTypeCode_None;
|
BfTypeCode loweredRetType2 = BfTypeCode_None;
|
||||||
if (methodInstance->GetLoweredReturnType(&loweredRetType, &loweredRetType2))
|
if ((!IsConstEval()) && (methodInstance->GetLoweredReturnType(&loweredRetType, &loweredRetType2)))
|
||||||
{
|
{
|
||||||
auto retVal = mModule->CreateAlloca(methodInstance->mReturnType);
|
auto retVal = mModule->CreateAlloca(methodInstance->mReturnType);
|
||||||
BfIRType loweredIRType = mModule->GetIRLoweredType(loweredRetType, loweredRetType2);
|
BfIRType loweredIRType = mModule->GetIRLoweredType(loweredRetType, loweredRetType2);
|
||||||
|
|
|
@ -15546,7 +15546,7 @@ void BfModule::SetupIRMethod(BfMethodInstance* methodInstance, BfIRFunction func
|
||||||
BfType* resolvedTypeRef2 = NULL;
|
BfType* resolvedTypeRef2 = NULL;
|
||||||
String paramName;
|
String paramName;
|
||||||
bool isSplattable = false;
|
bool isSplattable = false;
|
||||||
bool tryLowering = true;
|
bool tryLowering = !mIsConstModule;
|
||||||
if (isThis)
|
if (isThis)
|
||||||
{
|
{
|
||||||
paramName = "this";
|
paramName = "this";
|
||||||
|
|
|
@ -3909,11 +3909,11 @@ bool CeMachine::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
||||||
|
|
||||||
if (sleepMS > 200)
|
if (sleepMS > 200)
|
||||||
{
|
{
|
||||||
Sleep(200);
|
BfpThread_Sleep(200);
|
||||||
sleepMS -= 200;
|
sleepMS -= 200;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Sleep(sleepMS);
|
BfpThread_Sleep(sleepMS);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5292,7 +5292,7 @@ void CeMachine::PrepareFunction(CeFunction* ceFunction, CeBuilder* parentBuilder
|
||||||
ceBuilder.mCeFunction = ceFunction;
|
ceBuilder.mCeFunction = ceFunction;
|
||||||
ceBuilder.Build();
|
ceBuilder.Build();
|
||||||
|
|
||||||
if (!ceFunction->mCode.IsEmpty())
|
/*if (!ceFunction->mCode.IsEmpty())
|
||||||
{
|
{
|
||||||
CeDumpContext dumpCtx;
|
CeDumpContext dumpCtx;
|
||||||
dumpCtx.mCeFunction = ceFunction;
|
dumpCtx.mCeFunction = ceFunction;
|
||||||
|
@ -5302,7 +5302,7 @@ void CeMachine::PrepareFunction(CeFunction* ceFunction, CeBuilder* parentBuilder
|
||||||
dumpCtx.Dump();
|
dumpCtx.Dump();
|
||||||
|
|
||||||
OutputDebugStrF("Code for %s:\n%s\n", ceBuilder.mBeFunction->mName.c_str(), dumpCtx.mStr.c_str());
|
OutputDebugStrF("Code for %s:\n%s\n", ceBuilder.mBeFunction->mName.c_str(), dumpCtx.mStr.c_str());
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void CeMachine::MapFunctionId(CeFunction* ceFunction)
|
void CeMachine::MapFunctionId(CeFunction* ceFunction)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue