lists.squeakfoundation.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Packages
October 2014
----- 2024 -----
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
packages@lists.squeakfoundation.org
1 participants
165 discussions
Start a n
N
ew thread
The Trunk: Collections-ul.584.mcz
by commits@source.squeak.org
08 Oct '14
08 Oct '14
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.584.mcz
==================== Summary ==================== Name: Collections-ul.584 Author: ul Time: 8 October 2014, 12:27:20.538 pm UUID: 804f22d8-8350-4e41-b218-3ab57aa6a6cb Ancestors: Collections-nice.583 Character changes: - use the value instance variable instead of #asciiValue where possible - implemented #<= and #>= =============== Diff against Collections-nice.583 =============== Item was changed: ----- Method: Character>>< (in category 'comparing') ----- < aCharacter "Answer true if the receiver's value < aCharacter's value." + ^value < aCharacter asciiValue! - ^self asciiValue < aCharacter asciiValue! Item was added: + ----- Method: Character>><= (in category 'comparing') ----- + <= aCharacter + "Answer true if the receiver's value <= aCharacter's value." + + ^value <= aCharacter asciiValue! Item was changed: ----- Method: Character>>= (in category 'comparing') ----- = aCharacter ^self == aCharacter or: [ + aCharacter isCharacter and: [ aCharacter asciiValue = value ] ]! - aCharacter isCharacter and: [ self asciiValue = aCharacter asciiValue ] ]! Item was changed: ----- Method: Character>>> (in category 'comparing') ----- > aCharacter "Answer true if the receiver's value > aCharacter's value." + ^value > aCharacter asciiValue! - ^self asciiValue > aCharacter asciiValue! Item was added: + ----- Method: Character>>>= (in category 'comparing') ----- + >= aCharacter + "Answer true if the receiver's value >= aCharacter's value." + + ^value >= aCharacter asciiValue! Item was changed: ----- Method: Character>>codePoint (in category 'accessing') ----- codePoint "Return the encoding value of the receiver." #Fundmntl. + + ^value! - ^ self asciiValue! Item was changed: ----- Method: Character>>macToSqueak (in category 'converting') ----- macToSqueak "Convert the receiver from MacRoman to Squeak encoding" | asciiValue | value < 128 ifTrue: [^ self]. value > 255 ifTrue: [^ self]. asciiValue := #[ 196 197 199 201 209 214 220 225 224 226 228 227 229 231 233 232 "80-8F" 234 235 237 236 238 239 241 243 242 244 246 245 250 249 251 252 "90-9F" 134 176 162 163 167 149 182 223 174 169 153 180 168 128 198 216 "A0-AF" 129 177 138 141 165 181 142 143 144 154 157 170 186 158 230 248 "B0-BF" 191 161 172 166 131 173 178 171 187 133 160 192 195 213 140 156 "C0-CF" 150 151 147 148 145 146 247 179 255 159 185 164 139 155 188 189 "D0-DF" 135 183 130 132 137 194 202 193 203 200 205 206 207 204 211 212 "E0-EF" 190 210 218 219 217 208 136 152 175 215 221 222 184 240 253 254 ] "F0-FF" + at: value - 127. - at: self asciiValue - 127. ^ Character value: asciiValue.! Item was changed: ----- Method: Character>>to: (in category 'converting') ----- to: other "Answer with a collection in ascii order -- $a to: $z" + ^ (value to: other asciiValue) - ^ (self asciiValue to: other asciiValue) collect: [:ascii | Character value: ascii] as: String!
1
0
0
0
The Trunk: Collections-ul.584.mcz
by commits@source.squeak.org
08 Oct '14
08 Oct '14
Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.584.mcz
==================== Summary ==================== Name: Collections-ul.584 Author: ul Time: 8 October 2014, 12:27:20.538 pm UUID: 804f22d8-8350-4e41-b218-3ab57aa6a6cb Ancestors: Collections-nice.583 Character changes: - use the value instance variable instead of #asciiValue where possible - implemented #<= and #>= =============== Diff against Collections-nice.583 =============== Item was changed: ----- Method: Character>>< (in category 'comparing') ----- < aCharacter "Answer true if the receiver's value < aCharacter's value." + ^value < aCharacter asciiValue! - ^self asciiValue < aCharacter asciiValue! Item was added: + ----- Method: Character>><= (in category 'comparing') ----- + <= aCharacter + "Answer true if the receiver's value <= aCharacter's value." + + ^value <= aCharacter asciiValue! Item was changed: ----- Method: Character>>= (in category 'comparing') ----- = aCharacter ^self == aCharacter or: [ + aCharacter isCharacter and: [ aCharacter asciiValue = value ] ]! - aCharacter isCharacter and: [ self asciiValue = aCharacter asciiValue ] ]! Item was changed: ----- Method: Character>>> (in category 'comparing') ----- > aCharacter "Answer true if the receiver's value > aCharacter's value." + ^value > aCharacter asciiValue! - ^self asciiValue > aCharacter asciiValue! Item was added: + ----- Method: Character>>>= (in category 'comparing') ----- + >= aCharacter + "Answer true if the receiver's value >= aCharacter's value." + + ^value >= aCharacter asciiValue! Item was changed: ----- Method: Character>>codePoint (in category 'accessing') ----- codePoint "Return the encoding value of the receiver." #Fundmntl. + + ^value! - ^ self asciiValue! Item was changed: ----- Method: Character>>macToSqueak (in category 'converting') ----- macToSqueak "Convert the receiver from MacRoman to Squeak encoding" | asciiValue | value < 128 ifTrue: [^ self]. value > 255 ifTrue: [^ self]. asciiValue := #[ 196 197 199 201 209 214 220 225 224 226 228 227 229 231 233 232 "80-8F" 234 235 237 236 238 239 241 243 242 244 246 245 250 249 251 252 "90-9F" 134 176 162 163 167 149 182 223 174 169 153 180 168 128 198 216 "A0-AF" 129 177 138 141 165 181 142 143 144 154 157 170 186 158 230 248 "B0-BF" 191 161 172 166 131 173 178 171 187 133 160 192 195 213 140 156 "C0-CF" 150 151 147 148 145 146 247 179 255 159 185 164 139 155 188 189 "D0-DF" 135 183 130 132 137 194 202 193 203 200 205 206 207 204 211 212 "E0-EF" 190 210 218 219 217 208 136 152 175 215 221 222 184 240 253 254 ] "F0-FF" + at: value - 127. - at: self asciiValue - 127. ^ Character value: asciiValue.! Item was changed: ----- Method: Character>>to: (in category 'converting') ----- to: other "Answer with a collection in ascii order -- $a to: $z" + ^ (value to: other asciiValue) - ^ (self asciiValue to: other asciiValue) collect: [:ascii | Character value: ascii] as: String!
1
0
0
0
The Trunk: ST80Tools-eem.3.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of ST80Tools to project The Trunk:
http://source.squeak.org/trunk/ST80Tools-eem.3.mcz
==================== Summary ==================== Name: ST80Tools-eem.3 Author: eem Time: 6 October 2014, 4:45:25.26 pm UUID: 025a1ce4-d05a-4afb-b5c8-fc0df26ef4e0 Ancestors: ST80Tools-fbs.1 Fix debugging of optimized expressions. Depends also on Kernel-eem.878. =============== Diff against ST80Tools-fbs.1 =============== Item was changed: ----- Method: ParagraphEditor>>debug:receiver:in: (in category '*ST80Tools') ----- debug: aCompiledMethod receiver: anObject in: evalContext + | guineaPig debugger debuggerWindow context | + guineaPig := + [aCompiledMethod - | guineaPig debugger context | - guineaPig := [ - aCompiledMethod valueWithReceiver: anObject + arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]). + guineaPig := nil "spot the return from aCompiledMethod"] newProcess. - arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]) ] newProcess. context := guineaPig suspendedContext. debugger := Debugger new process: guineaPig + controller: ((Smalltalk isMorphic not and: [ScheduledControllers inActiveControllerProcess]) ifTrue: + [ScheduledControllers activeController]) - controller: ((Smalltalk isMorphic not and: [ScheduledControllers inActiveControllerProcess]) - ifTrue: [ScheduledControllers activeController] - ifFalse: [nil]) context: context. + debuggerWindow := debugger openFullNoSuspendLabel: 'Debug it'. + "Now step into the expression. But if it is quick (is implemented as a primtiive, e.g. `0') + it will return immediately back to the block that is sent newProcess above. Guard + against that with the check for home being thisContext." - debugger openFullNoSuspendLabel: 'Debug it'. [debugger interruptedContext method == aCompiledMethod] + whileFalse: + [(guineaPig isNil + and: [debugger interruptedContext home == thisContext]) ifTrue: + [debuggerWindow controller closeAndUnschedule. + UIManager default inform: 'Nothing to debug; expression is optimized'. + ^self]. + debugger send]! - whileFalse: [debugger send]!
1
0
0
0
The Trunk: ST80Tools-eem.3.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of ST80Tools to project The Trunk:
http://source.squeak.org/trunk/ST80Tools-eem.3.mcz
==================== Summary ==================== Name: ST80Tools-eem.3 Author: eem Time: 6 October 2014, 4:45:25.26 pm UUID: 025a1ce4-d05a-4afb-b5c8-fc0df26ef4e0 Ancestors: ST80Tools-fbs.1 Fix debugging of optimized expressions. Depends also on Kernel-eem.878. =============== Diff against ST80Tools-fbs.1 =============== Item was changed: ----- Method: ParagraphEditor>>debug:receiver:in: (in category '*ST80Tools') ----- debug: aCompiledMethod receiver: anObject in: evalContext + | guineaPig debugger debuggerWindow context | + guineaPig := + [aCompiledMethod - | guineaPig debugger context | - guineaPig := [ - aCompiledMethod valueWithReceiver: anObject + arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]). + guineaPig := nil "spot the return from aCompiledMethod"] newProcess. - arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]) ] newProcess. context := guineaPig suspendedContext. debugger := Debugger new process: guineaPig + controller: ((Smalltalk isMorphic not and: [ScheduledControllers inActiveControllerProcess]) ifTrue: + [ScheduledControllers activeController]) - controller: ((Smalltalk isMorphic not and: [ScheduledControllers inActiveControllerProcess]) - ifTrue: [ScheduledControllers activeController] - ifFalse: [nil]) context: context. + debuggerWindow := debugger openFullNoSuspendLabel: 'Debug it'. + "Now step into the expression. But if it is quick (is implemented as a primtiive, e.g. `0') + it will return immediately back to the block that is sent newProcess above. Guard + against that with the check for home being thisContext." - debugger openFullNoSuspendLabel: 'Debug it'. [debugger interruptedContext method == aCompiledMethod] + whileFalse: + [(guineaPig isNil + and: [debugger interruptedContext home == thisContext]) ifTrue: + [debuggerWindow controller closeAndUnschedule. + UIManager default inform: 'Nothing to debug; expression is optimized'. + ^self]. + debugger send]! - whileFalse: [debugger send]!
1
0
0
0
The Trunk: ST80Tools-eem.3.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of ST80Tools to project The Trunk:
http://source.squeak.org/trunk/ST80Tools-eem.3.mcz
==================== Summary ==================== Name: ST80Tools-eem.3 Author: eem Time: 6 October 2014, 4:45:25.26 pm UUID: 025a1ce4-d05a-4afb-b5c8-fc0df26ef4e0 Ancestors: ST80Tools-fbs.1 Fix debugging of optimized expressions. Depends also on Kernel-eem.878. =============== Diff against ST80Tools-fbs.1 =============== Item was changed: ----- Method: ParagraphEditor>>debug:receiver:in: (in category '*ST80Tools') ----- debug: aCompiledMethod receiver: anObject in: evalContext + | guineaPig debugger debuggerWindow context | + guineaPig := + [aCompiledMethod - | guineaPig debugger context | - guineaPig := [ - aCompiledMethod valueWithReceiver: anObject + arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]). + guineaPig := nil "spot the return from aCompiledMethod"] newProcess. - arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]) ] newProcess. context := guineaPig suspendedContext. debugger := Debugger new process: guineaPig + controller: ((Smalltalk isMorphic not and: [ScheduledControllers inActiveControllerProcess]) ifTrue: + [ScheduledControllers activeController]) - controller: ((Smalltalk isMorphic not and: [ScheduledControllers inActiveControllerProcess]) - ifTrue: [ScheduledControllers activeController] - ifFalse: [nil]) context: context. + debuggerWindow := debugger openFullNoSuspendLabel: 'Debug it'. + "Now step into the expression. But if it is quick (is implemented as a primtiive, e.g. `0') + it will return immediately back to the block that is sent newProcess above. Guard + against that with the check for home being thisContext." - debugger openFullNoSuspendLabel: 'Debug it'. [debugger interruptedContext method == aCompiledMethod] + whileFalse: + [(guineaPig isNil + and: [debugger interruptedContext home == thisContext]) ifTrue: + [debuggerWindow controller closeAndUnschedule. + UIManager default inform: 'Nothing to debug; expression is optimized'. + ^self]. + debugger send]! - whileFalse: [debugger send]!
1
0
0
0
The Trunk: Morphic-eem.748.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-eem.748.mcz
==================== Summary ==================== Name: Morphic-eem.748 Author: eem Time: 6 October 2014, 4:37:20.596 pm UUID: d98f5dd3-77d5-4f51-94ed-92378abe641c Ancestors: Morphic-ul.745 Fix debugging of optimized expressions. Depends also on Kernel-eem.878. =============== Diff against Morphic-ul.745 =============== Item was changed: ----- Method: TextEditor>>debug:receiver:in: (in category 'do-its') ----- debug: aCompiledMethod receiver: anObject in: evalContext + | guineaPig debugger debuggerWindow context | + guineaPig := + [aCompiledMethod - | guineaPig debugger context | - guineaPig := [ - aCompiledMethod valueWithReceiver: anObject + arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]). + guineaPig := nil "spot the return from aCompiledMethod"] newProcess. - arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]) ] newProcess. context := guineaPig suspendedContext. debugger := Debugger new process: guineaPig controller: nil context: context. + debuggerWindow := debugger openFullNoSuspendLabel: 'Debug it'. + "Now step into the expression. But if it is quick (is implemented as a primtiive, e.g. `0') + it will return immediately back to the block that is sent newProcess above. Guard + against that with the check for home being thisContext." + [debugger interruptedContext method == aCompiledMethod] + whileFalse: + [(guineaPig isNil + and: [debugger interruptedContext home == thisContext]) ifTrue: + [debuggerWindow delete. + UIManager default inform: 'Nothing to debug; expression is optimized'. + ^self]. + debugger send]! - debugger openFullNoSuspendLabel: 'Debug it'. - [ debugger interruptedContext method == aCompiledMethod ] - whileFalse: [ debugger send ]!
1
0
0
0
The Trunk: Morphic-eem.748.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-eem.748.mcz
==================== Summary ==================== Name: Morphic-eem.748 Author: eem Time: 6 October 2014, 4:37:20.596 pm UUID: d98f5dd3-77d5-4f51-94ed-92378abe641c Ancestors: Morphic-ul.745 Fix debugging of optimized expressions. Depends also on Kernel-eem.878. =============== Diff against Morphic-ul.745 =============== Item was changed: ----- Method: TextEditor>>debug:receiver:in: (in category 'do-its') ----- debug: aCompiledMethod receiver: anObject in: evalContext + | guineaPig debugger debuggerWindow context | + guineaPig := + [aCompiledMethod - | guineaPig debugger context | - guineaPig := [ - aCompiledMethod valueWithReceiver: anObject + arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]). + guineaPig := nil "spot the return from aCompiledMethod"] newProcess. - arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]) ] newProcess. context := guineaPig suspendedContext. debugger := Debugger new process: guineaPig controller: nil context: context. + debuggerWindow := debugger openFullNoSuspendLabel: 'Debug it'. + "Now step into the expression. But if it is quick (is implemented as a primtiive, e.g. `0') + it will return immediately back to the block that is sent newProcess above. Guard + against that with the check for home being thisContext." + [debugger interruptedContext method == aCompiledMethod] + whileFalse: + [(guineaPig isNil + and: [debugger interruptedContext home == thisContext]) ifTrue: + [debuggerWindow delete. + UIManager default inform: 'Nothing to debug; expression is optimized'. + ^self]. + debugger send]! - debugger openFullNoSuspendLabel: 'Debug it'. - [ debugger interruptedContext method == aCompiledMethod ] - whileFalse: [ debugger send ]!
1
0
0
0
The Trunk: Morphic-eem.748.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-eem.748.mcz
==================== Summary ==================== Name: Morphic-eem.748 Author: eem Time: 6 October 2014, 4:37:20.596 pm UUID: d98f5dd3-77d5-4f51-94ed-92378abe641c Ancestors: Morphic-ul.745 Fix debugging of optimized expressions. Depends also on Kernel-eem.878. =============== Diff against Morphic-ul.745 =============== Item was changed: ----- Method: TextEditor>>debug:receiver:in: (in category 'do-its') ----- debug: aCompiledMethod receiver: anObject in: evalContext + | guineaPig debugger debuggerWindow context | + guineaPig := + [aCompiledMethod - | guineaPig debugger context | - guineaPig := [ - aCompiledMethod valueWithReceiver: anObject + arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]). + guineaPig := nil "spot the return from aCompiledMethod"] newProcess. - arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]) ] newProcess. context := guineaPig suspendedContext. debugger := Debugger new process: guineaPig controller: nil context: context. + debuggerWindow := debugger openFullNoSuspendLabel: 'Debug it'. + "Now step into the expression. But if it is quick (is implemented as a primtiive, e.g. `0') + it will return immediately back to the block that is sent newProcess above. Guard + against that with the check for home being thisContext." + [debugger interruptedContext method == aCompiledMethod] + whileFalse: + [(guineaPig isNil + and: [debugger interruptedContext home == thisContext]) ifTrue: + [debuggerWindow delete. + UIManager default inform: 'Nothing to debug; expression is optimized'. + ^self]. + debugger send]! - debugger openFullNoSuspendLabel: 'Debug it'. - [ debugger interruptedContext method == aCompiledMethod ] - whileFalse: [ debugger send ]!
1
0
0
0
The Trunk: Kernel-eem.878.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.878.mcz
==================== Summary ==================== Name: Kernel-eem.878 Author: eem Time: 6 October 2014, 4:23:20.811 pm UUID: e4b864d7-c2bc-4a8c-b0fa-e867a1508410 Ancestors: Kernel-eem.876 Less haste, more speed. Fix doPrimitive:method:receiver:args: for primitive 188 and quick methods (Object>>withArgs:executeMethod:) and support primitive 189 (Object>>with:*executeMethod:) =============== Diff against Kernel-eem.876 =============== Item was changed: ----- Method: ContextPart>>doPrimitive:method:receiver:args: (in category 'private') ----- doPrimitive: primitiveIndex method: meth receiver: receiver args: arguments "Simulate a primitive method whose index is primitiveIndex. The simulated receiver and arguments are given as arguments to this message. If successful, push result and return resuming context, else ^ PrimitiveFailToken. Any primitive which provokes execution needs to be intercepted and simulated to avoid execution running away." | value | "Judicious use of primitive 19 (a null primitive that doesn't do anything) prevents the debugger from entering various run-away activities such as spawning a new process, etc. Injudicious use results in the debugger not being able to debug interesting code, such as the debugger itself. hence use primtiive 19 with care :-)" "SystemNavigation new browseAllSelect: [:m| m primitive = 19]" primitiveIndex = 19 ifTrue: [ToolSet debugContext: self label:'Code simulation error' contents: nil]. "ContextPart>>blockCopy:; simulated to get startpc right" (primitiveIndex = 80 and: [(self objectClass: receiver) includesBehavior: ContextPart]) ifTrue: [^self push: ((BlockContext newForMethod: receiver method) home: receiver home startpc: pc + 2 nargs: (arguments at: 1))]. (primitiveIndex = 81 and: [(self objectClass: receiver) == BlockContext]) "BlockContext>>value[:value:...]" ifTrue: [^receiver pushArgs: arguments from: self]. (primitiveIndex = 82 and: [(self objectClass: receiver) == BlockContext]) "BlockContext>>valueWithArguments:" ifTrue: [^receiver pushArgs: arguments first from: self]. primitiveIndex = 83 "afr 9/11/1998 19:50" "Object>>perform:[with:...]" ifTrue: [^self send: arguments first to: receiver with: arguments allButFirst super: false]. primitiveIndex = 84 "afr 9/11/1998 19:50 & eem 8/18/2009 17:04" "Object>>perform:withArguments:" ifTrue: [^self send: arguments first to: receiver with: (arguments at: 2) startClass: nil]. primitiveIndex = 100 "eem 8/18/2009 16:57" "Object>>perform:withArguments:inSuperclass:" ifTrue: [^self send: arguments first to: receiver with: (arguments at: 2) startClass: (arguments at: 3)]. "Mutex>>primitiveEnterCriticalSection Mutex>>primitiveTestAndSetOwnershipOfCriticalSection" (primitiveIndex = 186 or: [primitiveIndex = 187]) ifTrue: [| active effective | active := Processor activeProcess. effective := active effectiveProcess. "active == effective" value := primitiveIndex = 186 ifTrue: [receiver primitiveEnterCriticalSectionOnBehalfOf: effective] ifFalse: [receiver primitiveTestAndSetOwnershipOfCriticalSectionOnBehalfOf: effective]. ^((self objectClass: value) == Array and: [value size = 2 and: [value first == PrimitiveFailToken]]) ifTrue: [value] ifFalse: [self push: value]]. + ((primitiveIndex = 188 or: [primitiveIndex = 189]) "eem 10/6/2014 16:14 Object>>with:*executeMethod:" + and: [arguments last isQuick not]) ifTrue: "eem 5/27/2008 11:10 Object>>withArgs:executeMethod:" - primitiveIndex = 188 ifTrue: "eem 5/27/2008 11:10 Object>>withArgs:executeMethod:" [^MethodContext sender: self receiver: receiver + method: arguments last + arguments: (primitiveIndex = 188 + ifTrue: [arguments at: 1] + ifFalse: [arguments allButLast])]. - method: (arguments at: 2) - arguments: (arguments at: 1)]. "Closure primitives" (primitiveIndex = 200 and: [self == receiver]) ifTrue: "ContextPart>>closureCopy:copiedValues:; simulated to get startpc right" [^self push: (BlockClosure outerContext: receiver startpc: pc + 2 numArgs: arguments first copiedValues: arguments last)]. ((primitiveIndex between: 201 and: 205) "BlockClosure>>value[:value:...]" or: [primitiveIndex between: 221 and: 222]) ifTrue: "BlockClosure>>valueNoContextSwitch[:]" [^receiver simulateValueWithArguments: arguments caller: self]. primitiveIndex = 206 ifTrue: "BlockClosure>>valueWithArguments:" [^receiver simulateValueWithArguments: arguments first caller: self]. primitiveIndex = 118 ifTrue: "tryPrimitive:withArgs:; avoid recursing in the VM" [(arguments size = 2 and: [arguments first isInteger and: [(self objectClass: arguments last) == Array]]) ifFalse: [^ContextPart primitiveFailTokenFor: nil]. ^self doPrimitive: arguments first method: meth receiver: receiver args: arguments last]. value := primitiveIndex = 120 "FFI method" ifTrue: [(meth literalAt: 1) tryInvokeWithArguments: arguments] ifFalse: [primitiveIndex = 117 "named primitives" ifTrue: [self tryNamedPrimitiveIn: meth for: receiver withArgs: arguments] ifFalse: [receiver tryPrimitive: primitiveIndex withArgs: arguments]]. ^((self objectClass: value) == Array and: [value size = 2 and: [value first == PrimitiveFailToken]]) ifTrue: [value] ifFalse: [self push: value]!
1
0
0
0
The Trunk: Kernel-eem.878.mcz
by commits@source.squeak.org
07 Oct '14
07 Oct '14
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.878.mcz
==================== Summary ==================== Name: Kernel-eem.878 Author: eem Time: 6 October 2014, 4:23:20.811 pm UUID: e4b864d7-c2bc-4a8c-b0fa-e867a1508410 Ancestors: Kernel-eem.876 Less haste, more speed. Fix doPrimitive:method:receiver:args: for primitive 188 and quick methods (Object>>withArgs:executeMethod:) and support primitive 189 (Object>>with:*executeMethod:) =============== Diff against Kernel-eem.876 =============== Item was changed: ----- Method: ContextPart>>doPrimitive:method:receiver:args: (in category 'private') ----- doPrimitive: primitiveIndex method: meth receiver: receiver args: arguments "Simulate a primitive method whose index is primitiveIndex. The simulated receiver and arguments are given as arguments to this message. If successful, push result and return resuming context, else ^ PrimitiveFailToken. Any primitive which provokes execution needs to be intercepted and simulated to avoid execution running away." | value | "Judicious use of primitive 19 (a null primitive that doesn't do anything) prevents the debugger from entering various run-away activities such as spawning a new process, etc. Injudicious use results in the debugger not being able to debug interesting code, such as the debugger itself. hence use primtiive 19 with care :-)" "SystemNavigation new browseAllSelect: [:m| m primitive = 19]" primitiveIndex = 19 ifTrue: [ToolSet debugContext: self label:'Code simulation error' contents: nil]. "ContextPart>>blockCopy:; simulated to get startpc right" (primitiveIndex = 80 and: [(self objectClass: receiver) includesBehavior: ContextPart]) ifTrue: [^self push: ((BlockContext newForMethod: receiver method) home: receiver home startpc: pc + 2 nargs: (arguments at: 1))]. (primitiveIndex = 81 and: [(self objectClass: receiver) == BlockContext]) "BlockContext>>value[:value:...]" ifTrue: [^receiver pushArgs: arguments from: self]. (primitiveIndex = 82 and: [(self objectClass: receiver) == BlockContext]) "BlockContext>>valueWithArguments:" ifTrue: [^receiver pushArgs: arguments first from: self]. primitiveIndex = 83 "afr 9/11/1998 19:50" "Object>>perform:[with:...]" ifTrue: [^self send: arguments first to: receiver with: arguments allButFirst super: false]. primitiveIndex = 84 "afr 9/11/1998 19:50 & eem 8/18/2009 17:04" "Object>>perform:withArguments:" ifTrue: [^self send: arguments first to: receiver with: (arguments at: 2) startClass: nil]. primitiveIndex = 100 "eem 8/18/2009 16:57" "Object>>perform:withArguments:inSuperclass:" ifTrue: [^self send: arguments first to: receiver with: (arguments at: 2) startClass: (arguments at: 3)]. "Mutex>>primitiveEnterCriticalSection Mutex>>primitiveTestAndSetOwnershipOfCriticalSection" (primitiveIndex = 186 or: [primitiveIndex = 187]) ifTrue: [| active effective | active := Processor activeProcess. effective := active effectiveProcess. "active == effective" value := primitiveIndex = 186 ifTrue: [receiver primitiveEnterCriticalSectionOnBehalfOf: effective] ifFalse: [receiver primitiveTestAndSetOwnershipOfCriticalSectionOnBehalfOf: effective]. ^((self objectClass: value) == Array and: [value size = 2 and: [value first == PrimitiveFailToken]]) ifTrue: [value] ifFalse: [self push: value]]. + ((primitiveIndex = 188 or: [primitiveIndex = 189]) "eem 10/6/2014 16:14 Object>>with:*executeMethod:" + and: [arguments last isQuick not]) ifTrue: "eem 5/27/2008 11:10 Object>>withArgs:executeMethod:" - primitiveIndex = 188 ifTrue: "eem 5/27/2008 11:10 Object>>withArgs:executeMethod:" [^MethodContext sender: self receiver: receiver + method: arguments last + arguments: (primitiveIndex = 188 + ifTrue: [arguments at: 1] + ifFalse: [arguments allButLast])]. - method: (arguments at: 2) - arguments: (arguments at: 1)]. "Closure primitives" (primitiveIndex = 200 and: [self == receiver]) ifTrue: "ContextPart>>closureCopy:copiedValues:; simulated to get startpc right" [^self push: (BlockClosure outerContext: receiver startpc: pc + 2 numArgs: arguments first copiedValues: arguments last)]. ((primitiveIndex between: 201 and: 205) "BlockClosure>>value[:value:...]" or: [primitiveIndex between: 221 and: 222]) ifTrue: "BlockClosure>>valueNoContextSwitch[:]" [^receiver simulateValueWithArguments: arguments caller: self]. primitiveIndex = 206 ifTrue: "BlockClosure>>valueWithArguments:" [^receiver simulateValueWithArguments: arguments first caller: self]. primitiveIndex = 118 ifTrue: "tryPrimitive:withArgs:; avoid recursing in the VM" [(arguments size = 2 and: [arguments first isInteger and: [(self objectClass: arguments last) == Array]]) ifFalse: [^ContextPart primitiveFailTokenFor: nil]. ^self doPrimitive: arguments first method: meth receiver: receiver args: arguments last]. value := primitiveIndex = 120 "FFI method" ifTrue: [(meth literalAt: 1) tryInvokeWithArguments: arguments] ifFalse: [primitiveIndex = 117 "named primitives" ifTrue: [self tryNamedPrimitiveIn: meth for: receiver withArgs: arguments] ifFalse: [receiver tryPrimitive: primitiveIndex withArgs: arguments]]. ^((self objectClass: value) == Array and: [value size = 2 and: [value first == PrimitiveFailToken]]) ifTrue: [value] ifFalse: [self push: value]!
1
0
0
0
← Newer
1
...
11
12
13
14
15
16
17
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Results per page:
10
25
50
100
200