The Trunk: System-eem.959.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

The Trunk: System-eem.959.mcz

commits-2
Eliot Miranda uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-eem.959.mcz

==================== Summary ====================

Name: System-eem.959
Author: eem
Time: 8 July 2017, 9:10:09.661059 pm
UUID: a508cce3-7fe1-4a59-8b1c-18c18bd1e91c
Ancestors: System-bf.958

Adapt the NativeImageSegment loading code to the new loadSegmentFrom:outPointers: API.

=============== Diff against System-bf.958 ===============

Item was changed:
  ----- Method: NativeImageSegment>>loadSegmentFrom:outPointers: (in category 'read/write segment primitives') -----
  loadSegmentFrom: segmentWordArray outPointers: outPointerArray
+ "Load segmentWordArray into the memory.  Adapt the primitive to the new API, which is to answer the array of loaded objects, the first of which should be the array of roots.  The primitive will install a binary image segment and return as its value the array
- "This primitive will install a binary image segment and return as its value the array
  of roots of the tree of objects represented.  Upon successful completion, the
+ wordArray will have been becomed into anArray of the loaded objects.  So simply answer the segmentWordArray which will have becommed ."
- wordArray will have been becomed into anArray of the loaded objects.  If this
- primitive should fail, it will have destroyed the contents of the segment wordArray."
 
+ ^(self primitiveLoadSegmentFrom: segmentWordArray outPointers: outPointerArray)
+ ifNil: [self error: 'segment load failed']
+ ifNotNil: [segmentWordArray]!
- <primitive: 99 error: ec> "successful completion returns the array of roots"
- ^nil "failure returns nil"!

Item was added:
+ ----- Method: NativeImageSegment>>primitiveLoadSegmentFrom:outPointers: (in category 'read/write segment primitives') -----
+ primitiveLoadSegmentFrom: segmentWordArray outPointers: outPointerArray
+ "This primitive will install a binary image segment and return as its value the array
+ of roots of the tree of objects represented.  Upon successful completion, the
+ wordArray will have been becomed into anArray of the loaded objects.  If this
+ primitive should fail, it will have destroyed the contents of the segment wordArray."
+
+ <primitive: 99 error: ec> "successful completion returns the array of roots"
+ ^nil "failure returns nil"!


Loading...