Chris Muller uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-cmm.292.mcz
==================== Summary ====================
Name: Tools-cmm.292
Author: cmm
Time: 30 January 2011, 2:20:32.856 pm
UUID: 1cb18c62-875b-4f44-8ab5-c839c1034df7
Ancestors: Tools-laza.291
Default shouldStyle to false.
=============== Diff against Tools-laza.291 ===============
Item was changed:
----- Method: Workspace class>>shouldStyle (in category 'preferences') -----
shouldStyle
-
<preference: 'Shout styling in Workspace'
category: 'browsing'
description: 'After enabled, new workspaces use shout to style their contents.'
type: #Boolean>
+ ^ ShouldStyle ifNil: [ false ]!
- ^ShouldStyle ifNil: [ ^true ]!
Chris Muller uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-cmm.292.mcz
==================== Summary ====================
Name: Tools-cmm.292
Author: cmm
Time: 30 January 2011, 2:20:32.856 pm
UUID: 1cb18c62-875b-4f44-8ab5-c839c1034df7
Ancestors: Tools-laza.291
Default shouldStyle to false.
=============== Diff against Tools-laza.291 ===============
Item was changed:
----- Method: Workspace class>>shouldStyle (in category 'preferences') -----
shouldStyle
-
<preference: 'Shout styling in Workspace'
category: 'browsing'
description: 'After enabled, new workspaces use shout to style their contents.'
type: #Boolean>
+ ^ ShouldStyle ifNil: [ false ]!
- ^ShouldStyle ifNil: [ ^true ]!
Chris Muller uploaded a new version of Tools to project The Trunk:
http://source.squeak.org/trunk/Tools-cmm.292.mcz
==================== Summary ====================
Name: Tools-cmm.292
Author: cmm
Time: 30 January 2011, 2:20:32.856 pm
UUID: 1cb18c62-875b-4f44-8ab5-c839c1034df7
Ancestors: Tools-laza.291
Default shouldStyle to false.
=============== Diff against Tools-laza.291 ===============
Item was changed:
----- Method: Workspace class>>shouldStyle (in category 'preferences') -----
shouldStyle
-
<preference: 'Shout styling in Workspace'
category: 'browsing'
description: 'After enabled, new workspaces use shout to style their contents.'
type: #Boolean>
+ ^ ShouldStyle ifNil: [ false ]!
- ^ShouldStyle ifNil: [ ^true ]!
Alexander Lazarević uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-laza.417.mcz
==================== Summary ====================
Name: System-laza.417
Author: laza
Time: 30 January 2011, 4:49:32.347 am
UUID: 1c6e575a-eaf6-d14b-a42e-8241ff9c7428
Ancestors: System-ul.416
update the comment of getSystemAttribute: to match current VMs
=============== Diff against System-ul.416 ===============
Item was changed:
----- Method: SmalltalkImage>>getSystemAttribute: (in category 'private') -----
getSystemAttribute: attributeID
"Optional. Answer the string for the system attribute with the given
integer ID. Answer nil if the given attribute is not defined on this
platform. On platforms that support invoking programs from command
lines (e.g., Unix), this mechanism can be used to pass command line
arguments to programs written in Squeak.
By convention, the first command line argument that is not a VM
configuration option is considered a 'document' to be filed in. Such a
document can add methods and classes, can contain a serialized object,
can include code to be executed, or any combination of these.
Currently defined attributes include:
+ -1000 1000th command line argument that specify VM options
+ ...
+ -1 first command line argument that specify VM options
+ 0 the full path name for currently executing VM
+ (or, on some platforms, just the path name of the VM's directory)
+ 1 full path name of this image (better use primImageName instead)
+ 2 a Squeak document to open, if any
+ 3 first command line argument for Squeak programs
+ ...
+ 1000 1000th command line argument for Squeak programs
+ 1001 this platform's operating system 'Mac OS', 'Win32', 'unix', ...
+ 1002 operating system version
+ 1003 this platform's processor type
+ 1004 vm version
+ 1005 window system name
+ 1006 vm build id
+ 1201 always returns 255 (Mac OS only)
+ 1202 file last error (Mac OS only)
+ 10001 hardware details (Win32 only)
+ 10002 operating system details (Win32 only)
+ 10003 graphics hardware details (Win32 only)
+ "
- -1000...-1 - command line arguments that specify VM options
- 0 - the full path name for currently executing VM
- (or, on some platforms, just the path name of the VM's directory)
- 1 - full path name of this image
- 2 - a Squeak document to open, if any
- 3...1000 - command line arguments for Squeak programs
- 1001 - this platform's operating system
- 1002 - operating system version
- 1003 - this platform's processor type
- 1004 - vm version"
<primitive: 149>
^ nil!
Alexander Lazarević uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-laza.417.mcz
==================== Summary ====================
Name: System-laza.417
Author: laza
Time: 30 January 2011, 4:49:32.347 am
UUID: 1c6e575a-eaf6-d14b-a42e-8241ff9c7428
Ancestors: System-ul.416
update the comment of getSystemAttribute: to match current VMs
=============== Diff against System-ul.416 ===============
Item was changed:
----- Method: SmalltalkImage>>getSystemAttribute: (in category 'private') -----
getSystemAttribute: attributeID
"Optional. Answer the string for the system attribute with the given
integer ID. Answer nil if the given attribute is not defined on this
platform. On platforms that support invoking programs from command
lines (e.g., Unix), this mechanism can be used to pass command line
arguments to programs written in Squeak.
By convention, the first command line argument that is not a VM
configuration option is considered a 'document' to be filed in. Such a
document can add methods and classes, can contain a serialized object,
can include code to be executed, or any combination of these.
Currently defined attributes include:
+ -1000 1000th command line argument that specify VM options
+ ...
+ -1 first command line argument that specify VM options
+ 0 the full path name for currently executing VM
+ (or, on some platforms, just the path name of the VM's directory)
+ 1 full path name of this image (better use primImageName instead)
+ 2 a Squeak document to open, if any
+ 3 first command line argument for Squeak programs
+ ...
+ 1000 1000th command line argument for Squeak programs
+ 1001 this platform's operating system 'Mac OS', 'Win32', 'unix', ...
+ 1002 operating system version
+ 1003 this platform's processor type
+ 1004 vm version
+ 1005 window system name
+ 1006 vm build id
+ 1201 always returns 255 (Mac OS only)
+ 1202 file last error (Mac OS only)
+ 10001 hardware details (Win32 only)
+ 10002 operating system details (Win32 only)
+ 10003 graphics hardware details (Win32 only)
+ "
- -1000...-1 - command line arguments that specify VM options
- 0 - the full path name for currently executing VM
- (or, on some platforms, just the path name of the VM's directory)
- 1 - full path name of this image
- 2 - a Squeak document to open, if any
- 3...1000 - command line arguments for Squeak programs
- 1001 - this platform's operating system
- 1002 - operating system version
- 1003 - this platform's processor type
- 1004 - vm version"
<primitive: 149>
^ nil!
Alexander Lazarević uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-laza.417.mcz
==================== Summary ====================
Name: System-laza.417
Author: laza
Time: 30 January 2011, 4:49:32.347 am
UUID: 1c6e575a-eaf6-d14b-a42e-8241ff9c7428
Ancestors: System-ul.416
update the comment of getSystemAttribute: to match current VMs
=============== Diff against System-ul.416 ===============
Item was changed:
----- Method: SmalltalkImage>>getSystemAttribute: (in category 'private') -----
getSystemAttribute: attributeID
"Optional. Answer the string for the system attribute with the given
integer ID. Answer nil if the given attribute is not defined on this
platform. On platforms that support invoking programs from command
lines (e.g., Unix), this mechanism can be used to pass command line
arguments to programs written in Squeak.
By convention, the first command line argument that is not a VM
configuration option is considered a 'document' to be filed in. Such a
document can add methods and classes, can contain a serialized object,
can include code to be executed, or any combination of these.
Currently defined attributes include:
+ -1000 1000th command line argument that specify VM options
+ ...
+ -1 first command line argument that specify VM options
+ 0 the full path name for currently executing VM
+ (or, on some platforms, just the path name of the VM's directory)
+ 1 full path name of this image (better use primImageName instead)
+ 2 a Squeak document to open, if any
+ 3 first command line argument for Squeak programs
+ ...
+ 1000 1000th command line argument for Squeak programs
+ 1001 this platform's operating system 'Mac OS', 'Win32', 'unix', ...
+ 1002 operating system version
+ 1003 this platform's processor type
+ 1004 vm version
+ 1005 window system name
+ 1006 vm build id
+ 1201 always returns 255 (Mac OS only)
+ 1202 file last error (Mac OS only)
+ 10001 hardware details (Win32 only)
+ 10002 operating system details (Win32 only)
+ 10003 graphics hardware details (Win32 only)
+ "
- -1000...-1 - command line arguments that specify VM options
- 0 - the full path name for currently executing VM
- (or, on some platforms, just the path name of the VM's directory)
- 1 - full path name of this image
- 2 - a Squeak document to open, if any
- 3...1000 - command line arguments for Squeak programs
- 1001 - this platform's operating system
- 1002 - operating system version
- 1003 - this platform's processor type
- 1004 - vm version"
<primitive: 149>
^ nil!
Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.540.mcz
==================== Summary ====================
Name: Kernel-ul.540
Author: ul
Time: 29 January 2011, 1:21:18.82 pm
UUID: a66e5204-4090-2149-8c6a-d65fa1cc4dd3
Ancestors: Kernel-cmm.539
- updated CompiledMethod's comment as suggested by http://bugs.squeak.org/view.php?id=7570
=============== Diff against Kernel-cmm.539 ===============
Item was changed:
ByteArray variableByteSubclass: #CompiledMethod
instanceVariableNames: ''
classVariableNames: 'LargeFrame SmallFrame'
poolDictionaries: ''
category: 'Kernel-Methods'!
+ !CompiledMethod commentStamp: 'ul 1/29/2011 13:18' prior: 0!
- !CompiledMethod commentStamp: 'ls 7/5/2003 13:48' prior: 0!
My instances are methods suitable for interpretation by the virtual machine. This is the only class in the system whose instances intermix both indexable pointer fields and indexable integer fields.
+ I'm a subclass of ByteArray to avoid duplicating some of ByteArray's methods, not because a CompiledMethod is-a ByteArray.
The current format of a CompiledMethod is as follows:
header (4 bytes)
literals (4 bytes each)
bytecodes (variable)
trailer (variable)
The header is a 30-bit integer with the following format:
(index 0) 9 bits: main part of primitive number (#primitive)
(index 9) 8 bits: number of literals (#numLiterals)
(index 17) 1 bit: whether a large frame size is needed (#frameSize)
(index 18) 6 bits: number of temporary variables (#numTemps)
(index 24) 4 bits: number of arguments to the method (#numArgs)
(index 28) 1 bit: high-bit of primitive number (#primitive)
(index 29) 1 bit: flag bit, ignored by the VM (#flag)
The trailer has two variant formats. In the first variant, the last byte is at least 252 and the last four bytes represent a source pointer into one of the sources files (see #sourcePointer). In the second variant, the last byte is less than 252, and the last several bytes are a compressed version of the names of the method's temporary variables. The number of bytes used for this purpose is the value of the last byte in the method.
!