[squeak-dev] The Inbox: Compiler-eem.140.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu May 20 16:19:54 UTC 2010
A new version of Compiler was added to project The Inbox:
http://source.squeak.org/inbox/Compiler-eem.140.mcz
==================== Summary ====================
Name: Compiler-eem.140
Author: eem
Time: 20 May 2010, 9:19:38.873 am
UUID: 1811aad2-ae46-40ed-baa6-f572c9d2cd49
Ancestors: Compiler-ar.139
Fix code gen infinite recursion and missing error check for compiling assignments to read-only global variables.
=============== Diff against Compiler-ar.139 ===============
Item was added:
+ ----- Method: LiteralVariableNode>>assignmentCheck:at: (in category 'testing') -----
+ assignmentCheck: encoder at: location
+ ^(key isVariableBinding and: [key canAssign not])
+ ifTrue: [location]
+ ifFalse: [-1]!
Item was changed:
----- Method: LiteralVariableNode>>sizeCodeForStorePop: (in category 'code generation (new scheme)') -----
sizeCodeForStorePop: encoder
self reserve: encoder.
^(key isVariableBinding and: [key isSpecialWriteBinding])
+ ifTrue: [(self sizeCodeForStore: encoder) + encoder sizePop]
- ifTrue: [(self sizeCodeForStorePop: encoder) + encoder sizePop]
ifFalse: [encoder sizeStorePopLiteralVar: index]!
More information about the Squeak-dev
mailing list
|