VM Maker: VMMaker-jcg.182.mcz

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

VM Maker: VMMaker-jcg.182.mcz

squeak-dev-noreply
 
Joshua Gargus uploaded a new version of VMMaker to project VM Maker:
http://www.squeaksource.com/VMMaker/VMMaker-jcg.182.mcz

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

Name: VMMaker-jcg.182
Author: jcg
Time: 14 June 2010, 3:17:32 am
UUID: a90f8eaa-cb37-4f2d-8b25-93240caf0823
Ancestors: VMMaker-dtl.181

Fix stack-imbalance in FFIPlugin>>primitiveDestroyManualSurface.

=============== Diff against VMMaker-dtl.181 ===============

Item was changed:
  ----- Method: FFIPlugin>>primitiveDestroyManualSurface (in category 'primitives - surfaces') -----
  primitiveDestroyManualSurface
  "arguments: name(type, stack offset)
  surfaceID(Integer, 0)"
  | surfaceID result |
  self export: true.
 
  interpreterProxy methodArgumentCount == 1 ifFalse: [^interpreterProxy primitiveFail].
  surfaceID := interpreterProxy stackIntegerValue: 0.
  interpreterProxy failed ifTrue: [^nil].
  result := self destroyManualSurface: surfaceID.
  result = 0 ifTrue: [^interpreterProxy primitiveFail].
+ ^interpreterProxy pop: 1
- ^interpreterProxy pop: 2
  !