[Vm-dev] VM Maker: VMMaker.oscog-cb.1268.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Apr 28 14:22:05 UTC 2015
ClementBera uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-cb.1268.mcz
==================== Summary ====================
Name: VMMaker.oscog-cb.1268
Author: cb
Time: 28 April 2015, 4:20:16.748 pm
UUID: 3d3bd6a7-9121-4682-a388-0037d1513a0a
Ancestors: VMMaker.oscog-cb.1267
changed the return type to usqint based on Eliot's advises
=============== Diff against VMMaker.oscog-cb.1267 ===============
Item was changed:
----- Method: CogIA32Compiler>>jumpTargetPCAt: (in category 'disassembly') -----
jumpTargetPCAt: pc
+ <returnTypeC: #usqInt>
- <returnTypeC: #sqInt>
| size byte offset |
size := self instructionSizeAt: pc.
size = 2
ifTrue:
[byte := objectMemory byteAt: pc + 1.
offset := (byte bitAnd: 16r80) = 0 ifTrue: [byte] ifFalse: [byte - 256]]
ifFalse:
[byte := objectMemory byteAt: pc + size - 1.
offset := (byte bitAnd: 16r80) = 0 ifTrue: [byte] ifFalse: [byte - 256].
offset := offset << 8 + (objectMemory byteAt: pc + size - 2).
offset := offset << 8 + (objectMemory byteAt: pc + size - 3).
offset := offset << 8 + (objectMemory byteAt: pc + size - 4)].
^pc + size + offset!
Item was changed:
----- Method: SistaStackToRegisterMappingCogit>>getJumpTargetPCAt: (in category 'method introspection') -----
getJumpTargetPCAt: pc
<api>
- <returnTypeC: #sqInt>
^backEnd jumpTargetPCAt: pc!
More information about the Vm-dev
mailing list