annotate graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotTargetDescription.java @ 21526:1da7aef31a08

created com.oracle.graal.hotspot.jvmci package and moved classes destined for future JVMCI module into it (JBS:GRAAL-53)
author Doug Simon <doug.simon@oracle.com>
date Tue, 19 May 2015 23:16:07 +0200
parents 92fc95e8667d
children 5324104ac4f3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14560
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
1 /*
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
4 *
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
5 * This code is free software; you can redistribute it and/or modify it
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
6 * under the terms of the GNU General Public License version 2 only, as
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
7 * published by the Free Software Foundation.
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
8 *
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
9 * This code is distributed in the hope that it will be useful, but WITHOUT
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
12 * version 2 for more details (a copy is included in the LICENSE file that
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
13 * accompanied this code).
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
14 *
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License version
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
16 * 2 along with this work; if not, write to the Free Software Foundation,
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
18 *
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
20 * or visit www.oracle.com if you need additional information or have any
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
21 * questions.
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
22 */
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
23 package com.oracle.graal.hotspot;
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
24
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
25 import com.oracle.graal.api.code.*;
21526
1da7aef31a08 created com.oracle.graal.hotspot.jvmci package and moved classes destined for future JVMCI module into it (JBS:GRAAL-53)
Doug Simon <doug.simon@oracle.com>
parents: 20981
diff changeset
26 import com.oracle.graal.hotspot.jvmci.*;
14560
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
27
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
28 public class HotSpotTargetDescription extends TargetDescription {
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
29
16116
9e5a323e0a1e Remove hotspot specific NarrowOop kind, use LIRKind.reference(Kind.Int) instead.
Roland Schatz <roland.schatz@oracle.com>
parents: 16114
diff changeset
30 public HotSpotTargetDescription(Architecture arch, boolean isMP, int stackAlignment, int implicitNullCheckLimit, boolean inlineObjects) {
14560
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
31 super(arch, isMP, stackAlignment, implicitNullCheckLimit, inlineObjects);
16104
4dd2cedc7f57 Revert using LIRKind.reference(Kind.Int) instead of hotspot specific NarrowOop kind (part of c0b8d395368b).
Roland Schatz <roland.schatz@oracle.com>
parents: 16094
diff changeset
32 }
4dd2cedc7f57 Revert using LIRKind.reference(Kind.Int) instead of hotspot specific NarrowOop kind (part of c0b8d395368b).
Roland Schatz <roland.schatz@oracle.com>
parents: 16094
diff changeset
33
4dd2cedc7f57 Revert using LIRKind.reference(Kind.Int) instead of hotspot specific NarrowOop kind (part of c0b8d395368b).
Roland Schatz <roland.schatz@oracle.com>
parents: 16094
diff changeset
34 @Override
14562
45812e05cdb3 Move narrow oop handling in reference maps to hotspot specific code.
Roland Schatz <roland.schatz@oracle.com>
parents: 14560
diff changeset
35 public ReferenceMap createReferenceMap(boolean hasRegisters, int stackSlotCount) {
16114
a0d1dfc113b8 Better documentation for HotSpotReferenceMap.
Roland Schatz <roland.schatz@oracle.com>
parents: 16104
diff changeset
36 return new HotSpotReferenceMap(hasRegisters ? arch.getRegisterReferenceMapSize() : 0, stackSlotCount, this);
14562
45812e05cdb3 Move narrow oop handling in reference maps to hotspot specific code.
Roland Schatz <roland.schatz@oracle.com>
parents: 14560
diff changeset
37 }
14560
570910f5412b Introduce Hotspot-specific NarrowOop kind.
Roland Schatz <roland.schatz@oracle.com>
parents:
diff changeset
38 }