VM Maker: VMMaker-dtl.237.mcz

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

VM Maker: VMMaker-dtl.237.mcz

squeak-dev-noreply
 
Dave Lewis uploaded a new version of VMMaker to project VM Maker:
http://www.squeaksource.com/VMMaker/VMMaker-dtl.237.mcz

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

Name: VMMaker-dtl.237
Author: dtl
Time: 23 May 2011, 11:38:51 am
UUID: db716650-3b1b-4d54-9aba-6257a21a50a7
Ancestors: VMMaker-dtl.236

VMMaker 4.5.1

Convert primitive error reporting to use #primitiveFailFor: such that the successFlag variable is replaced with primFailCode (integer value, 0 for success, 1, 2, 3... for failure codes), consistent with oscog.

Includes improved #failed, #successful, and #success: methods recoded for performance in C, yielding performance equivalent to previous implementation with successFlag.

Changes were applied as follows:

- Replaced all occurances of "successFlag := true" with "self initPrimCall", which initialize primFailCode to 0.
- Replaced all "successFlag := false" with "self primitiveFail".
- Replaced all "successFlag ifTrue: [] ifFalse: []" with "self successful ifTrue: [] ifFalse: []".
- Updated #primitiveFail, #failed and #success: to use primFailCode rather than successFlag.
- Removed successFlag variable.