bug 535894 - Crash under asmXPTC_InvokeByIndex r=crowder

This commit is contained in:
Brad Lassey 2009-12-29 20:28:46 -05:00
parent 7a7bba15a0
commit a79fd24e92

View File

@ -18,7 +18,7 @@
asmXPTC_InvokeByIndex
mov r12, sp
stmdb sp!, {r4 - r6, r12, lr} ; we're using registers 4, 5 and 6. Save them
sub sp, sp, #16
sub sp, sp, #24
mov r6, r0 ; store 'that' (the target's this)
mov r5, r1, lsl #2 ; a vtable index = methodIndex * 4
mov r4, sp ; Back up the initial stack pointer.
@ -56,7 +56,7 @@ asmXPTC_InvokeByIndex
mov sp, r4 ; Restore the original stack pointer.
add sp, sp, #16
add sp, sp, #24
ldmia sp!, {r4 - r6, sp, pc} ; Restore registers and return.
END