< prev index next >

src/hotspot/cpu/x86/frame_x86.hpp

Print this page




  99   };
 100 
 101   intptr_t ptr_at(int offset) const {
 102     return *ptr_at_addr(offset);
 103   }
 104 
 105   void ptr_at_put(int offset, intptr_t value) {
 106     *ptr_at_addr(offset) = value;
 107   }
 108 
 109  private:
 110   // an additional field beyond _sp and _pc:
 111   intptr_t*   _fp; // frame pointer
 112   // The interpreter and adapters will extend the frame of the caller.
 113   // Since oopMaps are based on the sp of the caller before extension
 114   // we need to know that value. However in order to compute the address
 115   // of the return address we need the real "raw" sp. Since sparc already
 116   // uses sp() to mean "raw" sp and unextended_sp() to mean the caller's
 117   // original sp we use that convention.
 118 
 119   intptr_t*     _unextended_sp;
 120   void adjust_unextended_sp() NOT_DEBUG_RETURN;
 121 
 122   intptr_t* ptr_at_addr(int offset) const {
 123     return (intptr_t*) addr_at(offset);
 124   }
 125 
 126 #ifdef ASSERT
 127   // Used in frame::sender_for_{interpreter,compiled}_frame
 128   static void verify_deopt_original_pc(CompiledMethod* nm, intptr_t* unextended_sp);
 129 #endif
 130 


 131  public:
 132   // Constructors
 133 
 134   frame(intptr_t* sp, intptr_t* fp, address pc);
 135 
 136   frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc);
 137 








 138   frame(intptr_t* sp, intptr_t* fp);
 139 
 140   void init(intptr_t* sp, intptr_t* fp, address pc);

 141 
 142   // accessors for the instance variables
 143   // Note: not necessarily the real 'frame pointer' (see real_fp)
 144   intptr_t*   fp() const { return _fp; }


 145 
 146   inline address* sender_pc_addr() const;
 147 
 148   // expression stack tos if we are nested in a java call
 149   intptr_t* interpreter_frame_last_sp() const;
 150 
 151   // helper to update a map with callee-saved RBP
 152   static void update_map_with_saved_link(RegisterMap* map, intptr_t** link_addr);



 153 
 154   // deoptimization support
 155   void interpreter_frame_set_last_sp(intptr_t* sp);
 156 
 157   static jint interpreter_frame_expression_stack_direction() { return -1; }
 158 
 159 #endif // CPU_X86_FRAME_X86_HPP


  99   };
 100 
 101   intptr_t ptr_at(int offset) const {
 102     return *ptr_at_addr(offset);
 103   }
 104 
 105   void ptr_at_put(int offset, intptr_t value) {
 106     *ptr_at_addr(offset) = value;
 107   }
 108 
 109  private:
 110   // an additional field beyond _sp and _pc:
 111   intptr_t*   _fp; // frame pointer
 112   // The interpreter and adapters will extend the frame of the caller.
 113   // Since oopMaps are based on the sp of the caller before extension
 114   // we need to know that value. However in order to compute the address
 115   // of the return address we need the real "raw" sp. Since sparc already
 116   // uses sp() to mean "raw" sp and unextended_sp() to mean the caller's
 117   // original sp we use that convention.
 118 
 119   intptr_t* _unextended_sp;
 120   void adjust_unextended_sp() NOT_DEBUG_RETURN;
 121 
 122   intptr_t* ptr_at_addr(int offset) const {
 123     return (intptr_t*) addr_at(offset);
 124   }
 125 
 126 #ifdef ASSERT
 127   // Used in frame::sender_for_{interpreter,compiled}_frame
 128   static void verify_deopt_original_pc(CompiledMethod* nm, intptr_t* unextended_sp);
 129 #endif
 130 
 131   const ImmutableOopMap* get_oop_map() const;
 132 
 133  public:
 134   // Constructors
 135 
 136   frame(intptr_t* sp, intptr_t* fp, address pc);
 137 
 138   frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc);
 139 
 140   frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc, CodeBlob* cb);
 141 
 142   frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc, CodeBlob* cb, const ImmutableOopMap* oop_map);
 143 
 144   frame(intptr_t* sp, intptr_t* unextended_sp, intptr_t* fp, address pc, CodeBlob* cb, const ImmutableOopMap* oop_map, bool dummy); // used for fast frame construction by continuations
 145 
 146   frame(int sp, int ref_sp, intptr_t fp, address pc, CodeBlob* cb, bool deopt); // for continuation frames
 147 
 148   frame(intptr_t* sp, intptr_t* fp);
 149 
 150   void init(intptr_t* sp, intptr_t* fp, address pc);
 151   void setup(address pc);
 152 
 153   // accessors for the instance variables
 154   // Note: not necessarily the real 'frame pointer' (see real_fp)
 155   intptr_t*   fp() const { return _fp; }
 156   intptr_t**  fp_addr() { return &_fp; } // for use in continuations freezing / thawing
 157   void set_fp(intptr_t* newfp) { _fp = newfp; }
 158 
 159   inline address* sender_pc_addr() const;
 160 
 161   // expression stack tos if we are nested in a java call
 162   intptr_t* interpreter_frame_last_sp() const;
 163 
 164   // helper to update a map with callee-saved RBP
 165   template <typename RegisterMapT>
 166   static void update_map_with_saved_link(RegisterMapT* map, intptr_t** link_addr);
 167   template <typename RegisterMapT>
 168   static intptr_t** saved_link_address(const RegisterMapT* map);
 169 
 170   // deoptimization support
 171   void interpreter_frame_set_last_sp(intptr_t* sp);
 172 
 173   static jint interpreter_frame_expression_stack_direction() { return -1; }
 174 
 175 #endif // CPU_X86_FRAME_X86_HPP
< prev index next >