Mercurial > hg > truffle
diff src/share/vm/prims/whitebox.hpp @ 5978:51612f0c0a79
7148488: Whitebox tests for the Diagnostic Framework Parser
Reviewed-by: brutisso, sla, mgerdin
author | nloodin |
---|---|
date | Thu, 15 Mar 2012 13:37:13 +0100 |
parents | 2d503de963b3 |
children | 12e01444ca2d |
line wrap: on
line diff
--- a/src/share/vm/prims/whitebox.hpp Tue Mar 20 16:46:39 2012 -0400 +++ b/src/share/vm/prims/whitebox.hpp Thu Mar 15 13:37:13 2012 +0100 @@ -25,12 +25,29 @@ #ifndef SHARE_VM_PRIMS_WHITEBOX_HPP #define SHARE_VM_PRIMS_WHITEBOX_HPP +#include "prims/jni.h" + +#include "memory/allocation.hpp" +#include "oops/oopsHierarchy.hpp" + +// Entry macro to transition from JNI to VM state. + +#define WB_ENTRY(result_type, header) JNI_ENTRY(result_type, header) +#define WB_END JNI_END +#define WB_METHOD_DECLARE extern "C" jobjectArray JNICALL + class WhiteBox : public AllStatic { private: static bool _used; public: static bool used() { return _used; } static void set_used() { _used = true; } + static int offset_for_field(const char* field_name, oop object, + Symbol* signature_symbol); + static const char* lookup_jstring(const char* field_name, oop object); + static bool lookup_bool(const char* field_name, oop object); }; + + #endif // SHARE_VM_PRIMS_WHITEBOX_HPP