|
1 | 1 | /* Automatically generated by |
2 | | - CCodeGenerator VMMaker.oscog-eem.3535 uuid: 5d68cdd6-e146-48df-836a-2394c8ae29f0 |
| 2 | + CCodeGenerator VMMaker.oscog-eem.3546 uuid: c0fdd7da-d7a5-4bce-8e52-40f2876838bc |
3 | 3 | (Compiler-eem.514) |
4 | 4 | from |
5 | | - StackToRegisterMappingCogit VMMaker.oscog-eem.3535 uuid: 5d68cdd6-e146-48df-836a-2394c8ae29f0 |
| 5 | + StackToRegisterMappingCogit VMMaker.oscog-eem.3546 uuid: c0fdd7da-d7a5-4bce-8e52-40f2876838bc |
6 | 6 | */ |
7 | | -static char __buildInfo[] = "StackToRegisterMappingCogit VMMaker.oscog-eem.3535 uuid: 5d68cdd6-e146-48df-836a-2394c8ae29f0 " __DATE__ ; |
| 7 | +static char __buildInfo[] = "StackToRegisterMappingCogit VMMaker.oscog-eem.3546 uuid: c0fdd7da-d7a5-4bce-8e52-40f2876838bc " __DATE__ ; |
8 | 8 | char *__cogitBuildInfo = __buildInfo; |
9 | 9 |
|
10 | 10 |
|
@@ -1004,7 +1004,7 @@ static sqInt genPrimitiveStringAtPut(void); |
1004 | 1004 | static NoDbgRegParms sqInt genRemoveSmallIntegerTagsInScratchReg(sqInt scratchReg); |
1005 | 1005 | static NoDbgRegParms sqInt genShiftAwaySmallIntegerTagsInScratchReg(sqInt scratchReg); |
1006 | 1006 | static NoDbgRegParms sqInt getLiteralCountOfplusOneinBytesintoscratch(sqInt methodReg, sqInt plusOne, sqInt inBytes, sqInt litCountReg, sqInt scratchReg); |
1007 | | -static NoDbgRegParms sqInt inlineCacheTagForInstance(sqInt oop); |
| 1007 | +static NoDbgRegParms usqInt inlineCacheTagForInstance(sqInt oop); |
1008 | 1008 | static NoDbgRegParms AbstractInstruction * jumpNotSmallIntegerUnsignedValueInRegister(sqInt reg); |
1009 | 1009 | static NoDbgRegParms sqInt markAndTraceCacheTagLiteralinatpc(sqInt literal, CogMethod *cogMethodOrNil, usqInt address); |
1010 | 1010 | static sqInt numSmallIntegerBits(void); |
@@ -8516,7 +8516,7 @@ callCogCodePopReceiverAndClassRegs(void) |
8516 | 8516 | static NoDbgRegParms sqInt |
8517 | 8517 | ceCPICMissreceiver(CogMethod *cPIC, sqInt receiver) |
8518 | 8518 | { |
8519 | | - sqInt cacheTag; |
| 8519 | + usqInt cacheTag; |
8520 | 8520 | sqInt errorSelectorOrNil; |
8521 | 8521 | sqInt methodOrSelectorIndex; |
8522 | 8522 | sqInt newTargetMethodOrNil; |
@@ -8651,7 +8651,7 @@ ceMalloc(size_t size) |
8651 | 8651 | static NoDbgRegParms sqInt |
8652 | 8652 | ceSICMiss(sqInt receiver) |
8653 | 8653 | { |
8654 | | - sqInt cacheTag; |
| 8654 | + usqInt cacheTag; |
8655 | 8655 | sqInt entryPoint; |
8656 | 8656 | sqInt errorSelectorOrNil; |
8657 | 8657 | sqInt extent; |
@@ -12565,7 +12565,6 @@ generateCogFullBlock(void) |
12565 | 12565 | assert(((startAddress + headerSize) + codeSize) == result); |
12566 | 12566 | padIfPossibleWithStopsFromto(backEnd, result, ((startAddress + totalSize) - mapSize) - 1); |
12567 | 12567 | generateMapAtstart((startAddress + totalSize) - 1, startAddress + cbNoSwitchEntryOffset); |
12568 | | - flag("TOCHECK"); |
12569 | 12568 | method = ((CogMethod *) ((((usqInt)startAddress)) + codeToDataDelta)); |
12570 | 12569 | fillInMethodHeadersizeselector(method, totalSize, nilObject()); |
12571 | 12570 | (method->cpicHasMNUCaseOrCMIsFullBlock = 1); |
@@ -13883,7 +13882,7 @@ void |
13883 | 13882 | linkSendAtintooffsetreceiver(sqInt callSiteReturnAddress, CogMethod *sendingMethod, CogMethod *targetMethod, sqInt theEntryOffset, sqInt receiver) |
13884 | 13883 | { |
13885 | 13884 | sqInt extent; |
13886 | | - sqInt inlineCacheTag; |
| 13885 | + usqInt inlineCacheTag; |
13887 | 13886 |
|
13888 | 13887 | assert((theEntryOffset == cmEntryOffset) |
13889 | 13888 | || (theEntryOffset == cmNoCheckEntryOffset)); |
@@ -19971,7 +19970,6 @@ genGetInlineCacheClassTagFromintoforEntry(sqInt sourceReg, sqInt destReg, sqInt |
19971 | 19970 |
|
19972 | 19971 | /* JumpNonZero: */ |
19973 | 19972 | genConditionalBranchoperand(JumpNonZero, ((sqInt)immLabel)); |
19974 | | - flag("endianness"); |
19975 | 19973 |
|
19976 | 19974 | /* Get least significant half of header word in destReg */ |
19977 | 19975 |
|
@@ -20005,7 +20003,6 @@ genGetInlineCacheClassTagFromintoforEntry(sqInt sourceReg, sqInt destReg, sqInt |
20005 | 20003 | jumpCompare = genoperand(Jump, ((sqInt)0)); |
20006 | 20004 |
|
20007 | 20005 | /* Get least significant half of header word in destReg */ |
20008 | | - flag("endianness"); |
20009 | 20006 | jmpTarget(jumpNotImm, gMoveMwrR(0, sourceReg, destReg)); |
20010 | 20007 | jmpTarget(jumpCompare, gAndCqR(classIndexMask(), destReg)); |
20011 | 20008 | } |
@@ -22881,7 +22878,7 @@ getLiteralCountOfplusOneinBytesintoscratch(sqInt methodReg, sqInt plusOne, sqInt |
22881 | 22878 | c.f. getInlineCacheClassTagFrom:into: & inlineCacheTagForClass: */ |
22882 | 22879 |
|
22883 | 22880 | /* CogObjectRepresentationFor32BitSpur>>#inlineCacheTagForInstance: */ |
22884 | | -static NoDbgRegParms sqInt |
| 22881 | +static NoDbgRegParms usqInt |
22885 | 22882 | inlineCacheTagForInstance(sqInt oop) |
22886 | 22883 | { |
22887 | 22884 | return (isImmediate(oop) |
@@ -23664,7 +23661,6 @@ genGetActiveContextLargeinBlock(sqInt isLarge, sqInt isInBlock) |
23664 | 23661 | ? LargeContextSlots |
23665 | 23662 | : SmallContextSlots); |
23666 | 23663 | header = headerForSlotsformatclassIndex(slotSize, indexablePointersFormat(), ClassMethodContextCompactIndex); |
23667 | | - flag("endianness"); |
23668 | 23664 |
|
23669 | 23665 | /* #MoveAw:R: #gen:literal:operand: */ |
23670 | 23666 | checkLiteralforInstruction(freeStartAddress(), genoperandoperand(MoveAwR, freeStartAddress(), ReceiverResultReg)); |
@@ -24104,8 +24100,6 @@ genGetBitsofFormatByteOfinto(sqInt mask, sqInt sourceReg, sqInt destReg) |
24104 | 24100 | { |
24105 | 24101 | AbstractInstruction *anInstruction; |
24106 | 24102 |
|
24107 | | - flag("endianness"); |
24108 | | - |
24109 | 24103 | /* begin MoveMb:r:R: */ |
24110 | 24104 | /* begin gen:quickConstant:operand:operand: */ |
24111 | 24105 | anInstruction = genoperandoperandoperand(MoveMbrR, 3, sourceReg, destReg); |
@@ -24237,7 +24231,6 @@ genGetClassObjectOfintoscratchRegmayBeAForwarder(sqInt instReg, sqInt destReg, s |
24237 | 24231 | (anInstruction->dependent = locateLiteral(quickConstant)); |
24238 | 24232 | } |
24239 | 24233 | jumpIsImm = genConditionalBranchoperand(JumpNonZero, ((sqInt)0)); |
24240 | | - flag("endianness"); |
24241 | 24234 |
|
24242 | 24235 | /* Get least significant half of header word in destReg */ |
24243 | 24236 |
|
@@ -24361,8 +24354,6 @@ genGetFormatOfintoleastSignificantHalfOfBaseHeaderIntoScratch(sqInt sourceReg, s |
24361 | 24354 | sqInt quickConstant; |
24362 | 24355 |
|
24363 | 24356 | if (scratchRegOrNone == NoReg) { |
24364 | | - flag("endianness"); |
24365 | | - |
24366 | 24357 | /* begin MoveMb:r:R: */ |
24367 | 24358 | /* begin gen:quickConstant:operand:operand: */ |
24368 | 24359 | anInstruction = genoperandoperandoperand(MoveMbrR, 3, sourceReg, destReg); |
@@ -28696,7 +28687,6 @@ compileGetErrorCode(void) |
28696 | 28687 |
|
28697 | 28688 | /* #MoveAw:R: #gen:literal:operand: */ |
28698 | 28689 | checkLiteralforInstruction(primFailCodeAddress(), genoperandoperand(MoveAwR, primFailCodeAddress(), TempReg)); |
28699 | | - flag("ask concrete code gen if move sets condition codes?"); |
28700 | 28690 |
|
28701 | 28691 | /* begin CmpCq:R: */ |
28702 | 28692 | /* begin gen:quickConstant:operand: */ |
@@ -28859,7 +28849,6 @@ compileInterpreterPrimitiveflags(void (*primitiveRoutine)(void), sqInt flags) |
28859 | 28849 |
|
28860 | 28850 | /* #MoveAw:R: #gen:literal:operand: */ |
28861 | 28851 | checkLiteralforInstruction(primFailCodeAddress(), genoperandoperand(MoveAwR, primFailCodeAddress(), TempReg)); |
28862 | | - flag("ask concrete code gen if move sets condition codes?"); |
28863 | 28852 |
|
28864 | 28853 | /* begin CmpCq:R: */ |
28865 | 28854 | /* begin gen:quickConstant:operand: */ |
@@ -29232,7 +29221,6 @@ compileOpenPICnumArgs(sqInt selector, sqInt numArgs) |
29232 | 29221 | ((methodLabel->operands))[1] = 0; |
29233 | 29222 | compilePICAbort(numArgs); |
29234 | 29223 | entry = genGetClassTagOfintoscratchReg(ReceiverResultReg, SendNumArgsReg, TempReg); |
29235 | | - flag("lookupInMethodCacheSel:classTag:"); |
29236 | 29224 | cacheBaseReg = NoReg; |
29237 | 29225 |
|
29238 | 29226 | /* Do first of three probes. See CoInterpreter>>lookupInMethodCacheSel:classTag: */ |
@@ -30191,7 +30179,6 @@ genLookupForPerformNumArgs(sqInt numArgs) |
30191 | 30179 | sqInt offset; |
30192 | 30180 |
|
30193 | 30181 | genGetInlineCacheClassTagFromintoforEntry(ReceiverResultReg, SendNumArgsReg, 0); |
30194 | | - flag("lookupInMethodCacheSel:classTag:"); |
30195 | 30182 | cacheBaseReg = NoReg; |
30196 | 30183 |
|
30197 | 30184 | /* Do first of three probes. See CoInterpreter>>lookupInMethodCacheSel:classTag: */ |
@@ -30411,7 +30398,6 @@ genPrimReturnEnterCogCodeEnilopmart(sqInt profiling) |
30411 | 30398 |
|
30412 | 30399 | /* #MoveAw:R: #gen:literal:operand: */ |
30413 | 30400 | checkLiteralforInstruction(primFailCodeAddress(), genoperandoperand(MoveAwR, primFailCodeAddress(), TempReg)); |
30414 | | - flag("ask concrete code gen if move sets condition codes?"); |
30415 | 30401 |
|
30416 | 30402 | /* begin CmpCq:R: */ |
30417 | 30403 | /* begin gen:quickConstant:operand: */ |
@@ -31603,8 +31589,6 @@ allocateRegForStackEntryAtnotConflictingWith(sqInt index, sqInt regMask) |
31603 | 31589 | mask = registerMaskOrNone(stackEntry); |
31604 | 31590 | if ((mask != 0) |
31605 | 31591 | && ((!(mask & regMask)))) { |
31606 | | - flag("TODO"); |
31607 | | - |
31608 | 31592 | /* When one does pushDup on a SSRegister |
31609 | 31593 | followed by an operation reusing the register |
31610 | 31594 | but mutating the value of the register, then the value that was |
@@ -32152,7 +32136,6 @@ compileCogFullBlockMethod(sqInt numCopied) |
32152 | 32136 | labelCounter = 0; |
32153 | 32137 | /* end allocateOpcodes:bytecodes:ifFail: */ |
32154 | 32138 | l1: |
32155 | | - flag("TODO"); |
32156 | 32139 | if (((numBlocks = scanMethod())) < 0) { |
32157 | 32140 | return ((CogMethod *) numBlocks); |
32158 | 32141 | } |
@@ -32393,7 +32376,6 @@ static NoDbgRegParms void |
32393 | 32376 | compileFullBlockFramelessEntry(sqInt numCopied) |
32394 | 32377 | { |
32395 | 32378 | initSimStackForFramelessBlock(initialPC); |
32396 | | - flag("TODO"); |
32397 | 32379 | genLoadSlotsourceRegdestReg(FullClosureReceiverIndex, ReceiverResultReg, Arg0Reg); |
32398 | 32380 | genEnsureOopInRegNotForwardedscratchRegupdatingSlotin(Arg0Reg, TempReg, FullClosureReceiverIndex, ReceiverResultReg); |
32399 | 32381 |
|
@@ -32482,7 +32464,6 @@ compileFullBlockMethodFrameBuild(sqInt numCopied) |
32482 | 32464 |
|
32483 | 32465 | /* PushR: */ |
32484 | 32466 | genoperand(PushR, SendNumArgsReg); |
32485 | | - flag("TODO"); |
32486 | 32467 | genLoadSlotsourceRegdestReg(FullClosureReceiverIndex, ClassReg, Arg0Reg); |
32487 | 32468 | genEnsureOopInRegNotForwardedscratchRegupdatingSlotin(Arg0Reg, TempReg, FullClosureReceiverIndex, ReceiverResultReg); |
32488 | 32469 |
|
@@ -44885,7 +44866,6 @@ genPrimitivePerformWithArguments(void) |
44885 | 44866 | /* begin genLookupForPerformWithArguments */ |
44886 | 44867 | jumpImmArray = genJumpImmediate(Arg1Reg); |
44887 | 44868 | genGetInlineCacheClassTagFromintoforEntry(ReceiverResultReg, SendNumArgsReg, 0); |
44888 | | - flag("lookupInMethodCacheSel:classTag:"); |
44889 | 44869 | cacheBaseReg = NoReg; |
44890 | 44870 |
|
44891 | 44871 | /* Do first of three probes. See CoInterpreter>>lookupInMethodCacheSel:classTag: */ |
@@ -46709,7 +46689,6 @@ mapDeadDescriptorIfNeeded(BytecodeDescriptor *descriptor) |
46709 | 46689 | { |
46710 | 46690 | AbstractInstruction *abstractInstruction; |
46711 | 46691 |
|
46712 | | - flag("annotateInstruction"); |
46713 | 46692 | if (((descriptor->isMapped)) |
46714 | 46693 | || ((inBlock > 0) |
46715 | 46694 | && ((descriptor->isMappedInBlock)))) { |
|
0 commit comments