/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#ifndef SHARE_VM_RUNTIME_VFRAME_HP_HPP
#define SHARE_VM_RUNTIME_VFRAME_HP_HPP
#include "runtime/vframe.hpp"
public:
// JVM state
int bci() const;
bool should_reexecute() const;
StackValueCollection* locals() const;
StackValueCollection* expressions() const;
// Virtuals defined in vframe
bool is_compiled_frame() const { return true; }
bool is_top() const;
// Casting
return (compiledVFrame*) vf;
}
public:
// Constructors
// Update a local in a compiled frame. Update happens when deopt occurs
// Returns the active nmethod
// Returns the scopeDesc
// Returns SynchronizationEntryBCI or bci() (used for synchronization)
int raw_bci() const;
protected:
//StackValue resolve(ScopeValue* sv) const;
private:
#ifndef PRODUCT
public:
void verify() const;
#endif
};
// In order to implement set_locals for compiled vframes we must
// store updated locals in a data structure that contains enough
// information to recognize equality with a vframe and to store
// any updated locals.
class jvmtiDeferredLocalVariable;
private:
int _bci;
public:
// JVM state
// Does the vframe match this jvmtiDeferredLocalVariableSet
// GC
void oops_do(OopClosure* f);
// constructor
// destructor
};
public:
// Only mutator is for value as only it can change
// For gc
private:
int _index;
};
#endif // SHARE_VM_RUNTIME_VFRAME_HP_HPP