< prev index next >

src/hotspot/share/jvmci/jvmciCompilerToVM.cpp

Print this page
*** 2198,11 ***
  C2V_END
  
  
  C2V_VMENTRY_0(jint, arrayBaseOffset, (JNIEnv* env, jobject, jchar type_char))
    BasicType type = JVMCIENV->typeCharToBasicType(type_char, JVMCI_CHECK_0);
!   return arrayOopDesc::header_size(type) * HeapWordSize;
  C2V_END
  
  C2V_VMENTRY_0(jint, arrayIndexScale, (JNIEnv* env, jobject, jchar type_char))
    BasicType type = JVMCIENV->typeCharToBasicType(type_char, JVMCI_CHECK_0);
    return type2aelembytes(type);
--- 2198,11 ---
  C2V_END
  
  
  C2V_VMENTRY_0(jint, arrayBaseOffset, (JNIEnv* env, jobject, jchar type_char))
    BasicType type = JVMCIENV->typeCharToBasicType(type_char, JVMCI_CHECK_0);
!   return arrayOopDesc::base_offset_in_bytes(type);
  C2V_END
  
  C2V_VMENTRY_0(jint, arrayIndexScale, (JNIEnv* env, jobject, jchar type_char))
    BasicType type = JVMCIENV->typeCharToBasicType(type_char, JVMCI_CHECK_0);
    return type2aelembytes(type);
< prev index next >