Mercurial > hg > truffle
comparison graal/com.oracle.graal.hotspot.test/src/com/oracle/graal/hotspot/test/DataPatchTest.java @ 21527:07b088d61d5d
added HotSpotJVMCIRuntime* classes, replaced references to HotSpotGraalRuntime in VM with HotSpotJVMCIRuntime (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 22 May 2015 23:26:20 +0200 |
parents | 1da7aef31a08 |
children | 5324104ac4f3 |
comparison
equal
deleted
inserted
replaced
21526:1da7aef31a08 | 21527:07b088d61d5d |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 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 | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
26 import org.junit.*; | 26 import org.junit.*; |
27 | 27 |
28 import com.oracle.graal.api.replacements.*; | 28 import com.oracle.graal.api.replacements.*; |
29 import com.oracle.graal.compiler.test.*; | 29 import com.oracle.graal.compiler.test.*; |
30 import com.oracle.graal.graph.*; | 30 import com.oracle.graal.graph.*; |
31 import com.oracle.graal.hotspot.*; | |
32 import com.oracle.graal.hotspot.jvmci.*; | 31 import com.oracle.graal.hotspot.jvmci.*; |
33 import com.oracle.graal.hotspot.nodes.*; | 32 import com.oracle.graal.hotspot.nodes.*; |
34 import com.oracle.graal.hotspot.nodes.CompressionNode.CompressionOp; | 33 import com.oracle.graal.hotspot.nodes.CompressionNode.CompressionOp; |
35 import com.oracle.graal.nodeinfo.*; | 34 import com.oracle.graal.nodeinfo.*; |
36 import com.oracle.graal.nodes.*; | 35 import com.oracle.graal.nodes.*; |
69 public void narrowOopTest() { | 68 public void narrowOopTest() { |
70 Assume.assumeTrue("skipping narrow oop data patch test", config.useCompressedOops); | 69 Assume.assumeTrue("skipping narrow oop data patch test", config.useCompressedOops); |
71 test("narrowOopSnippet"); | 70 test("narrowOopSnippet"); |
72 } | 71 } |
73 | 72 |
74 private static final HotSpotVMConfig config = HotSpotGraalRuntime.runtime().getConfig(); | 73 private static final HotSpotVMConfig config = HotSpotJVMCIRuntime.runtime().getConfig(); |
75 private static boolean initReplacements = false; | 74 private static boolean initReplacements = false; |
76 | 75 |
77 @Before | 76 @Before |
78 public void initReplacements() { | 77 public void initReplacements() { |
79 if (!initReplacements) { | 78 if (!initReplacements) { |