239 }
240 }
241 #endif
242
243 //=============================================================================
244 // Do we Match on this edge index or not? Match only target address & method
245 uint TailCallNode::match_edge(uint idx) const {
246 return TypeFunc::Parms <= idx && idx <= TypeFunc::Parms+1;
247 }
248
249 //=============================================================================
250 // Do we Match on this edge index or not? Match only target address & oop
251 uint TailJumpNode::match_edge(uint idx) const {
252 return TypeFunc::Parms <= idx && idx <= TypeFunc::Parms+1;
253 }
254
255 //=============================================================================
256 JVMState::JVMState(ciMethod* method, JVMState* caller) :
257 _method(method) {
258 assert(method != NULL, "must be valid call site");
259 _reexecute = Reexecute_Undefined;
260 debug_only(_bci = -99); // random garbage value
261 debug_only(_map = (SafePointNode*)-1);
262 _caller = caller;
263 _depth = 1 + (caller == NULL ? 0 : caller->depth());
264 _locoff = TypeFunc::Parms;
265 _stkoff = _locoff + _method->max_locals();
266 _monoff = _stkoff + _method->max_stack();
267 _scloff = _monoff;
268 _endoff = _monoff;
269 _sp = 0;
270 }
271 JVMState::JVMState(int stack_size) :
272 _method(NULL) {
273 _bci = InvocationEntryBci;
274 _reexecute = Reexecute_Undefined;
275 debug_only(_map = (SafePointNode*)-1);
276 _caller = NULL;
277 _depth = 1;
278 _locoff = TypeFunc::Parms;
|
239 }
240 }
241 #endif
242
243 //=============================================================================
244 // Do we Match on this edge index or not? Match only target address & method
245 uint TailCallNode::match_edge(uint idx) const {
246 return TypeFunc::Parms <= idx && idx <= TypeFunc::Parms+1;
247 }
248
249 //=============================================================================
250 // Do we Match on this edge index or not? Match only target address & oop
251 uint TailJumpNode::match_edge(uint idx) const {
252 return TypeFunc::Parms <= idx && idx <= TypeFunc::Parms+1;
253 }
254
255 //=============================================================================
256 JVMState::JVMState(ciMethod* method, JVMState* caller) :
257 _method(method) {
258 assert(method != NULL, "must be valid call site");
259 _bci = InvocationEntryBci;
260 _reexecute = Reexecute_Undefined;
261 debug_only(_bci = -99); // random garbage value
262 debug_only(_map = (SafePointNode*)-1);
263 _caller = caller;
264 _depth = 1 + (caller == NULL ? 0 : caller->depth());
265 _locoff = TypeFunc::Parms;
266 _stkoff = _locoff + _method->max_locals();
267 _monoff = _stkoff + _method->max_stack();
268 _scloff = _monoff;
269 _endoff = _monoff;
270 _sp = 0;
271 }
272 JVMState::JVMState(int stack_size) :
273 _method(NULL) {
274 _bci = InvocationEntryBci;
275 _reexecute = Reexecute_Undefined;
276 debug_only(_map = (SafePointNode*)-1);
277 _caller = NULL;
278 _depth = 1;
279 _locoff = TypeFunc::Parms;
|