[Vm-dev] VM Maker: VMMaker.oscog-eem.1324.mcz

commits at source.squeak.org commits at source.squeak.org
Sun May 24 20:47:32 UTC 2015


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

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

Name: VMMaker.oscog-eem.1324
Author: eem
Time: 24 May 2015, 1:45:10.298 pm
UUID: 2a4c329d-49f0-41cd-9b2b-857fb713383c
Ancestors: VMMaker.oscog-eem.1323

Move comment containing method name from after
opening brace to before function prototype, because
otherwise it interferes with the var struct decl.

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

Item was changed:
  ----- Method: TMethod>>emitCCodeOn:generator: (in category 'C code generation') -----
  emitCCodeOn: aStream generator: aCodeGen
  	"Emit C code for this method onto the given stream.
  	 All calls to inlined methods should already have been expanded."
  
  	aCodeGen currentMethod: self.
+ 	self emitCCommentOn: aStream.	"place method comment and method name before function."
+ 	aStream crtab; nextPutAll: '/* '; nextPutAll: self definingClass name; nextPutAll: '>>#'; nextPutAll: self selector; nextPutAll: ' */'.	
- 	self emitCCommentOn: aStream.	"place method comment before function"
  	aStream cr. 
  	self emitCFunctionPrototype: aStream generator: aCodeGen isPrototype: false.
  	aStream cr; nextPut: ${.
- 	aStream cr; tab;
- 		nextPutAll: '/* '; nextPutAll: self definingClass name; nextPutAll: '>>#'; nextPutAll: self selector; nextPutAll: ' */'.	
  	self emitCLocalsOn: aStream generator: aCodeGen.
  	aCodeGen
  		pushScope: declarations
  		while: [parseTree emitCCodeOn: aStream level: 1 generator: aCodeGen].
  	aStream nextPut: $}; cr!



More information about the Vm-dev mailing list