![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qv4function_p.h>
Classes | |
struct | AOTCompiledFunction |
struct | JSTypedFunction |
Public Types | |
enum | Kind : quint8 { JsUntyped , JsTyped , AotCompiled , Eval } |
typedef ReturnedValue(* | JittedCode) (CppStackFrame *, ExecutionEngine *) |
typedef void(* | AotCompiledCode) (const QQmlPrivate::AOTCompiledContext *context, void **argv) |
Public Member Functions | |
QV4::ExecutableCompilationUnit * | executableCompilationUnit () const |
QV4::Heap::String * | runtimeString (uint i) const |
bool | call (QObject *thisObject, void **a, const QMetaType *types, int argc, ExecutionContext *context) |
ReturnedValue | call (const Value *thisObject, const Value *argv, int argc, ExecutionContext *context) |
void | destroy () |
void | mark (QV4::MarkStack *ms) |
void | updateInternalClass (ExecutionEngine *engine, const QList< QByteArray > ¶meters) |
Heap::String * | name () const |
QString | sourceFile () const |
QUrl | finalUrl () const |
bool | isStrict () const |
bool | isArrowFunction () const |
bool | isGenerator () const |
bool | isClosureWrapper () const |
QQmlSourceLocation | sourceLocation () const |
Function * | nestedFunction () const |
bool | isJittable () const |
![]() | |
FunctionData (EngineBase *engine, ExecutableCompilationUnit *compilationUnit_) | |
Static Public Member Functions | |
static Function * | create (ExecutionEngine *engine, ExecutableCompilationUnit *unit, const CompiledData::Function *function, const QQmlPrivate::AOTCompiledFunction *aotFunction) |
static QString | prettyName (const Function *function, const void *address) |
Public Attributes | ||
const CompiledData::Function * | compiledFunction = nullptr | |
const char * | codeData = nullptr | |
JSC::MacroAssemblerCodeRef * | codeRef = nullptr | |
union { | ||
void * noFunction = nullptr | ||
JSTypedFunction jsTypedFunction | ||
AOTCompiledFunction aotCompiledFunction | ||
}; | ||
union { | ||
JittedCode jittedCode = nullptr | ||
AotCompiledCode aotCompiledCode | ||
}; | ||
QV4::WriteBarrier::Pointer< Heap::InternalClass > | internalClass | |
int | interpreterCallCount = 0 | |
quint16 | nFormals = 0 | |
Kind | kind = JsUntyped | |
bool | detectedInjectedParameters = false | |
![]() | ||
WriteBarrier::HeapObjectWrapper< CompilationUnitRuntimeData, 1 > | compilationUnit | |
Protected Member Functions | |
Function (ExecutionEngine *engine, ExecutableCompilationUnit *unit, const CompiledData::Function *function, const QQmlPrivate::AOTCompiledFunction *aotFunction) | |
~Function () | |
Definition at line 46 of file qv4function_p.h.
typedef void(* QV4::Function::AotCompiledCode) (const QQmlPrivate::AOTCompiledContext *context, void **argv) |
Definition at line 82 of file qv4function_p.h.
typedef ReturnedValue(* QV4::Function::JittedCode) (CppStackFrame *, ExecutionEngine *) |
Definition at line 81 of file qv4function_p.h.
enum QV4::Function::Kind : quint8 |
Enumerator | |
---|---|
JsUntyped | |
JsTyped | |
AotCompiled | |
Eval |
Definition at line 99 of file qv4function_p.h.
|
protected |
Definition at line 104 of file qv4function.cpp.
|
protected |
Definition at line 173 of file qv4function.cpp.
ReturnedValue Function::call | ( | const Value * | thisObject, |
const Value * | argv, | ||
int | argc, | ||
ExecutionContext * | context ) |
Definition at line 57 of file qv4function.cpp.
Referenced by coverage_report.CoverageExecutor::build_binaries(), coverage_report.CoverageExecutor::generate_coverage(), coverage_report.CoverageExecutor::generate_html_report(), and coverage_report.CoverageExecutor::merge_raw_coverage_results().
bool Function::call | ( | QObject * | thisObject, |
void ** | a, | ||
const QMetaType * | types, | ||
int | argc, | ||
ExecutionContext * | context ) |
Definition at line 21 of file qv4function.cpp.
Referenced by coverage_report.CoverageExecutor::build_binaries(), coverage_report.CoverageExecutor::generate_coverage(), coverage_report.CoverageExecutor::generate_html_report(), and coverage_report.CoverageExecutor::merge_raw_coverage_results().
|
static |
Definition at line 80 of file qv4function.cpp.
void Function::destroy | ( | ) |
Definition at line 87 of file qv4function.cpp.
|
inline |
Definition at line 61 of file qv4function_p.h.
|
inline |
Definition at line 120 of file qv4function_p.h.
|
inline |
Definition at line 123 of file qv4function_p.h.
|
inline |
Definition at line 125 of file qv4function_p.h.
|
inline |
Definition at line 124 of file qv4function_p.h.
|
inline |
Definition at line 136 of file qv4function_p.h.
|
inline |
Definition at line 122 of file qv4function_p.h.
void Function::mark | ( | QV4::MarkStack * | ms | ) |
Definition at line 92 of file qv4function.cpp.
|
inline |
Definition at line 113 of file qv4function_p.h.
|
inline |
Definition at line 129 of file qv4function_p.h.
Definition at line 241 of file qv4function.cpp.
|
inline |
Definition at line 67 of file qv4function_p.h.
|
inline |
Definition at line 119 of file qv4function_p.h.
QQmlSourceLocation Function::sourceLocation | ( | ) | const |
Definition at line 252 of file qv4function.cpp.
void Function::updateInternalClass | ( | ExecutionEngine * | engine, |
const QList< QByteArray > & | parameters ) |
Definition at line 193 of file qv4function.cpp.
union { ... } QV4::Function |
union { ... } QV4::Function |
AotCompiledCode QV4::Function::aotCompiledCode |
Definition at line 92 of file qv4function_p.h.
AOTCompiledFunction QV4::Function::aotCompiledFunction |
Definition at line 87 of file qv4function_p.h.
const char* QV4::Function::codeData = nullptr |
Definition at line 78 of file qv4function_p.h.
JSC::MacroAssemblerCodeRef* QV4::Function::codeRef = nullptr |
Definition at line 79 of file qv4function_p.h.
const CompiledData::Function* QV4::Function::compiledFunction = nullptr |
Definition at line 77 of file qv4function_p.h.
bool QV4::Function::detectedInjectedParameters = false |
Definition at line 101 of file qv4function_p.h.
QV4::WriteBarrier::Pointer<Heap::InternalClass> QV4::Function::internalClass |
Definition at line 96 of file qv4function_p.h.
int QV4::Function::interpreterCallCount = 0 |
Definition at line 97 of file qv4function_p.h.
JittedCode QV4::Function::jittedCode = nullptr |
Definition at line 91 of file qv4function_p.h.
JSTypedFunction QV4::Function::jsTypedFunction |
Definition at line 86 of file qv4function_p.h.
Definition at line 100 of file qv4function_p.h.
quint16 QV4::Function::nFormals = 0 |
Definition at line 98 of file qv4function_p.h.
void* QV4::Function::noFunction = nullptr |
Definition at line 85 of file qv4function_p.h.