summaryrefslogtreecommitdiff
path: root/vm/mterp/x86/OP_RETURN.S
diff options
context:
space:
mode:
Diffstat (limited to 'vm/mterp/x86/OP_RETURN.S')
-rw-r--r--vm/mterp/x86/OP_RETURN.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/vm/mterp/x86/OP_RETURN.S b/vm/mterp/x86/OP_RETURN.S
new file mode 100644
index 0000000..082b82e
--- /dev/null
+++ b/vm/mterp/x86/OP_RETURN.S
@@ -0,0 +1,12 @@
+%verify "executed"
+ /*
+ * Return a 32-bit value. Copies the return value into the "self"
+ * structure, then jumps to the return handler.
+ *
+ * for: return, return-object
+ */
+ /* op vAA */
+ movl rSELF,%ecx
+ GET_VREG_R %eax rINST # eax<- vAA
+ movl %eax,offThread_retval(%ecx) # retval.i <- AA
+ jmp common_returnFromMethod