Mercurial > hg > graal-jvmci-8
annotate graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotRegistersProvider.java @ 18282:ecf3de366ecc
added HotSpotObjectConstant.getIdentityHashCode()
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 06 Nov 2014 13:24:16 +0100 |
parents | c0e660b07e02 |
children | 48c1ebd24120 |
rev | line source |
---|---|
12430
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
1 /* |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
2 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
4 * |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
7 * published by the Free Software Foundation. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
8 * |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
12 * version 2 for more details (a copy is included in the LICENSE file that |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
13 * accompanied this code). |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
14 * |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
15 * You should have received a copy of the GNU General Public License version |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
16 * 2 along with this work; if not, write to the Free Software Foundation, |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
18 * |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
20 * or visit www.oracle.com if you need additional information or have any |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
21 * questions. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
22 */ |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
23 package com.oracle.graal.hotspot.meta; |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
24 |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
25 import com.oracle.graal.api.code.*; |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
26 |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
27 /** |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
28 * Special registers reserved by HotSpot for frequently used values. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
29 */ |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
30 public interface HotSpotRegistersProvider { |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
31 |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
32 /** |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
33 * Gets the register holding the current thread. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
34 */ |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
35 Register getThreadRegister(); |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
36 |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
37 /** |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
38 * Gets the register holding the heap base address for compressed pointers. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
39 */ |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
40 Register getHeapBaseRegister(); |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
41 |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
42 /** |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
43 * Gets the stack pointer register. |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
44 */ |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
45 Register getStackPointerRegister(); |
c0e660b07e02
introduced HotSpotRegistersProvider interface
Doug Simon <doug.simon@oracle.com>
parents:
diff
changeset
|
46 } |