VM Maker: VMMaker.oscog-eem.2584.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.oscog-eem.2584.mcz

commits-2
 
Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.2584.mcz

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

Name: VMMaker.oscog-eem.2584
Author: eem
Time: 15 November 2019, 4:59:35.439138 pm
UUID: e545207f-00cf-4db0-b34c-7cd19b583b29
Ancestors: VMMaker.oscog-eem.2583

And, goddamnit, have a Newspeak VM reveal the same.

=============== Diff against VMMaker.oscog-eem.2583 ===============

Item was changed:
  ----- Method: VMClass class>>declareInterpreterVersionIn:defaultName: (in category 'translation') -----
  declareInterpreterVersionIn: aCCodeGenerator defaultName: defaultName
  | objMemName |
  objMemName := aCCodeGenerator vmClass objectMemoryClass memoryManagerName.
  NewspeakVM ifTrue:
  ["Newspeak as of mid 2011 derives SystemScope systemName from the interpreterVersion
   (via system attribute 1004) by copying up to but not including the last space, provided the
   string ends with a digit.  So spaces must be eliminated from the Monitcello version string,
   and we can't surround it with square brackets."
  (aCCodeGenerator shortMonticelloDescriptionForClass: self) last isDigit ifFalse:
  [self error: 'Newspeak expects interpreterVersion ends with a digit'].
  aCCodeGenerator
  var: #interpreterVersion
  declareC: 'const char *interpreterVersion = "Newspeak Virtual Machine ',
+ ('[ Open Smalltalk, ',objMemName,'] '),
- ('[',objMemName,'] '),
  ((aCCodeGenerator shortMonticelloDescriptionForClass: self) copyReplaceAll: ' ' with: '_'),
  '"'.
  ^self].
 
  aCCodeGenerator
  var: #interpreterVersion
  declareC: 'const char *interpreterVersion = "Open Smalltalk ', defaultName, ' VM [',
  objMemName, ' ',
  (aCCodeGenerator shortMonticelloDescriptionForClass: self),']"'!