Mercurial > hg > graal-compiler
diff graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/BitOpNodesTest.java @ 18187:9619ba4daf4c
Rename Constant to JavaConstant.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 30 Oct 2014 12:21:07 +0100 |
parents | 1668de777c42 |
children | 6dc4f0be9a70 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/BitOpNodesTest.java Thu Oct 30 11:18:48 2014 +0100 +++ b/graal/com.oracle.graal.replacements.test/src/com/oracle/graal/replacements/test/BitOpNodesTest.java Thu Oct 30 12:21:07 2014 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -58,7 +58,7 @@ @Test public void testBitCountIntConstant() { ValueNode result = parseAndInline("bitCountIntConstantSnippet"); - Assert.assertEquals(7, result.asConstant().asInt()); + Assert.assertEquals(7, result.asJavaConstant().asInt()); } public static int bitCountLongConstantSnippet() { @@ -88,7 +88,7 @@ @Test public void testBitCountLongConstant() { ValueNode result = parseAndInline("bitCountLongConstantSnippet"); - Assert.assertEquals(7, result.asConstant().asInt()); + Assert.assertEquals(7, result.asJavaConstant().asInt()); } public static int bitCountLongSnippet(long v) { @@ -122,7 +122,7 @@ @Test public void testScanForwardIntConstant() { ValueNode result = parseAndInline("scanForwardIntConstantSnippet"); - Assert.assertEquals(40, result.asConstant().asInt()); + Assert.assertEquals(40, result.asJavaConstant().asInt()); } public static int scanForwardIntSnippet(int v) { @@ -142,7 +142,7 @@ @Test public void testScanForwardLongConstant() { ValueNode result = parseAndInline("scanForwardLongConstantSnippet"); - Assert.assertEquals(72, result.asConstant().asInt()); + Assert.assertEquals(72, result.asJavaConstant().asInt()); } public static int scanForwardLongSnippet(long v) { @@ -178,7 +178,7 @@ @Test public void testScanReverseIntConstant() { ValueNode result = parseAndInline("scanReverseIntConstantSnippet"); - Assert.assertEquals(47, result.asConstant().asInt()); + Assert.assertEquals(47, result.asJavaConstant().asInt()); } public static int scanReverseIntSnippet(int v) { @@ -201,7 +201,7 @@ @Test public void testScanReverseLongConstant() { ValueNode result = parseAndInline("scanReverseLongConstantSnippet"); - Assert.assertEquals(111, result.asConstant().asInt()); + Assert.assertEquals(111, result.asJavaConstant().asInt()); } public static int scanReverseLongSnippet(long v) {