mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-18 02:59:21 +00:00
Update some assembler directives for darwin target (#395)
This commit is contained in:
parent
dc4b8c4822
commit
d8d367b367
|
@ -4,8 +4,14 @@
|
||||||
*/
|
*/
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.global invokeNative
|
#ifndef BH_PLATFORM_DARWIN
|
||||||
.type invokeNative,function
|
.globl invokeNative
|
||||||
|
.type invokeNative, @function
|
||||||
|
invokeNative:
|
||||||
|
#else
|
||||||
|
.globl _invokeNative
|
||||||
|
_invokeNative:
|
||||||
|
#endif /* end of BH_PLATFORM_DARWIN */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Arguments passed in:
|
* Arguments passed in:
|
||||||
|
@ -15,7 +21,6 @@
|
||||||
* x2 nstacks
|
* x2 nstacks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
invokeNative:
|
|
||||||
sub sp, sp, #0x30
|
sub sp, sp, #0x30
|
||||||
stp x19, x20, [sp, #0x20] /* save the registers */
|
stp x19, x20, [sp, #0x20] /* save the registers */
|
||||||
stp x21, x22, [sp, #0x10]
|
stp x21, x22, [sp, #0x10]
|
||||||
|
|
|
@ -4,8 +4,14 @@
|
||||||
*/
|
*/
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.global invokeNative
|
#ifndef BH_PLATFORM_DARWIN
|
||||||
.type invokeNative,function
|
.globl invokeNative
|
||||||
|
.type invokeNative, @function
|
||||||
|
invokeNative:
|
||||||
|
#else
|
||||||
|
.globl _invokeNative
|
||||||
|
_invokeNative:
|
||||||
|
#endif /* end of BH_PLATFORM_DARWIN */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Arguments passed in:
|
* Arguments passed in:
|
||||||
|
@ -15,7 +21,6 @@
|
||||||
* r2 argc
|
* r2 argc
|
||||||
*/
|
*/
|
||||||
|
|
||||||
invokeNative:
|
|
||||||
stmfd sp!, {r4, r5, r6, r7, lr}
|
stmfd sp!, {r4, r5, r6, r7, lr}
|
||||||
sub sp, sp, #4 /* make sp 8 byte aligned */
|
sub sp, sp, #4 /* make sp 8 byte aligned */
|
||||||
mov ip, r0 /* ip = function ptr */
|
mov ip, r0 /* ip = function ptr */
|
||||||
|
|
|
@ -4,8 +4,14 @@
|
||||||
*/
|
*/
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.global invokeNative
|
#ifndef BH_PLATFORM_DARWIN
|
||||||
.type invokeNative,function
|
.globl invokeNative
|
||||||
|
.type invokeNative, @function
|
||||||
|
invokeNative:
|
||||||
|
#else
|
||||||
|
.globl _invokeNative
|
||||||
|
_invokeNative:
|
||||||
|
#endif /* end of BH_PLATFORM_DARWIN */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Arguments passed in:
|
* Arguments passed in:
|
||||||
|
@ -15,7 +21,6 @@
|
||||||
* r2 nstacks
|
* r2 nstacks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
invokeNative:
|
|
||||||
stmfd sp!, {r4, r5, r6, r7, lr}
|
stmfd sp!, {r4, r5, r6, r7, lr}
|
||||||
mov ip, r0 /* ip = function ptr */
|
mov ip, r0 /* ip = function ptr */
|
||||||
mov r4, r1 /* r4 = argv */
|
mov r4, r1 /* r4 = argv */
|
||||||
|
|
|
@ -4,8 +4,14 @@
|
||||||
*/
|
*/
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.global invokeNative
|
#ifndef BH_PLATFORM_DARWIN
|
||||||
.type invokeNative,function
|
.globl invokeNative
|
||||||
|
.type invokeNative, @function
|
||||||
|
invokeNative:
|
||||||
|
#else
|
||||||
|
.globl _invokeNative
|
||||||
|
_invokeNative:
|
||||||
|
#endif /* end of BH_PLATFORM_DARWIN */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Arguments passed in:
|
* Arguments passed in:
|
||||||
|
@ -15,7 +21,6 @@
|
||||||
* r2 argc
|
* r2 argc
|
||||||
*/
|
*/
|
||||||
|
|
||||||
invokeNative:
|
|
||||||
push {r4, r5, r6, r7}
|
push {r4, r5, r6, r7}
|
||||||
push {lr}
|
push {lr}
|
||||||
mov ip, r0 /* ip = function ptr */
|
mov ip, r0 /* ip = function ptr */
|
||||||
|
|
|
@ -4,8 +4,14 @@
|
||||||
*/
|
*/
|
||||||
.text
|
.text
|
||||||
.align 2
|
.align 2
|
||||||
.global invokeNative
|
#ifndef BH_PLATFORM_DARWIN
|
||||||
.type invokeNative,function
|
.globl invokeNative
|
||||||
|
.type invokeNative, @function
|
||||||
|
invokeNative:
|
||||||
|
#else
|
||||||
|
.globl _invokeNative
|
||||||
|
_invokeNative:
|
||||||
|
#endif /* end of BH_PLATFORM_DARWIN */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Arguments passed in:
|
* Arguments passed in:
|
||||||
|
@ -15,7 +21,6 @@
|
||||||
* r2 nstacks
|
* r2 nstacks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
invokeNative:
|
|
||||||
push {r4, r5, r6, r7}
|
push {r4, r5, r6, r7}
|
||||||
push {lr}
|
push {lr}
|
||||||
mov ip, r0 /* ip = function ptr */
|
mov ip, r0 /* ip = function ptr */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user