[Vm-dev] VM Maker: VMMaker.oscog-eem.1523.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Nov 18 01:32:51 UTC 2015
Eliot Miranda uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-eem.1523.mcz
==================== Summary ====================
Name: VMMaker.oscog-eem.1523
Author: eem
Time: 17 November 2015, 5:30:56.2 pm
UUID: 937e2290-24ff-463f-82fa-6a04c3454b28
Ancestors: VMMaker.oscog-eem.1522
Cogit: Provide a convenience for disassembling in-image compilation of the closed PIC prototype.
=============== Diff against VMMaker.oscog-eem.1522 ===============
Item was added:
+ ----- Method: Cogit class>>genAndDisPICoptions: (in category 'in-image compilation') -----
+ genAndDisPICoptions: optionsDictionaryOrArray
+ "StackToRegisterMappingCogit genAndDisPICoptions: #(ISA ARMv5 CogCompilerClass CogInLineLiteralsARMCompiler)"
+ | coInterpreter cogit |
+ self initializeWithOptions: (self asOptionsDictionary: optionsDictionaryOrArray).
+ CoInterpreter initializeWithOptions: initializationOptions.
+ CoInterpreter objectMemoryClass initializeWithOptions: initializationOptions.
+ coInterpreter := CurrentImageCoInterpreterFacade forCogit: (cogit := self new).
+ [cogit
+ setInterpreter: coInterpreter;
+ singleStep: true;
+ initializeCodeZoneFrom: 1024 upTo: coInterpreter memory size / 2. "leave space for rump C stack"
+ cogit methodZone freeStart: (cogit methodZone freeStart roundUpTo: 1024)]
+ on: Notification
+ do: [:ex|
+ (ex messageText beginsWith: 'cannot find receiver for') ifTrue:
+ [ex resume: coInterpreter]].
+ cogit disassembleFrom: cogit cPICPrototype + (cogit sizeof: CogMethod) to: cogit cPICPrototype + cogit closedPICSize!
Item was added:
+ ----- Method: Cogit>>cPICPrototype (in category 'accessing') -----
+ cPICPrototype
+ "For Cogit clas>>#genAndDisPICoptions:"
+ <doNotGenerate>
+ ^cPICPrototype!
Item was added:
+ ----- Method: Cogit>>closedPICSize (in category 'accessing') -----
+ closedPICSize
+ "For Cogit clas>>#genAndDisPICoptions:"
+ <doNotGenerate>
+ ^closedPICSize!
More information about the Vm-dev
mailing list