The Trunk: Kernel-cmm.494.mcz

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

The Trunk: Kernel-cmm.494.mcz

commits-2
Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.494.mcz

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

Name: Kernel-cmm.494
Author: cmm
Time: 19 September 2010, 4:47:17.67 pm
UUID: 4cf3f377-153b-440b-a59b-5474949b3069
Ancestors: Kernel-klc.493

Factored common CompiledMethod signature printing behavior.

=============== Diff against Kernel-klc.493 ===============

Item was changed:
  ----- Method: CompiledMethod>>printOn: (in category 'printing') -----
  printOn: aStream
  "Overrides method inherited from the byte arrayed collection."
+ aStream nextPut: $(.
+ self printSignatureOn: aStream.
+ aStream space; nextPut: $".
+ self printNameOn: aStream.
+ aStream nextPut: $(;
+ print: self identityHash;
+ nextPut: $);
+ nextPut: $";
+ nextPut: $)!
-
- aStream nextPut: $(; print: self methodClass; nextPutAll: '>>'; nextPutAll: self selector storeString; space; nextPut: $".
- self printNameOn: aStream.
- aStream nextPut: $(; print: self identityHash; nextPut: $); nextPut: $"; nextPut: $)!

Item was added:
+ ----- Method: CompiledMethod>>printSignatureOn: (in category 'printing') -----
+ printSignatureOn: aStream
+ "Print a string that can be used to access the currently installed method."
+ aStream print: self methodClass;
+ nextPutAll: '>>';
+ nextPutAll: self selector storeString!

Item was added:
+ ----- Method: CompiledMethod>>signature (in category 'printing') -----
+ signature
+ ^ String streamContents: [ : stream | self printSignatureOn: stream ]!