Mercurial > hg > truffle
annotate graal/com.oracle.jvmci.hotspotvmconfig/src/com/oracle/jvmci/hotspotvmconfig/HotSpotVMValue.java @ 21784:f4e1d958f1c3
[AMD64] Create AMD64 specific address nodes.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Mon, 08 Jun 2015 19:19:45 +0200 |
parents | b1530a6cce8c |
children |
rev | line source |
---|---|
15805
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
1 /* |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
4 * |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
8 * |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
13 * accompanied this code). |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
14 * |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
18 * |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
21 * questions. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
22 */ |
21554
b1530a6cce8c
renamed com.oracle.graal.[debug|options|hotspotvmconfig]* modules to com.oracle.jvmci.[debug|options|hotspotvmconfig]* modules (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents:
16182
diff
changeset
|
23 package com.oracle.jvmci.hotspotvmconfig; |
15805
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
24 |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
25 import java.lang.annotation.*; |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
26 |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
27 @Target(ElementType.FIELD) |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
28 @Retention(RetentionPolicy.RUNTIME) |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
29 public @interface HotSpotVMValue { |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
30 |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
31 /** |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
32 * A C++ expression to be evaluated and assigned to the field. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
33 */ |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
34 String expression(); |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
35 |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
36 enum Type { |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
37 /** |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
38 * A C++ address which might require extra casts to be safely assigned to a Java field. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
39 */ |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
40 ADDRESS, |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
41 |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
42 /** |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
43 * A simple value which can be assigned to a regular Java field. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
44 */ |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
45 VALUE |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
46 } |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
47 |
16182
0a7e9347f8d0
Add an ability to specify the signature of a C/C++ foreign function in HotSpotVMConfig and get the full symbol string; add a couple of convenience getters and setters for stubs with foreign call linkage.
bharadwaj
parents:
15805
diff
changeset
|
48 /** |
0a7e9347f8d0
Add an ability to specify the signature of a C/C++ foreign function in HotSpotVMConfig and get the full symbol string; add a couple of convenience getters and setters for stubs with foreign call linkage.
bharadwaj
parents:
15805
diff
changeset
|
49 * If {@link #expression} is a C++ function name, {@link #signature} represents the signature of |
0a7e9347f8d0
Add an ability to specify the signature of a C/C++ foreign function in HotSpotVMConfig and get the full symbol string; add a couple of convenience getters and setters for stubs with foreign call linkage.
bharadwaj
parents:
15805
diff
changeset
|
50 * the function. |
0a7e9347f8d0
Add an ability to specify the signature of a C/C++ foreign function in HotSpotVMConfig and get the full symbol string; add a couple of convenience getters and setters for stubs with foreign call linkage.
bharadwaj
parents:
15805
diff
changeset
|
51 * |
0a7e9347f8d0
Add an ability to specify the signature of a C/C++ foreign function in HotSpotVMConfig and get the full symbol string; add a couple of convenience getters and setters for stubs with foreign call linkage.
bharadwaj
parents:
15805
diff
changeset
|
52 */ |
0a7e9347f8d0
Add an ability to specify the signature of a C/C++ foreign function in HotSpotVMConfig and get the full symbol string; add a couple of convenience getters and setters for stubs with foreign call linkage.
bharadwaj
parents:
15805
diff
changeset
|
53 String signature() default ""; |
0a7e9347f8d0
Add an ability to specify the signature of a C/C++ foreign function in HotSpotVMConfig and get the full symbol string; add a couple of convenience getters and setters for stubs with foreign call linkage.
bharadwaj
parents:
15805
diff
changeset
|
54 |
15805
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
55 Type get() default Type.VALUE; |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
56 |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
57 /** |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
58 * List of preprocessor symbols that should guard initialization of this value. |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
59 */ |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
60 String[] defines() default {}; |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
61 |
dffc37fa7157
initialize HotSpotVMConfig fields efficiently from C++
Tom Rodriguez <tom.rodriguez@oracle.com>
parents:
diff
changeset
|
62 } |