< prev index next >

src/hotspot/share/ci/ciKlass.cpp

Print this page
*** 247,5 ***
--- 247,25 ---
  const char* ciKlass::external_name() const {
    GUARDED_VM_ENTRY(
      return get_Klass()->external_name();
    )
  }
+ 
+ // ------------------------------------------------------------------
+ // ciKlass::prototype_header_offset
+ juint ciKlass::prototype_header_offset() {
+   assert(is_loaded(), "must be loaded");
+ 
+   VM_ENTRY_MARK;
+   Klass* this_klass = get_Klass();
+   return in_bytes(this_klass->prototype_header_offset());
+ }
+ 
+ // ------------------------------------------------------------------
+ // ciKlass::prototype_header
+ uintptr_t ciKlass::prototype_header() {
+   assert(is_loaded(), "must be loaded");
+ 
+   VM_ENTRY_MARK;
+   Klass* this_klass = get_Klass();
+   return (uintptr_t)this_klass->prototype_header().to_pointer();
+ }
< prev index next >