changeset 17266:00dd7b3c5aea

float and double constants cannot be inlined
author Lukas Stadler <lukas.stadler@oracle.com>
date Tue, 30 Sep 2014 11:08:10 +0200
parents 5c6c924abd49
children 4bf8f836bba5
files graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java	Tue Sep 30 11:08:10 2014 +0200
+++ b/graal/com.oracle.graal.compiler.amd64/src/com/oracle/graal/compiler/amd64/AMD64LIRGenerator.java	Tue Sep 30 11:08:10 2014 +0200
@@ -114,8 +114,18 @@
                 return NumUtil.isInt(c.asLong()) && !getCodeCache().needsDataPatch(c);
             case Object:
                 return c.isNull();
+            case Boolean:
+            case Byte:
+            case Char:
+            case Int:
+            case Short:
+            case Illegal:
+                return true;
+            case Double:
+            case Float:
+                return false;
             default:
-                return true;
+                throw GraalInternalError.shouldNotReachHere();
         }
     }