Mercurial > hg > graal-jvmci-8
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 13837:ed3a1471e133
Add the Graal Native Function Interface
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Thu, 30 Jan 2014 09:19:45 +0100 |
parents | 49db2c1e3bee |
children | 5fb138b6a92f |
comparison
equal
deleted
inserted
replaced
13836:64c77f0577bb | 13837:ed3a1471e133 |
---|---|
552 set_address("validateObject", GraalRuntime::validate_object); | 552 set_address("validateObject", GraalRuntime::validate_object); |
553 | 553 |
554 //------------------------------------------------------------------------------------------------ | 554 //------------------------------------------------------------------------------------------------ |
555 | 555 |
556 set_int("graalCountersThreadOffset", in_bytes(JavaThread::graal_counters_offset())); | 556 set_int("graalCountersThreadOffset", in_bytes(JavaThread::graal_counters_offset())); |
557 set_int("graalCountersSize", (jint) GraalCounterSize); | 557 set_int("graalCountersSize", (jint) GraalCounterSize);\ |
558 | |
559 //------------------------------------------------------------------------------------------------ | |
560 | |
561 set_long("libraryLoadAddress", (jlong) os::dll_load); | |
562 set_long("functionLookupAddress", (jlong) os::dll_lookup); | |
563 #if defined(TARGET_OS_FAMILY_bsd) || defined(TARGET_OS_FAMILY_linux) | |
564 set_long("rtldDefault", (jlong) RTLD_DEFAULT); | |
565 #else | |
566 set_long("rtldDefault", (jlong) 0xDEADFACE); //TODO(mg): will crash on java side, not supported! | |
567 #endif | |
558 | 568 |
559 #undef set_boolean | 569 #undef set_boolean |
560 #undef set_int | 570 #undef set_int |
561 #undef set_long | 571 #undef set_long |
562 | 572 |