-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update] compatibility layer to follow changes
- Loading branch information
Pierre Misse-Chanabier
committed
Sep 26, 2023
1 parent
9d11cbf
commit ebcc43c
Showing
7 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
Polyphemus-Memory.package/SpurMemoryManager.extension/instance/endOfMemory.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*Polyphemus-Memory | ||
endOfMemory | ||
^ memoryMap oldSpaceEnd |
3 changes: 3 additions & 0 deletions
3
Polyphemus-Memory.package/SpurMemoryManager.extension/instance/newSpaceStart.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*Polyphemus-Memory | ||
newSpaceStart | ||
^ memoryMap newSpaceStart |
6 changes: 3 additions & 3 deletions
6
Polyphemus-Object.package/AbstractReifiedMemory.class/instance/snapshotMemory.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
updating | ||
snapshotMemory | ||
"This size is for an oldSpace we take the end - the beginning then we compress by worsize because every address is wordSize aligned then by 8 because we remove the 3 bits tag" | ||
| arraySize | | ||
arraySize := (memory endOfMemory - memory newSpaceStart) >> 3. | ||
objectsArray := Array new: arraySize. | ||
"| arraySize | | ||
arraySize := (memory endOfMemory - memory newSpaceStart) >> 3." | ||
objectsArray := Array new": arraySize". | ||
self initializeObjectsFromMemory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Polyphemus-Tests.package/VMSpurMemoryManagerTest.extension/instance/newInterpreter.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
*Polyphemus-Tests | ||
newInterpreter | ||
memory := self newMemory. | ||
|
||
self interpreterClass | ||
initializeWithOptions: | ||
{#BytesPerWord. | ||
self wordSize. | ||
#ObjectMemory. | ||
memory class name} | ||
objectMemoryClass: memory class. | ||
|
||
^ self interpreterClass basicNew | ||
objectMemory: memory; | ||
basicInitialize |
6 changes: 6 additions & 0 deletions
6
Polyphemus-Tests.package/VMSpurMemoryManagerTest.extension/instance/newMemory.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*Polyphemus-Tests | ||
newMemory | ||
|
||
^ self wordSize = 4 | ||
ifTrue: [ Spur32BitMemoryManager simulatorClass new ] | ||
ifFalse: [ Spur64BitMemoryManager simulatorClass new ] |