Mercurial > hg > graal-compiler
comparison src/share/vm/c1x/c1x_VMEntries.cpp @ 1412:9195b99c841b
Added first VM entry method.
TODO: Check why initialization method of compiler is not called. Register native methods only once.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 17 May 2010 16:37:23 +0200 |
parents | b30a2cd5e3a2 |
children | 1ecc8f0aad00 |
comparison
equal
deleted
inserted
replaced
1411:d0753a274633 | 1412:9195b99c841b |
---|---|
23 */ | 23 */ |
24 | 24 |
25 | 25 |
26 # include "incls/_precompiled.incl" | 26 # include "incls/_precompiled.incl" |
27 # include "incls/_c1x_VMEntries.cpp.incl" | 27 # include "incls/_c1x_VMEntries.cpp.incl" |
28 | |
29 JNIEXPORT jbyteArray JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1code | |
30 (JNIEnv *, jclass, jobject) { | |
31 tty->print_cr("hello world"); | |
32 return NULL; | |
33 } | |
34 | |
35 | |
36 JNINativeMethod VMEntries_methods[] = { | |
37 {CC"RiMethod_code", CC"(Ljava/lang/Object;)[B", FN_PTR(Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1code)} | |
38 }; | |
39 | |
40 int VMEntries_methods_count() { | |
41 return sizeof(VMEntries_methods) / sizeof(JNINativeMethod); | |
42 } |