本文整理汇总了C++中ActRec::getThisOrClass方法的典型用法代码示例。如果您正苦于以下问题:C++ ActRec::getThisOrClass方法的具体用法?C++ ActRec::getThisOrClass怎么用?C++ ActRec::getThisOrClass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActRec
的用法示例。
在下文中一共展示了ActRec::getThisOrClass方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: actRec
c_Continuation *c_Continuation::clone() {
const Func *origFunc = m_origFunc;
const Func *genFunc = actRec()->m_func;
ActRec *fp = g_vmContext->getFP();
c_Continuation* cont = origFunc->isMethod()
? g_vmContext->createContMeth(origFunc, genFunc, fp->getThisOrClass())
: g_vmContext->createContFunc(origFunc, genFunc);
cont->copyContinuationVars(actRec());
cont->o_subclassData.u16 = o_subclassData.u16;
cont->m_label = m_label;
cont->m_index = m_index;
cont->m_key = m_key;
cont->m_value = m_value;
return cont;
}
示例2:
c_Continuation *c_Continuation::Clone(ObjectData* obj) {
auto thiz = static_cast<c_Continuation*>(obj);
const Func *origFunc = thiz->m_origFunc;
const Func *genFunc = thiz->actRec()->m_func;
ActRec *fp = g_vmContext->getFP();
c_Continuation* cont = origFunc->isMethod()
? g_vmContext->createContMeth(origFunc, genFunc, fp->getThisOrClass())
: g_vmContext->createContFunc(origFunc, genFunc);
cont->copyContinuationVars(thiz->actRec());
cont->o_subclassData.u16 = thiz->o_subclassData.u16;
cont->m_label = thiz->m_label;
cont->m_index = thiz->m_index;
cont->m_key = thiz->m_key;
cont->m_value = thiz->m_value;
return cont;
}