[Vm-dev] VM Maker: BytecodeSets.spur-eem.54.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Jun 15 21:40:25 UTC 2016


Eliot Miranda uploaded a new version of BytecodeSets to project VM Maker:
http://source.squeak.org/VMMaker/BytecodeSets.spur-eem.54.mcz

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

Name: BytecodeSets.spur-eem.54
Author: eem
Time: 15 June 2016, 2:39:35.207556 pm
UUID: ff813806-d8f8-473b-bacc-b0bc62f10c40
Ancestors: BytecodeSets.spur-cb.53

In Squeak the compiler checks for exceeding the number of available literals at compile time.  So encoders must implement maxIndexableLiterals.  The default form the Blue Book bytecode set is only 63.  EncoderForV3 answers 256.  Both NewspeakV4 and SistaV1 should answer 65536.

=============== Diff against BytecodeSets.spur-cb.53 ===============

Item was added:
+ ----- Method: EncoderForNewsqueakV4>>maxIndexableLiterals (in category 'accessing') -----
+ maxIndexableLiterals
+ 	"Answer the maximum number of literals supported by the receiver's
+ 	 bytecode set."
+ 	^65536!

Item was added:
+ ----- Method: EncoderForSistaV1>>maxIndexableLiterals (in category 'accessing') -----
+ maxIndexableLiterals
+ 	"Answer the maximum number of literals supported by the receiver's
+ 	 bytecode set."
+ 	^65536!



More information about the Vm-dev mailing list