blob: fc0ab27c3349a02ec6968d5c898e5fb749094951 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef __X86_FRAME_H
#define __X86_FRAME_H
#include "jit/stack-slot.h"
#include <stdbool.h>
struct vm_method;
struct expression;
struct compilation_unit;
#define X86_STACK_ALIGN 16
struct native_stack_frame {
void *prev; /* previous stack frame link */
unsigned long return_address;
unsigned long args[0];
} __attribute__((packed));
#ifdef CONFIG_X86_32
#define NR_TRAMPOLINE_LOCALS 0
struct jit_stack_frame {
void *prev; /* previous stack frame link */
unsigned long old_ebx;
unsigned long old_esi;
unsigned long old_edi;
unsigned long return_address;
unsigned long args[0];
} __attribute__((packed));
#else
#define NR_TRAMPOLINE_LOCALS 14
struct jit_stack_frame {
void *prev; /* previous stack frame link */
unsigned long return_address;
unsigned long args[0];
} __attribute__((packed));
#endif /* CONFIG_X86_32 */
unsigned long frame_local_offset(struct vm_method *, struct expression *);
unsigned long slot_offset(struct stack_slot *slot);
unsigned long slot_offset_64(struct stack_slot *slot);
unsigned long frame_locals_size(struct stack_frame *frame);
unsigned long cu_frame_locals_offset(struct compilation_unit *cu);
#endif
|