< prev index next >

src/hotspot/share/c1/c1_ValueStack.cpp

Print this page
*** 33,23 ***
  ValueStack::ValueStack(IRScope* scope, ValueStack* caller_state)
  : _scope(scope)
  , _caller_state(caller_state)
  , _bci(-99)
  , _kind(Parsing)
  , _locals(scope->method()->max_locals(), scope->method()->max_locals(), nullptr)
  , _stack(scope->method()->max_stack())
  , _locks(nullptr)
  , _force_reexecute(false)
  {
    verify();
  }
  
! ValueStack::ValueStack(ValueStack* copy_from, Kind kind, int bci)
    : _scope(copy_from->scope())
    , _caller_state(copy_from->caller_state())
    , _bci(bci)
    , _kind(kind)
    , _locals(copy_from->locals_size_for_copy(kind))
    , _stack(copy_from->stack_size_for_copy(kind))
    , _locks(copy_from->locks_size() == 0 ? nullptr : new Values(copy_from->locks_size()))
    , _force_reexecute(false)
  {
--- 33,25 ---
  ValueStack::ValueStack(IRScope* scope, ValueStack* caller_state)
  : _scope(scope)
  , _caller_state(caller_state)
  , _bci(-99)
  , _kind(Parsing)
+ , _should_reexecute(false)
  , _locals(scope->method()->max_locals(), scope->method()->max_locals(), nullptr)
  , _stack(scope->method()->max_stack())
  , _locks(nullptr)
  , _force_reexecute(false)
  {
    verify();
  }
  
! ValueStack::ValueStack(ValueStack* copy_from, Kind kind, int bci, bool reexecute)
    : _scope(copy_from->scope())
    , _caller_state(copy_from->caller_state())
    , _bci(bci)
    , _kind(kind)
+   , _should_reexecute(reexecute)
    , _locals(copy_from->locals_size_for_copy(kind))
    , _stack(copy_from->stack_size_for_copy(kind))
    , _locks(copy_from->locks_size() == 0 ? nullptr : new Values(copy_from->locks_size()))
    , _force_reexecute(false)
  {

*** 209,11 ***
    assert(locks_size() > 0, "sanity");
    _locks->pop();
    return total_locks_size();
  }
  
- 
  void ValueStack::setup_phi_for_stack(BlockBegin* b, int index) {
    assert(stack_at(index)->as_Phi() == nullptr || stack_at(index)->as_Phi()->block() != b, "phi function already created");
  
    ValueType* t = stack_at(index)->type();
    Value phi = new Phi(t, b, -index - 1);
--- 211,10 ---
< prev index next >