Gentoo Archives: gentoo-commits

From: "Jurek Bartuszek (jurek)" <jurek@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/libjit/files: libjit-0.1.0-jit-rules-interp.h
Date: Sun, 09 Sep 2007 18:39:51
Message-Id: E1IURaY-0003ty-Mg@stork.gentoo.org
1 jurek 07/09/09 18:32:54
2
3 Added: libjit-0.1.0-jit-rules-interp.h
4 Log:
5 dev-libs/libjit-0.1.0: added missing header file, fixing bug #190483
6 (Portage version: 2.1.2.12)
7
8 Revision Changes Path
9 1.1 dev-libs/libjit/files/libjit-0.1.0-jit-rules-interp.h
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libjit/files/libjit-0.1.0-jit-rules-interp.h?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/libjit/files/libjit-0.1.0-jit-rules-interp.h?rev=1.1&content-type=text/plain
13
14 Index: libjit-0.1.0-jit-rules-interp.h
15 ===================================================================
16 /*
17 * jit-rules-interp.h - Rules that define the interpreter characteristics.
18 *
19 * Copyright (C) 2004 Southern Storm Software, Pty Ltd.
20 *
21 * This program is free software; you can redistribute it and/or modify
22 * it under the terms of the GNU General Public License as published by
23 * the Free Software Foundation; either version 2 of the License, or
24 * (at your option) any later version.
25 *
26 * This program is distributed in the hope that it will be useful,
27 * but WITHOUT ANY WARRANTY; without even the implied warranty of
28 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 * GNU General Public License for more details.
30 *
31 * You should have received a copy of the GNU General Public License
32 * along with this program; if not, write to the Free Software
33 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34 */
35
36 #ifndef _JIT_RULES_INTERP_H
37 #define _JIT_RULES_INTERP_H
38
39 #include "jit-interp.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 /*
46 * Information about all of the registers, in allocation order.
47 */
48 #define JIT_REG_INFO \
49 {"r0", 0, -1, JIT_REG_ALL | JIT_REG_CALL_USED | \
50 JIT_REG_START_STACK | JIT_REG_IN_STACK}, \
51 {"r1", 1, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
52 {"r2", 2, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
53 {"r3", 3, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
54 {"r4", 4, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
55 {"r5", 5, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
56 {"r6", 6, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
57 {"r7", 7, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
58 {"r8", 8, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
59 {"r9", 9, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
60 {"r10", 10, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
61 {"r11", 11, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
62 {"r12", 12, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
63 {"r13", 13, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
64 {"r14", 14, -1, JIT_REG_ALL | JIT_REG_CALL_USED | JIT_REG_IN_STACK}, \
65 {"r15", 15, -1, JIT_REG_ALL | JIT_REG_CALL_USED | \
66 JIT_REG_END_STACK | JIT_REG_IN_STACK},
67 #define JIT_NUM_REGS 16
68 #define JIT_NUM_GLOBAL_REGS 0
69
70 /*
71 * Define to 1 if we should always load values into registers
72 * before operating on them. i.e. the CPU does not have reg-mem
73 * and mem-reg addressing modes.
74 */
75 #define JIT_ALWAYS_REG_REG 1
76
77 /*
78 * The maximum number of bytes to allocate for the prolog.
79 * This may be shortened once we know the true prolog size.
80 */
81 #define JIT_PROLOG_SIZE jit_function_interp_size
82
83 /*
84 * Preferred alignment for the start of functions.
85 */
86 #define JIT_FUNCTION_ALIGNMENT (sizeof(void *))
87
88 /*
89 * Define this to 1 if the platform allows reads and writes on
90 * any byte boundary. Define to 0 if only properly-aligned
91 * memory accesses are allowed.
92 */
93 #define JIT_ALIGN_OVERRIDES 0
94
95 /*
96 * Extra state information that is added to the "jit_gencode" structure.
97 */
98 #define jit_extra_gen_state \
99 int working_area; \
100 int max_working_area; \
101 int extra_working_space
102 #define jit_extra_gen_init(gen) \
103 do { \
104 (gen)->working_area = 0; \
105 (gen)->max_working_area = 0; \
106 (gen)->extra_working_space = 0; \
107 } while (0)
108 #define jit_extra_gen_cleanup(gen) do { ; } while (0)
109
110 #ifdef __cplusplus
111 };
112 #endif
113
114 #endif /* _JIT_RULES_INTERP_H */
115
116
117
118 --
119 gentoo-commits@g.o mailing list