Mercurial > hg > truffle
comparison src/os_cpu/bsd_x86/vm/bsd_x86_64.s @ 11127:980532a806a5
8016697: Use stubs to implement safefetch
Summary: Implement Safefetch as stub routines. This reduces compiler and os dependencies.
Reviewed-by: twisti, kvn
author | goetz |
---|---|
date | Thu, 20 Jun 2013 15:02:05 +0200 |
parents | f08d439fab8c |
children | de6a9e811145 |
comparison
equal
deleted
inserted
replaced
11088:ea4d24c1e0c6 | 11127:980532a806a5 |
---|---|
43 .globl SYMBOL(_Copy_conjoint_jints_atomic) | 43 .globl SYMBOL(_Copy_conjoint_jints_atomic) |
44 .globl SYMBOL(_Copy_arrayof_conjoint_jlongs) | 44 .globl SYMBOL(_Copy_arrayof_conjoint_jlongs) |
45 .globl SYMBOL(_Copy_conjoint_jlongs_atomic) | 45 .globl SYMBOL(_Copy_conjoint_jlongs_atomic) |
46 | 46 |
47 .text | 47 .text |
48 | |
49 .globl SYMBOL(SafeFetch32), SYMBOL(Fetch32PFI), SYMBOL(Fetch32Resume) | |
50 .p2align 4,,15 | |
51 ELF_TYPE(SafeFetch32,@function) | |
52 // Prototype: int SafeFetch32 (int * Adr, int ErrValue) | |
53 SYMBOL(SafeFetch32): | |
54 movl %esi, %eax | |
55 SYMBOL(Fetch32PFI): | |
56 movl (%rdi), %eax | |
57 SYMBOL(Fetch32Resume): | |
58 ret | |
59 | |
60 .globl SYMBOL(SafeFetchN), SYMBOL(FetchNPFI), SYMBOL(FetchNResume) | |
61 .p2align 4,,15 | |
62 ELF_TYPE(SafeFetchN,@function) | |
63 // Prototype: intptr_t SafeFetchN (intptr_t * Adr, intptr_t ErrValue) | |
64 SYMBOL(SafeFetchN): | |
65 movq %rsi, %rax | |
66 SYMBOL(FetchNPFI): | |
67 movq (%rdi), %rax | |
68 SYMBOL(FetchNResume): | |
69 ret | |
70 | 48 |
71 .globl SYMBOL(SpinPause) | 49 .globl SYMBOL(SpinPause) |
72 .p2align 4,,15 | 50 .p2align 4,,15 |
73 ELF_TYPE(SpinPause,@function) | 51 ELF_TYPE(SpinPause,@function) |
74 SYMBOL(SpinPause): | 52 SYMBOL(SpinPause): |