hotspot/src/share/vm/opto/compile.cpp
changeset 38131 7bb27ec1a3d8
parent 37248 11a660dbbb8e
child 38133 78b95467b9f1
--- a/hotspot/src/share/vm/opto/compile.cpp	Mon Apr 25 10:53:42 2016 +0200
+++ b/hotspot/src/share/vm/opto/compile.cpp	Mon Apr 25 18:36:27 2016 +0300
@@ -1623,6 +1623,17 @@
   }
 }
 
+BasicType Compile::AliasType::basic_type() const {
+  if (element() != NULL) {
+    const Type* element = adr_type()->is_aryptr()->elem();
+    return element->isa_narrowoop() ? T_OBJECT : element->array_element_basic_type();
+  } if (field() != NULL) {
+    return field()->layout_type();
+  } else {
+    return T_ILLEGAL; // unknown
+  }
+}
+
 //---------------------------------print_on------------------------------------
 #ifndef PRODUCT
 void Compile::AliasType::print_on(outputStream* st) {