nitc :: MClass :: update_positions
offset_attributes
The offset of the block of attributes of this classoffset_methods
The offset of the block of methods of this class
# Update the positions of this class
# * `offset_attributes` The offset of the block of attributes of this class
# * `offset_methods` The offset of the block of methods of this class
private fun update_positions(offset_attributes: Int, offset_methods: Int)
do
# Recopy the position tables of the prefix in `self`
for key, value in prefix.positions_methods do
positions_methods[key] = value
end
for key, value in prefix.positions_attributes do
positions_attributes[key] = value
end
# Save the offsets of self class
position_attributes = offset_attributes
position_methods = offset_methods
end
src/vm/virtual_machine.nit:544,2--561,4