Mercurial > hg > truffle
comparison jvmci/com.oracle.jvmci.hotspotvmconfig/src/com/oracle/jvmci/hotspotvmconfig/HotSpotVMValue.java @ 21798:395ac43a8578
moved JVMCI sources from graal/ to jvmci/ directory
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 09 Jun 2015 00:22:49 +0200 |
parents | graal/com.oracle.jvmci.hotspotvmconfig/src/com/oracle/jvmci/hotspotvmconfig/HotSpotVMValue.java@b1530a6cce8c |
children |
comparison
equal
deleted
inserted
replaced
21797:42452d2dfbec | 21798:395ac43a8578 |
---|---|
1 /* | |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 */ | |
23 package com.oracle.jvmci.hotspotvmconfig; | |
24 | |
25 import java.lang.annotation.*; | |
26 | |
27 @Target(ElementType.FIELD) | |
28 @Retention(RetentionPolicy.RUNTIME) | |
29 public @interface HotSpotVMValue { | |
30 | |
31 /** | |
32 * A C++ expression to be evaluated and assigned to the field. | |
33 */ | |
34 String expression(); | |
35 | |
36 enum Type { | |
37 /** | |
38 * A C++ address which might require extra casts to be safely assigned to a Java field. | |
39 */ | |
40 ADDRESS, | |
41 | |
42 /** | |
43 * A simple value which can be assigned to a regular Java field. | |
44 */ | |
45 VALUE | |
46 } | |
47 | |
48 /** | |
49 * If {@link #expression} is a C++ function name, {@link #signature} represents the signature of | |
50 * the function. | |
51 * | |
52 */ | |
53 String signature() default ""; | |
54 | |
55 Type get() default Type.VALUE; | |
56 | |
57 /** | |
58 * List of preprocessor symbols that should guard initialization of this value. | |
59 */ | |
60 String[] defines() default {}; | |
61 | |
62 } |