Skip to content

Commit

Permalink
Fixing Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Mar 18, 2022
1 parent ff5ddab commit d63451a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Class {
'machineSimulator',
'send1TrampolineAddress',
'send2TrampolineAddress',
'send3TrampolineAddress'
'send3TrampolineAddress',
'initialAddress'
],
#pools : [
'CogAbstractRegisters',
Expand Down Expand Up @@ -710,8 +711,6 @@ VMSimpleStackBasedCogitAbstractTest >> sentSelector: anObject [
VMSimpleStackBasedCogitAbstractTest >> setUp [
super setUp.

initialAddress := environmentBuilder memoryInitialAddress.

cogit := self newJitCompiler.
memory coInterpreter cogit: cogit.
memory cogit: cogit.
Expand All @@ -727,6 +726,9 @@ VMSimpleStackBasedCogitAbstractTest >> setUp [

cogit setStackAlignment: 16 expectedSPOffset: 0 expectedFPOffset: 0.
cogit initializeBackend.

initialAddress := environmentBuilder memoryInitialAddress.

cogit methodZone manageFrom: initialAddress to: initialAddress + self initialCodeSize.
cogit methodZoneBase: initialAddress.
cogit minCallAddress: initialAddress.
Expand All @@ -737,7 +739,7 @@ VMSimpleStackBasedCogitAbstractTest >> setUp [
machineSimulator := cogit processor machineSimulator.

cogit generateStackPointerCapture.
cogit methodZone manageFrom: cogit cogCodeBase to: initialAddress + self initialCodeSize.
cogit methodZone manageFrom: cogit cogCodeBase to: environmentBuilder memoryInitialAddress + self initialCodeSize.

memory coInterpreter numStackPages: 8.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ VMSimpleStackBasedCogitMegamorphicPICTest >> setUp [
self setUpCogMethodEntry.

memory coInterpreter
moveMethodCacheToMemoryAt: initialAddress "+ The guard page? memory cogCodeBase" + self initialCodeSize + environmentBuilder stackSpaceSize.
moveMethodCacheToMemoryAt: environmentBuilder memoryInitialAddress "+ The guard page? memory cogCodeBase" + self initialCodeSize + environmentBuilder stackSpaceSize.
specialSelectorsArray := self newOldSpaceObjectWithSlots: 2.
memory coInterpreter
specialSelectorArray: specialSelectorsArray;
Expand Down

0 comments on commit d63451a

Please sign in to comment.