11/* Automatically generated by
2- CCodeGenerator VMMaker.oscog-eem.2773 uuid: 3c51054d-e839-4959-b3e1-562845a4fa54
2+ CCodeGenerator VMMaker.oscog-eem.2775 uuid: 5277c7af-b6e2-42b2-879d-eab85ff574c2
33 from
4- StackToRegisterMappingCogit VMMaker.oscog-eem.2773 uuid: 3c51054d-e839-4959-b3e1-562845a4fa54
4+ StackToRegisterMappingCogit VMMaker.oscog-eem.2775 uuid: 5277c7af-b6e2-42b2-879d-eab85ff574c2
55 CogARMv8Compiler ClosedVMMaker-eem.95 uuid: 3ad743c8-1af0-4b4e-b6d5-eb052af049cb
66 */
7- static char __buildInfo[] = "StackToRegisterMappingCogit VMMaker.oscog-eem.2773 uuid: 3c51054d-e839-4959-b3e1-562845a4fa54 \n\
7+ static char __buildInfo[] = "StackToRegisterMappingCogit VMMaker.oscog-eem.2775 uuid: 5277c7af-b6e2-42b2-879d-eab85ff574c2 \n\
88CogARMv8Compiler ClosedVMMaker-eem.95 uuid: 3ad743c8-1af0-4b4e-b6d5-eb052af049cb " __DATE__ ;
99char *__cogitBuildInfo = __buildInfo;
1010
@@ -757,7 +757,7 @@ static void generateTrampolines(void);
757757static BytecodeDescriptor * NoDbgRegParms generatorForPC(sqInt pc);
758758static void genGetLeafCallStackPointers(void);
759759static usqInt NoDbgRegParms genInnerPICAbortTrampoline(char *name);
760- static usqInt genInvokeInterpretTrampoline(void);
760+ static void (*)(void) genInvokeInterpretTrampoline(void);
761761static void NoDbgRegParms genLoadInlineCacheWithSelector(sqInt selectorIndex);
762762static usqInt genNonLocalReturnTrampoline(void);
763763static usqInt NoDbgRegParms genNSSendTrampolineFornumArgsenclosingObjectCheckcalled(void *aRoutine, sqInt numArgs, sqInt eoCheckFlag, char *aString);
@@ -6796,7 +6796,7 @@ rewriteImm19JumpBeforetarget(AbstractInstruction * self_in_rewriteImm19JumpBefor
67966796static sqInt NoDbgRegParms
67976797rewriteImm26JumpBeforetarget(AbstractInstruction * self_in_rewriteImm26JumpBeforetarget, sqInt followingAddress, sqInt targetAddress)
67986798{
6799- usqInt instrOpcode;
6799+ sqInt instrOpcode;
68006800 sqInt mcpc;
68016801 sqInt offset;
68026802
@@ -6806,7 +6806,7 @@ rewriteImm26JumpBeforetarget(AbstractInstruction * self_in_rewriteImm26JumpBefor
68066806 instrOpcode = ((instructionBeforeAddress(self_in_rewriteImm26JumpBeforetarget, followingAddress))) >> 26;
68076807 assert((instrOpcode == 5)
68086808 || (instrOpcode == 37));
6809- codeLong32Atput(mcpc, (instrOpcode << 26) + (((offset) >> 2) & (0x3FFFFFF)));
6809+ codeLong32Atput(mcpc, (((sqInt)((usqInt)( instrOpcode) << 26)) ) + (((offset) >> 2) & (0x3FFFFFF)));
68106810 return 4;
68116811}
68126812
@@ -8805,7 +8805,7 @@ cogCodeConstituents(sqInt withDetails)
88058805 cogMethod = ((CogMethod *) (roundUpToMethodAlignment(backEnd(), (((sqInt)cogMethod)) + ((cogMethod->blockSize)))));
88068806 }
88078807 constituents = instantiateClassindexableSize(classArray(), count * 2);
8808- if (!( constituents) ) {
8808+ if (!constituents) {
88098809 return constituents;
88108810 }
88118811 pushRemappableOop(constituents);
@@ -8835,7 +8835,7 @@ cogCodeConstituents(sqInt withDetails)
88358835 && (((cogMethod->cmType)) == CMClosedPIC)
88368836 ? createCPICData(cogMethod)
88378837 : (cogMethod->selector)));
8838- if (!( profileData) ) {
8838+ if (!profileData) {
88398839 return cleanUpFailingCogCodeConstituents(cogMethod);
88408840 }
88418841 storePointerUncheckedofObjectwithValue(count, constituents, profileData);
@@ -8845,7 +8845,7 @@ cogCodeConstituents(sqInt withDetails)
88458845 else {
88468846 value = positive64BitIntegerFor(((usqInt)cogMethod));
88478847 }
8848- if (!( value) ) {
8848+ if (!value) {
88498849 return cleanUpFailingCogCodeConstituents(cogMethod);
88508850 }
88518851 storePointerUncheckedofObjectwithValue(count + 1, constituents, value);
@@ -9342,14 +9342,14 @@ collectCogConstituentForAnnotationMcpcBcpcMethod(BytecodeDescriptor *descriptor,
93429342 sqInt *sendTable1;
93439343 CogMethod *targetMethod1;
93449344
9345- if (!( descriptor) ) {
9345+ if (!descriptor) {
93469346 return 0;
93479347 }
93489348 if (!((descriptor->isMapped))) {
93499349 return 0;
93509350 }
93519351 address = positive64BitIntegerFor(((usqInt)mcpc));
9352- if (!( address) ) {
9352+ if (!address) {
93539353 return PrimErrNoMemory;
93549354 }
93559355 storePointerUncheckedofObjectwithValue(cogConstituentIndex, topRemappableOop(), address);
@@ -9463,12 +9463,12 @@ collectCogMethodConstituent(CogMethod *cogMethod)
94639463 /* +1 for first address */
94649464 nSlots = ((((byteSizeOf(cm)) - (startPCOfMethod(cm))) * 2) + (minSlotsForShortening())) + 1;
94659465 data = instantiateClassindexableSize(splObj(ClassArray), nSlots);
9466- if (!( data) ) {
9466+ if (!data) {
94679467 return null;
94689468 }
94699469 pushRemappableOop(data);
94709470 address = positive64BitIntegerFor(((usqInt)cogMethod));
9471- if (!( address) ) {
9471+ if (!address) {
94729472 popRemappableOop();
94739473 return null;
94749474 }
@@ -10443,7 +10443,7 @@ createCPICData(CogMethod *cPIC)
1044310443 assert((((cPIC->methodObject)) == 0)
1044410444 || (addressCouldBeOop((cPIC->methodObject))));
1044510445 picData = instantiateClassindexableSize(classArray(), (((cPIC->cPICNumCases)) * 2) + 1);
10446- if (!( picData) ) {
10446+ if (!picData) {
1044710447 return picData;
1044810448 }
1044910449 storePointerUncheckedofObjectwithValue(0, picData, (cPIC->selector));
@@ -11889,7 +11889,7 @@ genInnerPICAbortTrampoline(char *name)
1188911889 this is the caller's responsibility), and invoke interpret PDQ. */
1189011890
1189111891 /* Cogit>>#genInvokeInterpretTrampoline */
11892- static usqInt
11892+ static void (*)(void)
1189311893genInvokeInterpretTrampoline(void)
1189411894{
1189511895 sqInt address;
@@ -11924,7 +11924,7 @@ genInvokeInterpretTrampoline(void)
1192411924 checkLiteralforInstruction(((sqInt)jumpTarget), genoperand(JumpFull, ((sqInt)jumpTarget)));
1192511925 outputInstructionsForGeneratedRuntimeAt(startAddress);
1192611926 recordGeneratedRunTimeaddress("ceInvokeInterpret", startAddress);
11927- return startAddress;
11927+ return ((void (*)(void)) startAddress) ;
1192811928}
1192911929
1193011930
@@ -14533,7 +14533,7 @@ patchToOpenPICFornumArgsreceiver(sqInt selector, sqInt numArgs, sqInt receiver)
1453314533 /* See if an Open PIC is already available. */
1453414534 outerReturn = stackTop();
1453514535 oPIC = openPICWithSelector(selector);
14536- if (!( oPIC) ) {
14536+ if (!oPIC) {
1453714537
1453814538 /* otherwise attempt to create an Open PIC. */
1453914539 oPIC = cogOpenPICSelectornumArgs(selector, numArgs);
@@ -15315,7 +15315,7 @@ unlinkAllSends(void)
1531515315 sqInt mcpc;
1531615316 sqInt result;
1531715317
15318- if (!( methodZoneBase) ) {
15318+ if (!methodZoneBase) {
1531915319 return;
1532015320 }
1532115321 cogMethod = ((CogMethod *) methodZoneBase);
@@ -15888,7 +15888,7 @@ unlinkSendsLinkedForInvalidClasses(void)
1588815888 sqInt mcpc;
1588915889 sqInt result;
1589015890
15891- if (!( methodZoneBase) ) {
15891+ if (!methodZoneBase) {
1589215892 return;
1589315893 }
1589415894 cogMethod = ((CogMethod *) methodZoneBase);
@@ -15963,7 +15963,7 @@ unlinkSendsOfisMNUSelector(sqInt selector, sqInt isMNUSelector)
1596315963 sqInt mustScanAndUnlink;
1596415964 sqInt result;
1596515965
15966- if (!( methodZoneBase) ) {
15966+ if (!methodZoneBase) {
1596715967 return;
1596815968 }
1596915969 cogMethod = ((CogMethod *) methodZoneBase);
@@ -16058,7 +16058,7 @@ unlinkSendsToFree(void)
1605816058 sqInt mcpc;
1605916059 sqInt result;
1606016060
16061- if (!( methodZoneBase) ) {
16061+ if (!methodZoneBase) {
1606216062 return;
1606316063 }
1606416064 codeModified = 0;
@@ -16124,7 +16124,7 @@ unlinkSendsToMachineCodePrimitiveMethodsAndFreeIf(sqInt freeIfTrue)
1612416124 sqInt mcpc;
1612516125 sqInt result;
1612616126
16127- if (!( methodZoneBase) ) {
16127+ if (!methodZoneBase) {
1612816128 return;
1612916129 }
1613016130 codeModified = (freedSomething = 0);
@@ -16209,7 +16209,7 @@ unlinkSendsToandFreeIf(sqInt targetMethodObject, sqInt freeIfTrue)
1620916209 return;
1621016210 }
1621116211 targetMethod = cogMethodOf(targetMethodObject);
16212- if (!( methodZoneBase) ) {
16212+ if (!methodZoneBase) {
1621316213 return;
1621416214 }
1621516215 codeModified = (freedPIC = 0);
@@ -17129,7 +17129,7 @@ removeFromOpenPICList(CogMethod *anOpenPIC)
1712917129 CogMethod *prevPIC;
1713017130
1713117131 assert(((anOpenPIC->cmType)) == CMOpenPIC);
17132- if (!( openPICList) ) {
17132+ if (!openPICList) {
1713317133 return null;
1713417134 }
1713517135 assert((((openPICList->cmType)) == CMOpenPIC)
@@ -27808,7 +27808,7 @@ pcDataForAnnotationMcpcBcpcMethod(BytecodeDescriptor *descriptor, sqInt isBackwa
2780827808 sqInt actualBcpc;
2780927809 sqInt actualMcpc;
2781027810
27811- if (!( descriptor) ) {
27811+ if (!descriptor) {
2781227812
2781327813 /* this is the stackCheck offset */
2781427814 assert(introspectionDataIndex == 0);
@@ -31241,7 +31241,7 @@ genSpecialSelectorArithmetic(void)
3124131241 error("Case not found and no otherwise clause");
3124231242 }
3124331243 if (jumpNotSmallInts == null) {
31244- if (!( jumpContinue) ) {
31244+ if (!jumpContinue) {
3124531245
3124631246 /* overflow cannot happen */
3124731247 /* begin annotateInstructionForBytecode */
@@ -31439,7 +31439,7 @@ genSpecialSelectorComparison(void)
3143931439 /* begin Jump: */
3144031440 jumpTarget = ensureNonMergeFixupAt(postBranchPC);
3144131441 genoperand(Jump, ((sqInt)jumpTarget));
31442- if (!( jumpNotSmallInts) ) {
31442+ if (!jumpNotSmallInts) {
3144331443 /* begin annotateInstructionForBytecode */
3144431444 if (prevInstIsPCAnnotated()) {
3144531445 /* begin Nop */
@@ -33338,15 +33338,15 @@ tempsValidAndVolatileEntriesSpilled(void)
3333833338 for (i = 1; i <= methodOrBlockNumTemps; i += 1) {
3333933339 if (!(((((simStackAt(i))->type)) == SSBaseOffset)
3334033340 || (maybeCompilingFirstPassOfBlockWithInitialPushNil()))) {
33341- if (!( culprit) ) {
33341+ if (!culprit) {
3334233342 culprit = i;
3334333343 }
3334433344 return 0;
3334533345 }
3334633346 }
3334733347 for (i = (methodOrBlockNumTemps + 1); i < simSpillBase; i += 1) {
3334833348 if (!(((simStackAt(i))->spilled))) {
33349- if (!( culprit) ) {
33349+ if (!culprit) {
3335033350 culprit = i;
3335133351 }
3335233352 return 0;
0 commit comments