src/share/vm/prims/whitebox.hpp

changeset 3681
51612f0c0a79
parent 3619
2d503de963b3
child 4592
12e01444ca2d
     1.1 --- a/src/share/vm/prims/whitebox.hpp	Tue Mar 20 16:46:39 2012 -0400
     1.2 +++ b/src/share/vm/prims/whitebox.hpp	Thu Mar 15 13:37:13 2012 +0100
     1.3 @@ -25,12 +25,29 @@
     1.4  #ifndef SHARE_VM_PRIMS_WHITEBOX_HPP
     1.5  #define SHARE_VM_PRIMS_WHITEBOX_HPP
     1.6  
     1.7 +#include "prims/jni.h"
     1.8 +
     1.9 +#include "memory/allocation.hpp"
    1.10 +#include "oops/oopsHierarchy.hpp"
    1.11 +
    1.12 +// Entry macro to transition from JNI to VM state.
    1.13 +
    1.14 +#define WB_ENTRY(result_type, header) JNI_ENTRY(result_type, header)
    1.15 +#define WB_END JNI_END
    1.16 +#define WB_METHOD_DECLARE extern "C" jobjectArray JNICALL
    1.17 +
    1.18  class WhiteBox : public AllStatic {
    1.19   private:
    1.20    static bool _used;
    1.21   public:
    1.22    static bool used()     { return _used; }
    1.23    static void set_used() { _used = true; }
    1.24 +  static int offset_for_field(const char* field_name, oop object,
    1.25 +    Symbol* signature_symbol);
    1.26 +  static const char* lookup_jstring(const char* field_name, oop object);
    1.27 +  static bool lookup_bool(const char* field_name, oop object);
    1.28  };
    1.29  
    1.30 +
    1.31 +
    1.32  #endif // SHARE_VM_PRIMS_WHITEBOX_HPP

mercurial