Skip to content

Commit

Permalink
Fixing types
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Apr 27, 2022
1 parent 0f13ae4 commit 1de5fed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions smalltalksrc/VMMaker/SpurImageHeaderStruct.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ SpurImageHeaderStruct class >> instVarNamesAndTypesForTranslationDo: aBinaryBloc
"enumerate aBinaryBlock with the names and C type strings for the inst vars to include in a struct of this type."

<var: #dataSize type: #size_t>
<var: #desiredHeapSize type: #usqInt>
<var: #desiredHeapSize type: #size_t>
<var: #headerStart type: #squeakFileOffsetType>

self filteredInstVarNames do:
Expand All @@ -44,7 +44,7 @@ SpurImageHeaderStruct class >> instVarNamesAndTypesForTranslationDo: aBinaryBloc
value: ivn
value: (ivn caseOf: {
['dataSize'] -> [#'size_t'].
['desiredHeapSize'] -> [#'usqInt'].
['desiredHeapSize'] -> [#'size_t'].
['headerStart'] -> [#'squeakFileOffsetType'].
} otherwise: [ #'sqInt' ])]
]
Expand Down
2 changes: 2 additions & 0 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6060,6 +6060,7 @@ SpurMemoryManager >> imageFormatVersion [
{ #category : #snapshot }
SpurMemoryManager >> imageSizeToWrite [
"when asked, newSpace should be empty."
<returnTypeC: #'size_t'>
self assert: self newSpaceIsEmpty.
^segmentManager totalBytesInNonEmptySegments + self totalBytesInPermanentSpace.
]
Expand Down Expand Up @@ -12097,6 +12098,7 @@ SpurMemoryManager >> totalByteSizeOf: oop [
{ #category : #accessing }
SpurMemoryManager >> totalBytesInPermanentSpace [
<returnTypeC: #'size_t'>
^ permSpaceFreeStart - memoryMap permSpaceStart
]
Expand Down
4 changes: 4 additions & 0 deletions smalltalksrc/VMMaker/SpurSegmentManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,11 @@ SpurSegmentManager >> swizzleObj: objOop [

{ #category : #snapshot }
SpurSegmentManager >> totalBytesInNonEmptySegments [

<var: #total type: #'size_t'>

| total |

total := 0.
0 to: numSegments - 1 do:
[:i|
Expand Down
3 changes: 2 additions & 1 deletion smalltalksrc/VMMaker/StackInterpreter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10481,7 +10481,8 @@ StackInterpreter >> newHeader [
| header sizeToWrite |

<var: #header type: #'SpurImageHeaderStruct'>
<returnTypeC: #SpurImageHeaderStruct>
<returnTypeC: #SpurImageHeaderStruct>
<var: #sizeToWrite type: #'size_t'>

self simulationOnly: [ header := SpurImageHeaderStruct new ].

Expand Down

0 comments on commit 1de5fed

Please sign in to comment.