Sha256: 6250acbd938aea2e440061663a79fbb2dac0592b3a193f027b6b910e2a8e3af1

Contents?: true

Size: 1.89 KB

Versions: 38

Compression:

Stored size: 1.89 KB

Contents

#include "psm.h"

.text
.globl rust_psm_stack_direction
.p2align 2
.type rust_psm_stack_direction,@function
rust_psm_stack_direction:
/* extern "C" fn() -> u8 */
.cfi_startproc
    jmpl %o7 + 8, %g0
    mov STACK_DIRECTION_DESCENDING, %o0
.rust_psm_stack_direction_end:
.size       rust_psm_stack_direction,.rust_psm_stack_direction_end-rust_psm_stack_direction
.cfi_endproc


.globl rust_psm_stack_pointer
.p2align 2
.type rust_psm_stack_pointer,@function
rust_psm_stack_pointer:
/* extern "C" fn() -> *mut u8 */
.cfi_startproc
    jmpl %o7 + 8, %g0
    mov %o6, %o0
.rust_psm_stack_pointer_end:
.size       rust_psm_stack_pointer,.rust_psm_stack_pointer_end-rust_psm_stack_pointer
.cfi_endproc


.globl rust_psm_replace_stack
.p2align 2
.type rust_psm_replace_stack,@function
rust_psm_replace_stack:
/* extern "C" fn(%i0: usize, %i1: extern "C" fn(usize), %i2: *mut u8) */
.cfi_startproc
    .cfi_def_cfa 0, 0
    .cfi_return_column 0
    jmpl %o1, %g0
    /* WEIRD: Why is the LSB set for the %sp and %fp on SPARC?? */
    add %o2, -0x7ff, %o6
.rust_psm_replace_stack_end:
.size       rust_psm_replace_stack,.rust_psm_replace_stack_end-rust_psm_replace_stack
.cfi_endproc


.globl rust_psm_on_stack
.p2align 2
.type rust_psm_on_stack,@function
rust_psm_on_stack:
/* extern "C" fn(%i0: usize, %i1: usize, %i2: extern "C" fn(usize, usize), %i3: *mut u8) */
.cfi_startproc
    /* The fact that locals and saved register windows are offset by 2kB is
       very nasty property of SPARC architecture and ABI. In this case it forces us to slice off
       2kB of the stack space outright for no good reason other than adapting to a botched design.
    */
    save %o3, -0x87f, %o6
    .cfi_def_cfa_register %fp
    .cfi_window_save
    .cfi_register %r15, %r31
    mov %i1, %o1
    jmpl %i2, %o7
    mov %i0, %o0
    ret
    restore
.rust_psm_on_stack_end:
.size       rust_psm_on_stack,.rust_psm_on_stack_end-rust_psm_on_stack
.cfi_endproc

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/psm-0.1.24/src/arch/sparc64.s
wasmtime-28.0.0 ./ext/cargo-vendor/psm-0.1.24/src/arch/sparc64.s
wasmtime-27.0.0 ./ext/cargo-vendor/psm-0.1.24/src/arch/sparc64.s
wasmtime-26.0.0 ./ext/cargo-vendor/psm-0.1.23/src/arch/sparc64.s
wasmtime-25.0.2 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-25.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-25.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-24.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-23.0.2 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-22.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-21.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-20.0.2 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-20.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-18.0.3 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-17.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-17.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-16.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-15.0.1 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-15.0.0 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s
wasmtime-14.0.4 ./ext/cargo-vendor/psm-0.1.21/src/arch/sparc64.s