namespace JSC {
-class JSGlobalData;
+class VM;
class ExecState;
struct Instruction;
{
}
- AbstractPC(JSGlobalData&, ExecState*);
+ AbstractPC(VM&, ExecState*);
#if ENABLE(JIT)
AbstractPC(ReturnAddressPtr ptr)
}
#endif
-#if ENABLE(CLASSIC_INTERPRETER)
- AbstractPC(Instruction* vPC)
- : m_pointer(vPC)
- , m_mode(Interpreter)
- {
- }
-
- bool hasInterpreterReturnAddress() const { return m_mode == Interpreter; }
- Instruction* interpreterReturnAddress() const
- {
- ASSERT(hasInterpreterReturnAddress());
- return static_cast<Instruction*>(m_pointer);
- }
-#endif
-
bool isSet() const { return m_mode != None; }
bool operator!() const { return !isSet(); }