IntrinsicGetterAccessCase.cpp [plain text]
#include "config.h"
#include "IntrinsicGetterAccessCase.h"
#if ENABLE(JIT)
#include "HeapInlines.h"
namespace JSC {
IntrinsicGetterAccessCase::IntrinsicGetterAccessCase(VM& vm, JSCell* owner, PropertyOffset offset, Structure* structure, const ObjectPropertyConditionSet& conditionSet, JSFunction* intrinsicFunction, std::unique_ptr<PolyProtoAccessChain> prototypeAccessChain)
: Base(vm, owner, IntrinsicGetter, offset, structure, conditionSet, WTFMove(prototypeAccessChain))
{
m_intrinsicFunction.set(vm, owner, intrinsicFunction);
}
std::unique_ptr<AccessCase> IntrinsicGetterAccessCase::create(VM& vm, JSCell* owner, PropertyOffset offset, Structure* structure, const ObjectPropertyConditionSet& conditionSet, JSFunction* intrinsicFunction, std::unique_ptr<PolyProtoAccessChain> prototypeAccessChain)
{
return std::unique_ptr<AccessCase>(new IntrinsicGetterAccessCase(vm, owner, offset, structure, conditionSet, intrinsicFunction, WTFMove(prototypeAccessChain)));
}
IntrinsicGetterAccessCase::~IntrinsicGetterAccessCase()
{
}
std::unique_ptr<AccessCase> IntrinsicGetterAccessCase::clone() const
{
std::unique_ptr<IntrinsicGetterAccessCase> result(new IntrinsicGetterAccessCase(*this));
result->resetState();
return WTFMove(result);
}
}
#endif // ENABLE(JIT)