[Vm-dev] VM Maker: VMMaker.oscog-dtl.615.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Feb 15 18:12:49 UTC 2014
David T. Lewis uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-dtl.615.mcz
==================== Summary ====================
Name: VMMaker.oscog-dtl.615
Author: dtl
Time: 15 February 2014, 1:09:34.116 pm
UUID: 2bd0f5e2-4cec-407d-8255-0af86a06561f
Ancestors: VMMaker.oscog-eem.614
Use the equivalent #shallowCopy rather than #clone (Pharo compatibility).
Update SmartSyntaxPluginCodeGenerator>>initializeCTranslationDictionary to comment out unused (planned but never implemented) code.
Matches changes in VMMaker-dtl.341
=============== Diff against VMMaker.oscog-eem.614 ===============
Item was changed:
----- Method: CObjectAccessor>>+ (in category 'pointer arithmetic') -----
+ increment
+ ^self shallowCopy += increment!
- ^self clone += increment!
Item was changed:
----- Method: CObjectAccessor>>- (in category 'pointer arithmetic') -----
- decrement
+ ^self shallowCopy -= decrement!
- ^self clone -= decrement!
Item was changed:
----- Method: InterpreterProxy>>clone: (in category 'instance creation') -----
clone: oop
+ ^oop shallowCopy!
- ^oop clone!
Item was changed:
----- Method: SmartSyntaxPluginCodeGenerator>>initializeCTranslationDictionary (in category 'translating builtins') -----
initializeCTranslationDictionary
"Initialize the dictionary mapping message names to actions for C code generation."
| pairs |
super initializeCTranslationDictionary.
pairs := #(
#asCInt #generateAsCInt:on:indent:
#asCUnsigned #generateAsCUnsigned:on:indent:
#asCBoolean #generateAsCBoolean:on:indent:
#asCDouble #generateAsCDouble:on:indent:
#asSmallIntegerObj #generateAsSmallIntegerObj:on:indent:
#asPositiveIntegerObj #generateAsPositiveIntegerObj:on:indent:
#asBooleanObj #generateAsBooleanObj:on:indent:
#asFloatObj #generateAsFloatObj:on:indent:
#asIf:var: #generateAsIfVar:on:indent:
#asIf:var:asValue: #generateAsIfVarAsValue:on:indent:
#asIf:var:put: #generateAsIfVarPut:on:indent:
#field: #generateField:on:indent:
#field:put: #generateFieldPut:on:indent:
#class #generateClass:on:indent:
#stSize #generateStSize:on:indent:
#stAt: #generateStAt:on:indent:
#stAt:put: #generateStAtPut:on:indent:
#asCharPtr #generateAsCharPtr:on:indent:
#asIntPtr #generateAsIntPtr:on:indent:
#cPtrAsOop #generateCPtrAsOop:on:indent:
#next #generateNext:on:indent:
#asOop: #generateAsOop:on:indent:
#asValue: #generateAsValue:on:indent:
#isFloat #generateIsFloat:on:indent:
#isIndexable #generateIsIndexable:on:indent:
#isIntegerOop #generateIsIntegerOop:on:indent:
#isIntegerValue #generateIsIntegerValue:on:indent:
+ "#FloatOop #generateIsFloatValue:on:indent:" "unused, never implemented"
- #FloatOop #generateIsFloatValue:on:indent:
#isWords #generateIsWords:on:indent:
#isWordsOrBytes #generateIsWordsOrBytes:on:indent:
#isPointers #generateIsPointers:on:indent:
#isNil #generateIsNil:on:indent:
#isMemberOf: #generateIsMemberOf:on:indent:
#isKindOf: #generateIsKindOf:on:indent:
#fromStack: #generateFromStack:on:indent:
+ "#clone #generateClone:on:indent:" "unused, never implemented"
+ "#new #generateNew:on:indent:" "unused, never implemented"
+ "#new: #generateNewSize:on:indent:" "unused, never implemented"
+ "#superclass #generateSuperclass:on:indent:" "unused, never implemented"
- #clone #generateClone:on:indent
- #new #generateNew:on:indent
- #new: #generateNewSize:on:indent
- #superclass #generateSuperclass:on:indent:
#remapOop:in: #generateRemapOopIn:on:indent:
#debugCode: #generateDebugCode:on:indent:
).
1 to: pairs size by: 2 do: [:i |
translationDict at: (pairs at: i) put: (pairs at: i + 1)].
!
More information about the Vm-dev
mailing list