equal
deleted
inserted
replaced
132 // in keeping with Intel side: end is lower in memory than begin; |
132 // in keeping with Intel side: end is lower in memory than begin; |
133 // and beginning element is oldest element |
133 // and beginning element is oldest element |
134 // Also begin is one past last monitor. |
134 // Also begin is one past last monitor. |
135 |
135 |
136 inline BasicObjectLock* frame::interpreter_frame_monitor_begin() const { |
136 inline BasicObjectLock* frame::interpreter_frame_monitor_begin() const { |
137 int rounded_vm_local_words = round_to(frame::interpreter_frame_vm_local_words, WordsPerLong); |
137 int rounded_vm_local_words = align_up((int)frame::interpreter_frame_vm_local_words, WordsPerLong); |
138 return (BasicObjectLock *)fp_addr_at(-rounded_vm_local_words); |
138 return (BasicObjectLock *)fp_addr_at(-rounded_vm_local_words); |
139 } |
139 } |
140 |
140 |
141 inline BasicObjectLock* frame::interpreter_frame_monitor_end() const { |
141 inline BasicObjectLock* frame::interpreter_frame_monitor_end() const { |
142 return interpreter_frame_monitors(); |
142 return interpreter_frame_monitors(); |
146 inline void frame::interpreter_frame_set_monitor_end(BasicObjectLock* value) { |
146 inline void frame::interpreter_frame_set_monitor_end(BasicObjectLock* value) { |
147 interpreter_frame_set_monitors(value); |
147 interpreter_frame_set_monitors(value); |
148 } |
148 } |
149 |
149 |
150 inline int frame::interpreter_frame_monitor_size() { |
150 inline int frame::interpreter_frame_monitor_size() { |
151 return round_to(BasicObjectLock::size(), WordsPerLong); |
151 return align_up(BasicObjectLock::size(), WordsPerLong); |
152 } |
152 } |
153 |
153 |
154 inline Method** frame::interpreter_frame_method_addr() const { |
154 inline Method** frame::interpreter_frame_method_addr() const { |
155 return (Method**)sp_addr_at( Lmethod->sp_offset_in_saved_window()); |
155 return (Method**)sp_addr_at( Lmethod->sp_offset_in_saved_window()); |
156 } |
156 } |