The Trunk: Kernel-eem.475.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-eem.475.mcz

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

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

Name: Kernel-eem.475
Author: eem
Time: 12 August 2010, 2:07:00.805 pm
UUID: 299acbbc-d538-4103-8ce2-29099b29d6b9
Ancestors: Kernel-eem.474

Fix CompiledMethod>>decompileWithTemps to live up to its name.

=============== Diff against Kernel-eem.474 ===============

Item was changed:
  ----- Method: CompiledMethod>>decompileWithTemps (in category 'decompiling') -----
  decompileWithTemps
  "Return the decompiled parse tree that represents self, but get the temp names
  by compiling the sourcecode..."
 
  |  class selector |
  class := self methodClass ifNil: [Object].
  selector := self selector ifNil: [self defaultSelector].
 
  (self fileIndex > 0 and: [(SourceFiles at: self fileIndex) isNil]) ifTrue: [
  "Emergency or no source file -- decompile without temp names "
  ^self decompile.
  ].
+ ^((self decompilerClass new withTempNames: self methodNode schematicTempNamesString)
- ^((self decompilerClass new withTempNames: self methodNode tempNames)
  decompile: selector
  in: class
  method: self)!