Skip to content

Commit

Permalink
CogVM source as per VMMaker.oscog-eem.2400
Browse files Browse the repository at this point in the history
Fix Sista build failing due to the lack of an export of objectBytesForSlots:.
  • Loading branch information
eliotmiranda committed May 31, 2018
1 parent a0474e8 commit 76814ae
Show file tree
Hide file tree
Showing 8 changed files with 98 additions and 24 deletions.
2 changes: 1 addition & 1 deletion spursista64src/vm/cogit.h
@@ -1,5 +1,5 @@
/* Automatically generated by
CCodeGenerator VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426
CCodeGenerator VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/


Expand Down
30 changes: 24 additions & 6 deletions spursista64src/vm/cointerp.c
@@ -1,9 +1,9 @@
/* Automatically generated by
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
from
CoInterpreter VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426
CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426 " __DATE__ ;
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4 " __DATE__ ;
char *__interpBuildInfo = __buildInfo;


Expand Down Expand Up @@ -924,6 +924,7 @@ extern sqInt isReallyYoungObject(sqInt objOop);
extern sqInt methodHeaderOf(sqInt methodObj);
extern usqInt needGCFlagAddress(void);
extern sqLong nullHeaderForMachineCodeMethod(void);
extern usqInt objectBytesForSlots(sqInt numSlots);
extern sqInt receiverTagBitsForMethod(sqInt aMethodObj);
extern usqInt scavengeThresholdAddress(void);
extern usqInt specialObjectsArrayAddress(void);
Expand Down Expand Up @@ -2573,7 +2574,7 @@ static signed char primitiveAccessorDepthTable[MaxPrimitiveIndex + 2 /* 577 */]
};
sqInt checkedPluginName;
char expensiveAsserts = 0;
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2397]";
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2400]";
sqInt minBackwardJumpCountForCompile = MinBackwardJumpCountForCompile /* 40 */;
volatile int sendTrace;

Expand Down Expand Up @@ -8094,7 +8095,7 @@ interpret(void)
sqInt context;
sqInt i;
sqInt initialIP;
sqInt newClosure;
usqInt newClosure;
usqInt newClosure1;
usqInt newObj;
sqInt numArgs;
Expand Down Expand Up @@ -16283,7 +16284,7 @@ interpret(void)
sqInt context;
sqInt i;
sqInt initialIP;
sqInt newClosure;
usqInt newClosure;
usqInt newClosure1;
usqInt newObj;
sqInt numArgs;
Expand Down Expand Up @@ -42835,6 +42836,23 @@ nullHeaderForMachineCodeMethod(void)
}


/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */
/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */

/* Spur64BitCoMemoryManager>>#objectBytesForSlots: */
usqInt
objectBytesForSlots(sqInt numSlots)
{
return (numSlots == 0
? 8 /* allocationUnit */ + BaseHeaderSize
: (((sqInt)((usqInt)(numSlots) << (shiftForWord())))) + ((numSlots >= (numSlotsMask())
? BaseHeaderSize + BaseHeaderSize
: BaseHeaderSize)));
}


/* Answer the tag bits for the receiver based on the method's methodClass, if
any.
*/
Expand Down
3 changes: 2 additions & 1 deletion spursista64src/vm/cointerp.h
@@ -1,5 +1,5 @@
/* Automatically generated by
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/


Expand Down Expand Up @@ -143,6 +143,7 @@ extern sqInt isReallyYoungObject(sqInt objOop);
extern sqInt methodHeaderOf(sqInt methodObj);
extern usqInt needGCFlagAddress(void);
extern sqLong nullHeaderForMachineCodeMethod(void);
extern usqInt objectBytesForSlots(sqInt numSlots);
extern sqInt receiverTagBitsForMethod(sqInt aMethodObj);
extern usqInt scavengeThresholdAddress(void);
extern usqInt specialObjectsArrayAddress(void);
Expand Down
30 changes: 24 additions & 6 deletions spursista64src/vm/gcc3x-cointerp.c
Expand Up @@ -2,11 +2,11 @@


/* Automatically generated by
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
from
CoInterpreter VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426
CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2397 uuid: b696a3c2-2443-4c71-94ef-04a4a9a8c426 " __DATE__ ;
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4 " __DATE__ ;
char *__interpBuildInfo = __buildInfo;


Expand Down Expand Up @@ -927,6 +927,7 @@ extern sqInt isReallyYoungObject(sqInt objOop);
extern sqInt methodHeaderOf(sqInt methodObj);
extern usqInt needGCFlagAddress(void);
extern sqLong nullHeaderForMachineCodeMethod(void);
extern usqInt objectBytesForSlots(sqInt numSlots);
extern sqInt receiverTagBitsForMethod(sqInt aMethodObj);
extern usqInt scavengeThresholdAddress(void);
extern usqInt specialObjectsArrayAddress(void);
Expand Down Expand Up @@ -2576,7 +2577,7 @@ static signed char primitiveAccessorDepthTable[MaxPrimitiveIndex + 2 /* 577 */]
};
sqInt checkedPluginName;
char expensiveAsserts = 0;
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2397]";
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2400]";
sqInt minBackwardJumpCountForCompile = MinBackwardJumpCountForCompile /* 40 */;
volatile int sendTrace;

Expand Down Expand Up @@ -8103,7 +8104,7 @@ interpret(void)
sqInt context;
sqInt i;
sqInt initialIP;
sqInt newClosure;
usqInt newClosure;
usqInt newClosure1;
usqInt newObj;
sqInt numArgs;
Expand Down Expand Up @@ -16292,7 +16293,7 @@ interpret(void)
sqInt context;
sqInt i;
sqInt initialIP;
sqInt newClosure;
usqInt newClosure;
usqInt newClosure1;
usqInt newObj;
sqInt numArgs;
Expand Down Expand Up @@ -42844,6 +42845,23 @@ nullHeaderForMachineCodeMethod(void)
}


/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */
/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */

/* Spur64BitCoMemoryManager>>#objectBytesForSlots: */
usqInt
objectBytesForSlots(sqInt numSlots)
{
return (numSlots == 0
? 8 /* allocationUnit */ + BaseHeaderSize
: (((sqInt)((usqInt)(numSlots) << (shiftForWord())))) + ((numSlots >= (numSlotsMask())
? BaseHeaderSize + BaseHeaderSize
: BaseHeaderSize)));
}


/* Answer the tag bits for the receiver based on the method's methodClass, if
any.
*/
Expand Down
2 changes: 1 addition & 1 deletion spursistasrc/vm/cogit.h
@@ -1,5 +1,5 @@
/* Automatically generated by
CCodeGenerator VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3
CCodeGenerator VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/


Expand Down
26 changes: 22 additions & 4 deletions spursistasrc/vm/cointerp.c
@@ -1,9 +1,9 @@
/* Automatically generated by
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
from
CoInterpreter VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3
CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3 " __DATE__ ;
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4 " __DATE__ ;
char *__interpBuildInfo = __buildInfo;


Expand Down Expand Up @@ -904,6 +904,7 @@ extern sqInt isReallyYoungObject(sqInt objOop);
extern sqInt methodHeaderOf(sqInt methodObj);
extern usqInt needGCFlagAddress(void);
extern sqLong nullHeaderForMachineCodeMethod(void);
extern usqInt objectBytesForSlots(sqInt numSlots);
extern sqInt receiverTagBitsForMethod(sqInt aMethodObj);
extern usqInt scavengeThresholdAddress(void);
extern sqInt withoutForwardingOnandwithsendToCogit(sqInt obj1, sqInt obj2, sqInt aBool, sqInt (*selector)(sqInt,sqInt,sqInt));
Expand Down Expand Up @@ -2552,7 +2553,7 @@ static signed char primitiveAccessorDepthTable[MaxPrimitiveIndex + 2 /* 577 */]
};
sqInt checkedPluginName;
char expensiveAsserts = 0;
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2399]";
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2400]";
sqInt minBackwardJumpCountForCompile = MinBackwardJumpCountForCompile /* 40 */;
volatile int sendTrace;

Expand Down Expand Up @@ -41325,6 +41326,23 @@ nullHeaderForMachineCodeMethod(void)
}


/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */
/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */

/* Spur32BitCoMemoryManager>>#objectBytesForSlots: */
usqInt
objectBytesForSlots(sqInt numSlots)
{
return (numSlots == 0
? 8 /* allocationUnit */ + BaseHeaderSize
: (((sqInt)((usqInt)((numSlots + (numSlots & 1))) << (shiftForWord())))) + ((numSlots >= (numSlotsMask())
? BaseHeaderSize + BaseHeaderSize
: BaseHeaderSize)));
}


/* Answer the tag bits for the receiver based on the method's methodClass, if
any.
*/
Expand Down
3 changes: 2 additions & 1 deletion spursistasrc/vm/cointerp.h
@@ -1,5 +1,5 @@
/* Automatically generated by
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/


Expand Down Expand Up @@ -142,6 +142,7 @@ extern sqInt isReallyYoungObject(sqInt objOop);
extern sqInt methodHeaderOf(sqInt methodObj);
extern usqInt needGCFlagAddress(void);
extern sqLong nullHeaderForMachineCodeMethod(void);
extern usqInt objectBytesForSlots(sqInt numSlots);
extern sqInt receiverTagBitsForMethod(sqInt aMethodObj);
extern usqInt scavengeThresholdAddress(void);
extern sqInt withoutForwardingOnandwithsendToCogit(sqInt obj1, sqInt obj2, sqInt aBool, sqInt (*selector)(sqInt,sqInt,sqInt));
Expand Down
26 changes: 22 additions & 4 deletions spursistasrc/vm/gcc3x-cointerp.c
Expand Up @@ -2,11 +2,11 @@


/* Automatically generated by
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3
CCodeGeneratorGlobalStructure VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
from
CoInterpreter VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3
CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4
*/
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2399 uuid: 39957c2e-eab8-452a-9a31-4f7dd241b6d3 " __DATE__ ;
static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.2400 uuid: 1ba9bd98-23e8-4045-9b36-21c45003b2c4 " __DATE__ ;
char *__interpBuildInfo = __buildInfo;


Expand Down Expand Up @@ -907,6 +907,7 @@ extern sqInt isReallyYoungObject(sqInt objOop);
extern sqInt methodHeaderOf(sqInt methodObj);
extern usqInt needGCFlagAddress(void);
extern sqLong nullHeaderForMachineCodeMethod(void);
extern usqInt objectBytesForSlots(sqInt numSlots);
extern sqInt receiverTagBitsForMethod(sqInt aMethodObj);
extern usqInt scavengeThresholdAddress(void);
extern sqInt withoutForwardingOnandwithsendToCogit(sqInt obj1, sqInt obj2, sqInt aBool, sqInt (*selector)(sqInt,sqInt,sqInt));
Expand Down Expand Up @@ -2555,7 +2556,7 @@ static signed char primitiveAccessorDepthTable[MaxPrimitiveIndex + 2 /* 577 */]
};
sqInt checkedPluginName;
char expensiveAsserts = 0;
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2399]";
const char *interpreterVersion = "Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2400]";
sqInt minBackwardJumpCountForCompile = MinBackwardJumpCountForCompile /* 40 */;
volatile int sendTrace;

Expand Down Expand Up @@ -41334,6 +41335,23 @@ nullHeaderForMachineCodeMethod(void)
}


/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */
/* Answer the total number of bytes in an object with the given
number of slots, including header and possible overflow size header. */

/* Spur32BitCoMemoryManager>>#objectBytesForSlots: */
usqInt
objectBytesForSlots(sqInt numSlots)
{
return (numSlots == 0
? 8 /* allocationUnit */ + BaseHeaderSize
: (((sqInt)((usqInt)((numSlots + (numSlots & 1))) << (shiftForWord())))) + ((numSlots >= (numSlotsMask())
? BaseHeaderSize + BaseHeaderSize
: BaseHeaderSize)));
}


/* Answer the tag bits for the receiver based on the method's methodClass, if
any.
*/
Expand Down

0 comments on commit 76814ae

Please sign in to comment.