< prev index next >

src/hotspot/share/ci/ciObject.hpp

Print this page




  90   // generated code to represent this oop.  This address
  91   // is not the true address of the oop -- it will get patched
  92   // during nmethod creation.
  93   //
  94   // Usage note: no address arithmetic allowed.  Oop must
  95   // be registered with the oopRecorder.
  96   jobject constant_encoding();
  97 
  98   virtual bool is_object() const            { return true; }
  99 
 100   // What kind of ciObject is this?
 101   virtual bool is_null_object()       const { return false; }
 102   virtual bool is_call_site()         const { return false; }
 103   virtual bool is_instance()                { return false; }
 104   virtual bool is_member_name()       const { return false; }
 105   virtual bool is_method_handle()     const { return false; }
 106   virtual bool is_method_type()       const { return false; }
 107   virtual bool is_array()                   { return false; }
 108   virtual bool is_obj_array()               { return false; }
 109   virtual bool is_type_array()              { return false; }

 110 
 111   // Is this a type or value which has no associated class?
 112   // It is true of primitive types and null objects.
 113   virtual bool is_classless() const         { return false; }
 114   virtual void dump_replay_data(outputStream* st) { /* do nothing */ }
 115 
 116   // Note: some ciObjects refer to oops which have yet to be created.
 117   // We refer to these as "unloaded".  Specifically, there are
 118   // unloaded instances of java.lang.Class,
 119   // java.lang.invoke.MethodHandle, and java.lang.invoke.MethodType.
 120   // By convention the ciNullObject is considered loaded, and
 121   // primitive types are considered loaded.
 122   bool is_loaded() const {
 123     return handle() != NULL || is_classless();
 124   }
 125 
 126   // Subclass casting with assertions.
 127   ciNullObject* as_null_object() {
 128     assert(is_null_object(), "bad cast");
 129     return (ciNullObject*)this;




  90   // generated code to represent this oop.  This address
  91   // is not the true address of the oop -- it will get patched
  92   // during nmethod creation.
  93   //
  94   // Usage note: no address arithmetic allowed.  Oop must
  95   // be registered with the oopRecorder.
  96   jobject constant_encoding();
  97 
  98   virtual bool is_object() const            { return true; }
  99 
 100   // What kind of ciObject is this?
 101   virtual bool is_null_object()       const { return false; }
 102   virtual bool is_call_site()         const { return false; }
 103   virtual bool is_instance()                { return false; }
 104   virtual bool is_member_name()       const { return false; }
 105   virtual bool is_method_handle()     const { return false; }
 106   virtual bool is_method_type()       const { return false; }
 107   virtual bool is_array()                   { return false; }
 108   virtual bool is_obj_array()               { return false; }
 109   virtual bool is_type_array()              { return false; }
 110   virtual bool is_value_array()             { return false; }
 111 
 112   // Is this a type or value which has no associated class?
 113   // It is true of primitive types and null objects.
 114   virtual bool is_classless() const         { return false; }
 115   virtual void dump_replay_data(outputStream* st) { /* do nothing */ }
 116 
 117   // Note: some ciObjects refer to oops which have yet to be created.
 118   // We refer to these as "unloaded".  Specifically, there are
 119   // unloaded instances of java.lang.Class,
 120   // java.lang.invoke.MethodHandle, and java.lang.invoke.MethodType.
 121   // By convention the ciNullObject is considered loaded, and
 122   // primitive types are considered loaded.
 123   bool is_loaded() const {
 124     return handle() != NULL || is_classless();
 125   }
 126 
 127   // Subclass casting with assertions.
 128   ciNullObject* as_null_object() {
 129     assert(is_null_object(), "bad cast");
 130     return (ciNullObject*)this;


< prev index next >