diff graal/com.oracle.max.cri/src/com/sun/cri/ci/CiConstant.java @ 4182:de7b3e7ae528

Simplify CiValue
author Christian Wimmer <Christian.Wimmer@Oracle.com>
date Mon, 02 Jan 2012 14:38:17 -0800
parents f5328dda9714
children
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiConstant.java	Mon Jan 02 14:16:08 2012 -0800
+++ b/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiConstant.java	Mon Jan 02 14:38:17 2012 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2012, 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
@@ -28,11 +28,8 @@
  * instances that represent frequently used constant values, such as {@link #ZERO}.
  */
 public final class CiConstant extends CiValue {
+    private static final long serialVersionUID = -6355452536852663986L;
 
-    /**
-     *
-     */
-    private static final long serialVersionUID = -6355452536852663986L;
     private static final CiConstant[] INT_CONSTANT_CACHE = new CiConstant[100];
     static {
         for (int i = 0; i < INT_CONSTANT_CACHE.length; ++i) {
@@ -309,11 +306,6 @@
         return o == this || o instanceof CiConstant && valueEqual((CiConstant) o, false);
     }
 
-    @Override
-    public boolean equalsIgnoringKind(CiValue o) {
-        return o == this || o instanceof CiConstant && valueEqual((CiConstant) o, true);
-    }
-
     /**
      * Checks whether this constant is identical to another constant or has the same value as it.
      * @param other the constant to compare for equality against this constant