src/share/vm/graal/graalCompilerToVM.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File GRAAL-213 Sdiff src/share/vm/graal

src/share/vm/graal/graalCompilerToVM.cpp

Print this page




 603 BasicType basicTypes[] = { T_BOOLEAN, T_BYTE, T_SHORT, T_CHAR, T_INT, T_FLOAT, T_LONG, T_DOUBLE, T_OBJECT };
 604 int basicTypeCount = sizeof(basicTypes) / sizeof(BasicType);
 605 
 606 C2V_ENTRY(void, initializeConfiguration, (JNIEnv *env, jobject, jobject config))
 607 
 608 #define set_boolean(name, value) do { env->SetBooleanField(config, getFieldID(env, config, name, "Z"), value); } while (0)
 609 #define set_int(name, value) do { env->SetIntField(config, getFieldID(env, config, name, "I"), value); } while (0)
 610 #define set_long(name, value) do { env->SetLongField(config, getFieldID(env, config, name, "J"), value); } while (0)
 611 #define set_stub(name, value) do { set_long(name, (jlong) value); } while (0)
 612 #define set_object(name, value) do { env->SetObjectField(config, getFieldID(env, config, name, "Ljava/lang/Object;"), value); } while (0)
 613 #define set_int_array(name, value) do { env->SetObjectField(config, getFieldID(env, config, name, "[I"), value); } while (0)
 614 
 615   guarantee(HeapWordSize == sizeof(char*), "Graal assumption that HeadWordSize == machine word size is wrong");
 616 #ifdef _WIN64
 617   set_boolean("windowsOs", true);
 618 #else
 619   set_boolean("windowsOs", false);
 620 #endif
 621   set_boolean("verifyOops", VerifyOops);
 622   set_boolean("ciTime", CITime);


 623   set_boolean("useFastLocking", GraalUseFastLocking);
 624   set_boolean("useBiasedLocking", UseBiasedLocking);
 625   set_boolean("usePopCountInstruction", UsePopCountInstruction);
 626   set_boolean("useAESIntrinsics", UseAESIntrinsics);
 627   set_boolean("useTLAB", UseTLAB);
 628   set_boolean("useG1GC", UseG1GC);
 629   set_int("codeEntryAlignment", CodeEntryAlignment);
 630   set_int("stackShadowPages", StackShadowPages);
 631   set_int("hubOffset", oopDesc::klass_offset_in_bytes());
 632   set_int("markOffset", oopDesc::mark_offset_in_bytes());
 633   set_int("prototypeMarkWordOffset", in_bytes(Klass::prototype_header_offset()));
 634   set_int("superCheckOffsetOffset", in_bytes(Klass::super_check_offset_offset()));
 635   set_int("secondarySuperCacheOffset", in_bytes(Klass::secondary_super_cache_offset()));
 636   set_int("secondarySupersOffset", in_bytes(Klass::secondary_supers_offset()));
 637   set_int("subklassOffset", in_bytes(Klass::subklass_offset()));
 638   set_int("nextSiblingOffset", in_bytes(Klass::next_sibling_offset()));
 639   set_int("arrayLengthOffset", arrayOopDesc::length_offset_in_bytes());
 640   set_int("klassStateOffset", in_bytes(InstanceKlass::init_state_offset()));
 641   set_int("klassStateFullyInitialized", (int)InstanceKlass::fully_initialized);
 642   set_int("threadTlabTopOffset", in_bytes(JavaThread::tlab_top_offset()));




 603 BasicType basicTypes[] = { T_BOOLEAN, T_BYTE, T_SHORT, T_CHAR, T_INT, T_FLOAT, T_LONG, T_DOUBLE, T_OBJECT };
 604 int basicTypeCount = sizeof(basicTypes) / sizeof(BasicType);
 605 
 606 C2V_ENTRY(void, initializeConfiguration, (JNIEnv *env, jobject, jobject config))
 607 
 608 #define set_boolean(name, value) do { env->SetBooleanField(config, getFieldID(env, config, name, "Z"), value); } while (0)
 609 #define set_int(name, value) do { env->SetIntField(config, getFieldID(env, config, name, "I"), value); } while (0)
 610 #define set_long(name, value) do { env->SetLongField(config, getFieldID(env, config, name, "J"), value); } while (0)
 611 #define set_stub(name, value) do { set_long(name, (jlong) value); } while (0)
 612 #define set_object(name, value) do { env->SetObjectField(config, getFieldID(env, config, name, "Ljava/lang/Object;"), value); } while (0)
 613 #define set_int_array(name, value) do { env->SetObjectField(config, getFieldID(env, config, name, "[I"), value); } while (0)
 614 
 615   guarantee(HeapWordSize == sizeof(char*), "Graal assumption that HeadWordSize == machine word size is wrong");
 616 #ifdef _WIN64
 617   set_boolean("windowsOs", true);
 618 #else
 619   set_boolean("windowsOs", false);
 620 #endif
 621   set_boolean("verifyOops", VerifyOops);
 622   set_boolean("ciTime", CITime);
 623   set_boolean("printCompilation", PrintCompilation);
 624   set_boolean("printInlining", PrintInlining);
 625   set_boolean("useFastLocking", GraalUseFastLocking);
 626   set_boolean("useBiasedLocking", UseBiasedLocking);
 627   set_boolean("usePopCountInstruction", UsePopCountInstruction);
 628   set_boolean("useAESIntrinsics", UseAESIntrinsics);
 629   set_boolean("useTLAB", UseTLAB);
 630   set_boolean("useG1GC", UseG1GC);
 631   set_int("codeEntryAlignment", CodeEntryAlignment);
 632   set_int("stackShadowPages", StackShadowPages);
 633   set_int("hubOffset", oopDesc::klass_offset_in_bytes());
 634   set_int("markOffset", oopDesc::mark_offset_in_bytes());
 635   set_int("prototypeMarkWordOffset", in_bytes(Klass::prototype_header_offset()));
 636   set_int("superCheckOffsetOffset", in_bytes(Klass::super_check_offset_offset()));
 637   set_int("secondarySuperCacheOffset", in_bytes(Klass::secondary_super_cache_offset()));
 638   set_int("secondarySupersOffset", in_bytes(Klass::secondary_supers_offset()));
 639   set_int("subklassOffset", in_bytes(Klass::subklass_offset()));
 640   set_int("nextSiblingOffset", in_bytes(Klass::next_sibling_offset()));
 641   set_int("arrayLengthOffset", arrayOopDesc::length_offset_in_bytes());
 642   set_int("klassStateOffset", in_bytes(InstanceKlass::init_state_offset()));
 643   set_int("klassStateFullyInitialized", (int)InstanceKlass::fully_initialized);
 644   set_int("threadTlabTopOffset", in_bytes(JavaThread::tlab_top_offset()));


src/share/vm/graal/graalCompilerToVM.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File