![]() |
Qt 6.x
The Qt SDK
|
#include <qv4stackframe_p.h>
Public Member Functions | |
void | init (Function *v4Function, int argc, Kind kind) |
bool | isJSTypesFrame () const |
bool | isMetaTypesFrame () const |
QString | source () const |
QString | function () const |
int | lineNumber () const |
int | statementNumber () const |
int | missingLineNumber () const |
CppStackFrame * | parentFrame () const |
void | setParentFrame (CppStackFrame *parentFrame) |
int | argc () const |
ExecutionContext * | context () const |
Heap::CallContext * | callContext () const |
ReturnedValue | thisObject () const |
Public Attributes | |
int | instructionPointer |
Function * | v4Function |
Protected Member Functions | |
CppStackFrame ()=default | |
void | push (EngineBase *engine) |
void | pop (EngineBase *engine) |
Heap::CallContext * | callContext (Heap::ExecutionContext *ctx) const |
Additional Inherited Members | ||
![]() | ||
enum class | Kind : quint8 { JS , Meta } | |
![]() | ||
CppStackFrame * | parent | |
Function * | v4Function | |
int | originalArgumentsCount | |
int | instructionPointer | |
union { | ||
struct { | ||
Value * savedStackTop | ||
CallData * jsFrame | ||
const Value * originalArguments | ||
const char * yield | ||
const char * unwindHandler | ||
const char * unwindLabel | ||
int unwindLevel | ||
bool yieldIsIterator | ||
bool callerCanHandleTailCall | ||
bool pendingTailCall | ||
bool isTailCalling | ||
} | ||
struct { | ||
ExecutionContext * context | ||
QObject * thisObject | ||
const QMetaType * metaTypes | ||
void ** returnAndArgs | ||
bool returnValueIsUndefined | ||
} | ||
}; | ||
Kind | kind | |
Definition at line 65 of file qv4stackframe_p.h.
|
protecteddefault |
|
inline |
Definition at line 92 of file qv4stackframe_p.h.
|
inline |
Definition at line 96 of file qv4stackframe_p.h.
References callContext(), context, and d.
Referenced by callContext().
|
inlineprotected |
Definition at line 114 of file qv4stackframe_p.h.
|
inline |
Definition at line 282 of file qv4stackframe_p.h.
References context(), isJSTypesFrame(), isMetaTypesFrame(), and Q_ASSERT.
Referenced by context(), and QV4DataCollector::getScopeTypes().
QString CppStackFrame::function | ( | ) | const |
Definition at line 15 of file qv4stackframe.cpp.
References QV4::Function::name(), QV4::Heap::String::toQString(), and v4Function.
Definition at line 72 of file qv4stackframe_p.h.
|
inline |
Definition at line 79 of file qv4stackframe_p.h.
Referenced by QV4::Runtime::LoadSuperProperty::call(), QV4::Runtime::StoreSuperProperty::call(), context(), and QV4::getSuperBase().
|
inline |
Definition at line 80 of file qv4stackframe_p.h.
Referenced by QV4::Runtime::LoadSuperProperty::call(), QV4::Runtime::StoreSuperProperty::call(), context(), and QV4::getSuperBase().
int CppStackFrame::lineNumber | ( | ) | const |
Definition at line 39 of file qv4stackframe.cpp.
References line, lineAndStatement(), and missingLineNumber().
Referenced by QV4Debugger::currentExecutionState(), QV4::generateWarning(), QV4Debugger::maybeBreakAtInstruction(), and NativeDebugger::maybeBreakAtInstruction().
int CppStackFrame::missingLineNumber | ( | ) | const |
Definition at line 53 of file qv4stackframe.cpp.
References Q_ASSERT.
Referenced by lineNumber().
|
inline |
Definition at line 89 of file qv4stackframe_p.h.
References parent.
Referenced by QV4Debugger::leavingFunction(), and NativeDebugger::leavingFunction().
|
inlineprotected |
Definition at line 109 of file qv4stackframe_p.h.
|
inlineprotected |
Definition at line 102 of file qv4stackframe_p.h.
|
inline |
Definition at line 90 of file qv4stackframe_p.h.
References parent.
QString CppStackFrame::source | ( | ) | const |
Definition at line 10 of file qv4stackframe.cpp.
References QV4::Function::sourceFile(), and v4Function.
Referenced by QV4::generateWarning().
int CppStackFrame::statementNumber | ( | ) | const |
Definition at line 46 of file qv4stackframe.cpp.
References lineAndStatement().
ReturnedValue QV4::CppStackFrame::thisObject | ( | ) | const |
Definition at line 62 of file qv4stackframe.cpp.
References Q_ASSERT, and QV4::QObjectWrapper::wrap().
int QV4::CppStackFrameBase::instructionPointer |
Definition at line 37 of file qv4stackframe_p.h.
Referenced by QV4::ScopedStackFrame::ScopedStackFrame().
Function* QV4::CppStackFrameBase::v4Function |
Definition at line 35 of file qv4stackframe_p.h.
Referenced by QV4::ExecutionContext::deleteProperty(), QV4::EvalFunction::evalCall(), QJSEngine::evaluate(), function(), QV4Debugger::getFunction(), QV4::QQmlContextWrapper::lookupInParentContextHierarchy(), QV4::QQmlContextWrapper::resolveQmlContextPropertyLookupGetter(), source(), QV4::Object::virtualResolveLookupGetter(), QV4::QQmlTypeWrapper::virtualResolveLookupGetter(), and QV4::Object::virtualResolveLookupSetter().