Nicolas Cellier uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-nice.222.mcz
==================== Summary ====================
Name: Compiler-nice.222
Author: nice
Time: 20 November 2011, 9:56:07.638 pm
UUID: 32e53e56-3fa4-46f0-9f90-59f92b3a19ba
Ancestors: Compiler-ul.221
Correct a potential bug: there is no reason to initialize the Encoder literalStream with a ReadStream since it's always used as a WriteStream.
I don't have a test case for this, but Martin McClure encoutered some problems with this method in Pharo.
=============== Diff against Compiler-ul.221 ===============
Item was changed:
----- Method: Encoder>>temps:literals:class: (in category 'initialize-release') -----
temps: tempVars literals: lits class: cl
+ "Initialize this encoder for decompilation."
- "Decompile."
supered := false.
class := cl.
nTemps := tempVars size.
tempVars do: [:node | scopeTable at: node name put: node].
+ literalStream := WriteStream on: (Array new: lits size).
+ literalStream nextPutAll: lits.
- literalStream := ReadStream on: lits.
- literalStream position: lits size.
sourceRanges := Dictionary new: 32.
+ globalSourceRanges := OrderedCollection new: 32.!
- globalSourceRanges := OrderedCollection new: 32.
- !
Nicolas Cellier uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-nice.222.mcz
==================== Summary ====================
Name: Compiler-nice.222
Author: nice
Time: 20 November 2011, 9:56:07.638 pm
UUID: 32e53e56-3fa4-46f0-9f90-59f92b3a19ba
Ancestors: Compiler-ul.221
Correct a potential bug: there is no reason to initialize the Encoder literalStream with a ReadStream since it's always used as a WriteStream.
I don't have a test case for this, but Martin McClure encoutered some problems with this method in Pharo.
=============== Diff against Compiler-ul.221 ===============
Item was changed:
----- Method: Encoder>>temps:literals:class: (in category 'initialize-release') -----
temps: tempVars literals: lits class: cl
+ "Initialize this encoder for decompilation."
- "Decompile."
supered := false.
class := cl.
nTemps := tempVars size.
tempVars do: [:node | scopeTable at: node name put: node].
+ literalStream := WriteStream on: (Array new: lits size).
+ literalStream nextPutAll: lits.
- literalStream := ReadStream on: lits.
- literalStream position: lits size.
sourceRanges := Dictionary new: 32.
+ globalSourceRanges := OrderedCollection new: 32.!
- globalSourceRanges := OrderedCollection new: 32.
- !
Nicolas Cellier uploaded a new version of Compiler to project The Trunk:
http://source.squeak.org/trunk/Compiler-nice.222.mcz
==================== Summary ====================
Name: Compiler-nice.222
Author: nice
Time: 20 November 2011, 9:56:07.638 pm
UUID: 32e53e56-3fa4-46f0-9f90-59f92b3a19ba
Ancestors: Compiler-ul.221
Correct a potential bug: there is no reason to initialize the Encoder literalStream with a ReadStream since it's always used as a WriteStream.
I don't have a test case for this, but Martin McClure encoutered some problems with this method in Pharo.
=============== Diff against Compiler-ul.221 ===============
Item was changed:
----- Method: Encoder>>temps:literals:class: (in category 'initialize-release') -----
temps: tempVars literals: lits class: cl
+ "Initialize this encoder for decompilation."
- "Decompile."
supered := false.
class := cl.
nTemps := tempVars size.
tempVars do: [:node | scopeTable at: node name put: node].
+ literalStream := WriteStream on: (Array new: lits size).
+ literalStream nextPutAll: lits.
- literalStream := ReadStream on: lits.
- literalStream position: lits size.
sourceRanges := Dictionary new: 32.
+ globalSourceRanges := OrderedCollection new: 32.!
- globalSourceRanges := OrderedCollection new: 32.
- !
Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-bf.487.mcz
==================== Summary ====================
Name: Monticello-bf.487
Author: bf
Time: 20 November 2011, 7:07:40.339 pm
UUID: a2eb96da-e4c5-4acb-9058-ef1afb5d5de5
Ancestors: Monticello-bf.486
Fix for MCSubDirectoryRepository by NISHIHARA Satoshi.
=============== Diff against Monticello-bf.486 ===============
Item was changed:
----- Method: MCSubDirectoryRepository>>allFileNames (in category 'enumeration') -----
allFileNames
"sorting {entry. dirName. name}"
| sorted |
sorted := SortedCollection sortBlock: [:a :b |
a first modificationTime >= b first modificationTime ].
self allDirectories
do: [:dir | dir entries
do: [:ent | ent isDirectory
ifFalse: [sorted add: {ent. dir fullName. ent name}]]].
^ sorted
+ collect: [:ea | ea third asMCVersionName]!
- collect: [:ea | ea third ]!
Bert Freudenberg uploaded a new version of Monticello to project The Trunk:
http://source.squeak.org/trunk/Monticello-bf.487.mcz
==================== Summary ====================
Name: Monticello-bf.487
Author: bf
Time: 20 November 2011, 7:07:40.339 pm
UUID: a2eb96da-e4c5-4acb-9058-ef1afb5d5de5
Ancestors: Monticello-bf.486
Fix for MCSubDirectoryRepository by NISHIHARA Satoshi.
=============== Diff against Monticello-bf.486 ===============
Item was changed:
----- Method: MCSubDirectoryRepository>>allFileNames (in category 'enumeration') -----
allFileNames
"sorting {entry. dirName. name}"
| sorted |
sorted := SortedCollection sortBlock: [:a :b |
a first modificationTime >= b first modificationTime ].
self allDirectories
do: [:dir | dir entries
do: [:ent | ent isDirectory
ifFalse: [sorted add: {ent. dir fullName. ent name}]]].
^ sorted
+ collect: [:ea | ea third asMCVersionName]!
- collect: [:ea | ea third ]!