DFGHeapLocation.cpp [plain text]
#include "config.h"
#include "DFGHeapLocation.h"
#if ENABLE(DFG_JIT)
namespace JSC { namespace DFG {
void HeapLocation::dump(PrintStream& out) const
{
out.print(m_kind, ":", m_heap);
if (!m_base)
return;
out.print("[", m_base);
if (m_index)
out.print(", ", m_index);
out.print("]");
}
} }
namespace WTF {
using namespace JSC::DFG;
void printInternal(PrintStream& out, LocationKind kind)
{
switch (kind) {
case InvalidLocationKind:
out.print("InvalidLocationKind");
return;
case InvalidationPointLoc:
out.print("InvalidationPointLoc");
return;
case IsObjectOrNullLoc:
out.print("IsObjectOrNullLoc");
return;
case IsFunctionLoc:
out.print("IsFunctionLoc");
return;
case GetterLoc:
out.print("GetterLoc");
return;
case SetterLoc:
out.print("SetterLoc");
return;
case StackLoc:
out.print("StackLoc");
return;
case StackPayloadLoc:
out.print("StackPayloadLoc");
return;
case ArrayLengthLoc:
out.print("ArrayLengthLoc");
return;
case ButterflyLoc:
out.print("ButterflyLoc");
return;
case CheckTypeInfoFlagsLoc:
out.print("CheckTypeInfoFlagsLoc");
return;
case OverridesHasInstanceLoc:
out.print("OverridesHasInstanceLoc");
return;
case ClosureVariableLoc:
out.print("ClosureVariableLoc");
return;
case DirectArgumentsLoc:
out.print("DirectArgumentsLoc");
return;
case GlobalVariableLoc:
out.print("GlobalVariableLoc");
return;
case HasIndexedPropertyLoc:
out.print("HasIndexedPorpertyLoc");
return;
case IndexedPropertyLoc:
out.print("IndexedPorpertyLoc");
return;
case IndexedPropertyStorageLoc:
out.print("IndexedPropertyStorageLoc");
return;
case InstanceOfLoc:
out.print("InstanceOfLoc");
return;
case NamedPropertyLoc:
out.print("NamedPropertyLoc");
return;
case TypedArrayByteOffsetLoc:
out.print("TypedArrayByteOffsetLoc");
return;
case StructureLoc:
out.print("StructureLoc");
return;
case RegExpObjectLastIndexLoc:
out.print("RegExpObjectLastIndexLoc");
return;
case MapBucketLoc:
out.print("MapBucketLoc");
return;
case JSMapGetLoc:
out.print("JSMapGetLoc");
return;
case MapHasLoc:
out.print("MapHasLoc");
return;
case DOMStateLoc:
out.print("DOMStateLoc");
return;
}
RELEASE_ASSERT_NOT_REACHED();
}
}
#endif // ENABLE(DFG_JIT)