[Vm-dev] VM Maker: VMMakerJS-bf.11.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Oct 10 13:47:08 UTC 2014
Bert Freudenberg uploaded a new version of VMMakerJS to project VM Maker:
http://source.squeak.org/VMMaker/VMMakerJS-bf.11.mcz
==================== Summary ====================
Name: VMMakerJS-bf.11
Author: bf
Time: 10 October 2014, 2:46:47.387 pm
UUID: 7eb88d9a-3f0b-4f0c-9bd3-8e2c44b9f7db
Ancestors: VMMakerJS-bf.10
Remove override method. Add translateAllPluginsIn:.
=============== Diff against VMMakerJS-bf.10 ===============
Item was removed:
- ----- Method: InterpreterPlugin class>>moduleExtension (in category '*vmmakerjs-override') -----
- moduleExtension
- Smalltalk at: #JSCodeGenerator ifPresent: [:js | js isActive ifTrue: [^'.js']].
- ^ self isCPP ifTrue: ['.cpp'] ifFalse: ['.c']!
Item was added:
+ ----- Method: JSCodeGenerator class>>beActiveDuring: (in category 'preferences') -----
+ beActiveDuring: aBlock
+ | wasActive |
+ wasActive := self isActive.
+ aBlock ensure: [self isActive: wasActive].!
Item was removed:
- ----- Method: JSCodeGenerator class>>removeCompilerMethods (in category 'removing from system') -----
- removeCompilerMethods
- "Before removing the C code generator classes from the system, use this method to remove the compiler node methods that support it. This avoids leaving dangling references to C code generator classes in the compiler node classes."
-
- ParseNode withAllSubclasses do: [ :nodeClass |
- nodeClass removeCategory: 'C translation'.
- ].
- Smalltalk at: #AbstractSound ifPresent: [:abstractSound |
- abstractSound class removeCategory: 'primitive generation'].
- !
Item was added:
+ ----- Method: JSCodeGenerator class>>translateAllPluginsIn: (in category 'utilities') -----
+ translateAllPluginsIn: aDirectory
+ self beActiveDuring: [
+ #( ADPCMCodecPlugin
+ "BMPReadWriterPlugin -- not working yet"
+ BitBltSimulation
+ DSAPlugin
+ DeflatePlugin
+ FFTPlugin
+ FloatArrayPlugin
+ "GeniePlugin -- not working yet"
+ JPEGReaderPlugin
+ KedamaPlugin
+ KedamaPlugin2
+ KlattSynthesizerPlugin
+ LargeIntegersPlugin
+ Matrix2x3Plugin
+ MiscPrimitivePlugin
+ ScratchPlugin
+ SoundGenerationPlugin
+ StarSqueakPlugin
+ ) do: [:pluginName |
+ self environment at: pluginName ifPresent: [:plugin |
+ plugin translateInDirectory: aDirectory doInlining: false]]
+ displayingProgress: 'Generating JS plugins'].!
More information about the Vm-dev
mailing list