< prev index next >

src/share/vm/opto/type.hpp

Print this page

        

@@ -25,10 +25,11 @@
 #ifndef SHARE_VM_OPTO_TYPE_HPP
 #define SHARE_VM_OPTO_TYPE_HPP
 
 #include "opto/adlcVMDeps.hpp"
 #include "runtime/handles.hpp"
+#include "opto/opcodes.hpp"
 
 // Portions of code courtesy of Clifford Click
 
 // Optimization - Graph Style
 

@@ -133,11 +134,11 @@
   typedef struct {
     const TYPES                dual_type;
     const BasicType            basic_type;
     const char*                msg;
     const bool                 isa_oop;
-    const int                  ideal_reg;
+    const Opcodes              ideal_reg;
     const relocInfo::relocType reloc;
   } TypeInfo;
 
   // Dictionary of types shared among compilations.
   static Dict* _shared_type_dict;

@@ -406,11 +407,11 @@
   static const Type *RETURN_ADDRESS;
   static const Type *TOP;
 
   // Mapping from compiler type to VM BasicType
   BasicType basic_type() const       { return _type_info[_base].basic_type; }
-  int ideal_reg() const              { return _type_info[_base].ideal_reg; }
+  Opcodes ideal_reg() const          { return _type_info[_base].ideal_reg; }
   const char* msg() const            { return _type_info[_base].msg; }
   bool isa_oop_ptr() const           { return _type_info[_base].isa_oop; }
   relocInfo::relocType reloc() const { return _type_info[_base].reloc; }
 
   // Mapping from CI type system to compiler type:
< prev index next >