Mercurial > hg > truffle
annotate graal/com.oracle.graal.hotspot.amd64/src/com/oracle/graal/hotspot/amd64/AMD64DeoptimizationStub.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 | be44c1ca8f00 |
children | 5324104ac4f3 |
rev | line source |
---|---|
15104 | 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.graal.hotspot.amd64; | |
24 | |
25 import static com.oracle.graal.amd64.AMD64.*; | |
26 | |
27 import com.oracle.graal.api.code.*; | |
28 import com.oracle.graal.hotspot.*; | |
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:
18526
diff
changeset
|
29 import com.oracle.graal.hotspot.jvmci.*; |
15104 | 30 import com.oracle.graal.hotspot.meta.*; |
31 import com.oracle.graal.hotspot.stubs.*; | |
32 | |
33 final class AMD64DeoptimizationStub extends DeoptimizationStub { | |
34 | |
35 private RegisterConfig registerConfig; | |
36 | |
18526
be44c1ca8f00
removed static access to HotSpotGraalRuntime from some AMD64 HotSpot classes
Doug Simon <doug.simon@oracle.com>
parents:
15456
diff
changeset
|
37 public AMD64DeoptimizationStub(HotSpotProviders providers, TargetDescription target, HotSpotVMConfig config, HotSpotForeignCallLinkage linkage) { |
15104 | 38 super(providers, target, linkage); |
18526
be44c1ca8f00
removed static access to HotSpotGraalRuntime from some AMD64 HotSpot classes
Doug Simon <doug.simon@oracle.com>
parents:
15456
diff
changeset
|
39 registerConfig = new AMD64HotSpotRegisterConfig(target.arch, config, new Register[]{rbx, rcx, rdx, rsi, rdi, r8, r9, r10, r11, r13, r14}); |
15104 | 40 } |
41 | |
42 @Override | |
43 public RegisterConfig getRegisterConfig() { | |
44 return registerConfig; | |
45 } | |
46 } |