1
1
/* Automatically generated by
2
- CCodeGeneratorGlobalStructure VMMaker.oscog-eem.3349 uuid: 09001547-129a-4b6b-9fed-ccdd6790c8f4
2
+ CCodeGeneratorGlobalStructure VMMaker.oscog-eem.3350 uuid: b14d789f-780b-49f2-91aa-d50085ca62e6
3
3
from
4
- CoInterpreter VMMaker.oscog-eem.3349 uuid: 09001547-129a-4b6b-9fed-ccdd6790c8f4
4
+ CoInterpreter VMMaker.oscog-eem.3350 uuid: b14d789f-780b-49f2-91aa-d50085ca62e6
5
5
*/
6
- static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.3349 uuid: 09001547-129a-4b6b-9fed-ccdd6790c8f4 " __DATE__ ;
6
+ static char __buildInfo[] = "CoInterpreter VMMaker.oscog-eem.3350 uuid: b14d789f-780b-49f2-91aa-d50085ca62e6 " __DATE__ ;
7
7
char *__interpBuildInfo = __buildInfo;
8
8
9
9
@@ -2027,7 +2027,7 @@ static signed short primitiveMetadataTable[MaxPrimitiveIndex + 2 /* 584 */] = {
2027
2027
/*78*/ 0, 0,
2028
2028
/*80*/ -256,-256,-256, 4, 4, 0, 0x100, 0, 0x200,-256,-256, 0, 0, 0, 0x100,-256, 0,-256,
2029
2029
/*98*/ 0, 0,
2030
- /*100*/ 260, 0x200, 0x200 , 0x200,-256, 513,-256,-256,-256,-256, 0, 0x100, 0, 0,-256,
2030
+ /*100*/ 260, 0x200, 0x100 , 0x200,-256, 513,-256,-256,-256,-256, 0, 0x100, 0, 0,-256,
2031
2031
/*115*/ 0x100, 0, 12, 260, 0,
2032
2032
/*120*/ 524, 0x100,-256,-256, 1, 0, 0, 0, 0,-255,-256,-256, 0, 0, 0,-256, 0,-256,-256,
2033
2033
/*139*/ 0,
@@ -2701,7 +2701,7 @@ sqInt debugCallbackReturns;
2701
2701
sqInt suppressHeartbeatFlag;
2702
2702
sqInt cannotDeferDisplayUpdates;
2703
2703
sqInt checkedPluginName;
2704
- const char *interpreterVersion = "Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.3349 ]";
2704
+ const char *interpreterVersion = "Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.3350 ]";
2705
2705
sqInt minBackwardJumpCountForCompile = MinBackwardJumpCountForCompile /* 40 */;
2706
2706
char expensiveAsserts = 0;
2707
2707
int (*showSurfaceFn)(sqIntptr_t, int, int, int, int);
@@ -38971,7 +38971,7 @@ mnuMethodOrNilFor(sqInt rcvr)
38971
38971
{ DECL_MAYBE_SQ_GLOBAL_STRUCT
38972
38972
sqInt currentClass;
38973
38973
sqInt dictionary;
38974
- sqInt index;
38974
+ usqInt index;
38975
38975
usqInt length;
38976
38976
sqInt mask;
38977
38977
sqInt methodArray;
@@ -39020,7 +39020,7 @@ mnuMethodOrNilFor(sqInt rcvr)
39020
39020
wrapAround = 0;
39021
39021
while (1) {
39022
39022
/* begin fetchPointer:ofObject: */
39023
- nextSelector = longAt((dictionary + BaseHeaderSize) + (((sqInt)((usqInt)( index) << (shiftForWord()) ))));
39023
+ nextSelector = longAt((dictionary + BaseHeaderSize) + (index << (shiftForWord())));
39024
39024
if (nextSelector == GIV(nilObj)) {
39025
39025
mnuMethod = null;
39026
39026
goto l11;
@@ -39038,7 +39038,7 @@ mnuMethodOrNilFor(sqInt rcvr)
39038
39038
}
39039
39039
methodArray = objOop;
39040
39040
/* begin followField:ofObject: */
39041
- objOop1 = longAt((methodArray + BaseHeaderSize) + (((sqInt)((usqInt)(( index - SelectorStart)) << (shiftForWord()) ))));
39041
+ objOop1 = longAt((methodArray + BaseHeaderSize) + ((index - SelectorStart) << (shiftForWord())));
39042
39042
if (((!(objOop1 & (tagMask()))))
39043
39043
&& ((!((longAt(objOop1)) & ((classIndexMask()) - (isForwardedObjectClassIndexPun())))))) {
39044
39044
objOop1 = fixFollowedFieldofObjectwithInitialValue(index - SelectorStart, methodArray, objOop1);
@@ -40237,7 +40237,7 @@ printFrameWithSP(char *theFP, char *theSP)
40237
40237
usqInt index;
40238
40238
sqInt methodField;
40239
40239
usqInt numArgs;
40240
- sqInt numTemps;
40240
+ usqInt numTemps;
40241
40241
char *rcvrAddress;
40242
40242
sqInt rcvrOrClosure;
40243
40243
CogBlockMethod * self_in_cmHomeMethod;
@@ -53239,7 +53239,7 @@ primitiveInvokeObjectAsMethod(void)
53239
53239
{ DECL_MAYBE_SQ_GLOBAL_STRUCT
53240
53240
sqInt i;
53241
53241
sqInt lookupClassTag;
53242
- usqInt runArgs;
53242
+ sqInt runArgs;
53243
53243
sqInt runReceiver;
53244
53244
char *sp;
53245
53245
char *sp1;
@@ -81137,7 +81137,7 @@ prepareForSnapshot(void)
81137
81137
sqInt limit;
81138
81138
sqInt newEndOfMemory;
81139
81139
sqInt next;
81140
- sqInt node;
81140
+ usqInt node;
81141
81141
SpurSegmentInfo *seg;
81142
81142
sqInt smallChild;
81143
81143
sqInt treeNode;
@@ -82927,8 +82927,9 @@ defaultNumStackPages(void)
82927
82927
82928
82928
/* Release the VM to other threads and answer the current thread's index.
82929
82929
Currently valid flags for the non-threaded VM are:
82930
+ DisownVMForThreading - allow the VM to thread-switch; this is ignored
82930
82931
DisownVMLockOutFullGC - prevent fullGCs while this thread disowns the VM
82931
- DisownVMForFFICall - informs the VM that it is entering an FFI call
82932
+ DisownVMForFFICall - informs the VM that it is entering an FFI call
82932
82933
82933
82934
This is the entry-point for plugins and primitives that wish to release
82934
82935
the VM while
@@ -82944,6 +82945,9 @@ disownVM(sqInt flags)
82944
82945
sqInt top;
82945
82946
82946
82947
assert(GIV(primFailCode) == 0);
82948
+ if (flags == DisownVMForThreading) {
82949
+ return 0;
82950
+ }
82947
82951
assert((isImmediate(flags)
82948
82952
? ((flags & 1))
82949
82953
&& (((((flags >> 1)) >= 0) && (((flags >> 1)) <= (argumentCountOfMethodHeader(-1)))))
@@ -87217,7 +87221,7 @@ lookupSelectorinClass(sqInt selector, sqInt class)
87217
87221
{ DECL_MAYBE_SQ_GLOBAL_STRUCT
87218
87222
sqInt currentClass;
87219
87223
sqInt dictionary;
87220
- sqInt index;
87224
+ usqInt index;
87221
87225
usqInt length;
87222
87226
sqInt mask;
87223
87227
sqInt meth;
@@ -87261,7 +87265,7 @@ lookupSelectorinClass(sqInt selector, sqInt class)
87261
87265
wrapAround = 0;
87262
87266
while (1) {
87263
87267
/* begin fetchPointer:ofObject: */
87264
- nextSelector = longAt((dictionary + BaseHeaderSize) + (((sqInt)((usqInt)( index) << (shiftForWord()) ))));
87268
+ nextSelector = longAt((dictionary + BaseHeaderSize) + (index << (shiftForWord())));
87265
87269
if (nextSelector == GIV(nilObj)) {
87266
87270
meth = null;
87267
87271
goto l8;
@@ -87279,7 +87283,7 @@ lookupSelectorinClass(sqInt selector, sqInt class)
87279
87283
}
87280
87284
methodArray = objOop2;
87281
87285
/* begin followField:ofObject: */
87282
- objOop1 = longAt((methodArray + BaseHeaderSize) + (((sqInt)((usqInt)(( index - SelectorStart)) << (shiftForWord()) ))));
87286
+ objOop1 = longAt((methodArray + BaseHeaderSize) + ((index - SelectorStart) << (shiftForWord())));
87283
87287
if (((!(objOop1 & (tagMask()))))
87284
87288
&& ((!((longAt(objOop1)) & ((classIndexMask()) - (isForwardedObjectClassIndexPun())))))) {
87285
87289
objOop1 = fixFollowedFieldofObjectwithInitialValue(index - SelectorStart, methodArray, objOop1);
0 commit comments