asm/AJStdCallCallInfo.st
changeset 3 483729eb4432
child 23 d2d9a2d4d6bf
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/asm/AJStdCallCallInfo.st	Tue Dec 15 23:18:02 2015 +0000
@@ -0,0 +1,28 @@
+"{ Package: 'jv:dragonfly/asm' }"
+
+"{ NameSpace: Smalltalk }"
+
+AJCallInfo subclass:#AJStdCallCallInfo
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'AsmJit-StackManagement'
+!
+
+AJStdCallCallInfo comment:'stdcall calling convention.
Used on windows. No need for stack cleanup after call. No need to align stack before making call.'
+!
+
+!AJStdCallCallInfo methodsFor:'emitting code'!
+
+emitAlignment
+    "do nothing"
+    
+    "stdcall calling convention requires no stack alignment, no stack cleanup after call"
+!
+
+emitAlignmentIfNeeded
+    "do nothing"
+    
+    "stdcall calling convention requires no stack alignment, no stack cleanup after call"
+! !
+