VM Maker: VMMakerJS-dtl.18.mcz

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

VM Maker: VMMakerJS-dtl.18.mcz

commits-2
 
David T. Lewis uploaded a new version of VMMakerJS to project VM Maker:
http://source.squeak.org/VMMaker/VMMakerJS-dtl.18.mcz

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

Name: VMMakerJS-dtl.18
Author: dtl
Time: 29 February 2020, 2:02:21.774 pm
UUID: 544d97d2-2811-46b7-a653-5c1776f146a4
Ancestors: VMMakerJS-bf.17

Housekeeping to keep JSCodeGenerator in sync with CCodeGenerator. Remove unused code as per VMMaker-dtl.410. No functional impact for JS.

=============== Diff against VMMakerJS-bf.17 ===============

Item was removed:
- ----- Method: JSCodeGenerator>>emitDefineMemoryAccessInImageOn: (in category 'JS code generator') -----
- emitDefineMemoryAccessInImageOn: aStream
- "If MemoryAccess is present in the image, then define MEMORY_ACCESS_IN_IMAGE as
- a C preprocessor macro. When MEMORY_ACCESS_IN_IMAGE is defined, the traditional
- C preprocessor macros for low level memory access are ignored and will be replaced
- by directly translated (and inlined) SLANG versions of the same. This enables visibility
- of the memory access functions for debuggers and profilers."
-
- (Smalltalk classNamed: #MemoryAccess)
- ifNotNilDo: [:ma | ma isEnabled
- ifTrue: [aStream nextPutAll: '#define MEMORY_ACCESS_IN_IMAGE 1'; cr]]!

Item was changed:
  ----- Method: JSCodeGenerator>>storeHeaderFor:onFile: (in category 'public') -----
  storeHeaderFor: interpreterClassName onFile: fileName
  "Store C header code for this interpreter on the given file."
 
  | aStream |
  aStream := CrLfFileStream forceNewFileNamed: fileName.
  aStream ifNil: [Error signal: 'Could not open C header file: ', fileName].
  aStream
  nextPutAll: '/* ';
  nextPutAll: VMMaker headerNotice;
  nextPutAll: ' */'; cr; cr;
  nextPutAll: '#ifndef HAVE_INTERP_H'; cr;
  nextPutAll: '# define HAVE_INTERP_H'; cr;
  nextPutAll: '#endif'; cr; cr.
  self emitVmmVersionOn: aStream.
  (Smalltalk classNamed: interpreterClassName)
  emitInterpreterProxyVersionOn: aStream.
  self emitDefineBytesPerWordOn: aStream.
- self emitDefineMemoryAccessInImageOn: aStream.
  aStream cr.
  aStream close
  !