68 //------------------------------------------------------- |
68 //------------------------------------------------------- |
69 |
69 |
70 // Native interfaces for use by Forte tools. |
70 // Native interfaces for use by Forte tools. |
71 |
71 |
72 |
72 |
73 #ifndef IA64 |
73 #if !defined(IA64) && !defined(PPC64) |
74 |
74 |
75 class vframeStreamForte : public vframeStreamCommon { |
75 class vframeStreamForte : public vframeStreamCommon { |
76 public: |
76 public: |
77 // constructor that starts with sender of frame fr (top_frame) |
77 // constructor that starts with sender of frame fr (top_frame) |
78 vframeStreamForte(JavaThread *jt, frame fr, bool stop_at_java_call_stub); |
78 vframeStreamForte(JavaThread *jt, frame fr, bool stop_at_java_call_stub); |
622 ( collector_func_load ? collector_func_load(x0,x1,x2,x3,x4,x5,x6),(void)0 : (void)0 ) |
622 ( collector_func_load ? collector_func_load(x0,x1,x2,x3,x4,x5,x6),(void)0 : (void)0 ) |
623 #endif // __APPLE__ |
623 #endif // __APPLE__ |
624 #endif // !_WINDOWS |
624 #endif // !_WINDOWS |
625 |
625 |
626 } // end extern "C" |
626 } // end extern "C" |
627 #endif // !IA64 |
627 #endif // !IA64 && !PPC64 |
628 |
628 |
629 void Forte::register_stub(const char* name, address start, address end) { |
629 void Forte::register_stub(const char* name, address start, address end) { |
630 #if !defined(_WINDOWS) && !defined(IA64) |
630 #if !defined(_WINDOWS) && !defined(IA64) && !defined(PPC64) |
631 assert(pointer_delta(end, start, sizeof(jbyte)) < INT_MAX, |
631 assert(pointer_delta(end, start, sizeof(jbyte)) < INT_MAX, |
632 "Code size exceeds maximum range"); |
632 "Code size exceeds maximum range"); |
633 |
633 |
634 collector_func_load((char*)name, NULL, NULL, start, |
634 collector_func_load((char*)name, NULL, NULL, start, |
635 pointer_delta(end, start, sizeof(jbyte)), 0, NULL); |
635 pointer_delta(end, start, sizeof(jbyte)), 0, NULL); |
636 #endif // !_WINDOWS && !IA64 |
636 #endif // !_WINDOWS && !IA64 && !PPC64 |
637 } |
637 } |
638 |
638 |
639 #else // INCLUDE_JVMTI |
639 #else // INCLUDE_JVMTI |
640 extern "C" { |
640 extern "C" { |
641 JNIEXPORT |
641 JNIEXPORT |