| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4function_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||
|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||
| 2 | namespace JSC { | - | ||||||
| 3 | class MacroAssemblerCodeRef; | - | ||||||
| 4 | } | - | ||||||
| 5 | - | |||||||
| 6 | - | |||||||
| 7 | - | |||||||
| 8 | struct QQmlSourceLocation; | - | ||||||
| 9 | - | |||||||
| 10 | namespace QV4 { | - | ||||||
| 11 | - | |||||||
| 12 | struct __attribute__((visibility("default"))) Function { | - | ||||||
| 13 | const CompiledData::Function *compiledFunction; | - | ||||||
| 14 | CompiledData::CompilationUnit *compilationUnit; | - | ||||||
| 15 | - | |||||||
| 16 | ReturnedValue call(const Value *thisObject, const Value *argv, int argc, const ExecutionContext *context); | - | ||||||
| 17 | - | |||||||
| 18 | const char *codeData; | - | ||||||
| 19 | - | |||||||
| 20 | typedef ReturnedValue (*JittedCode)(CppStackFrame *, ExecutionEngine *); | - | ||||||
| 21 | JittedCode jittedCode; | - | ||||||
| 22 | JSC::MacroAssemblerCodeRef *codeRef; | - | ||||||
| 23 | - | |||||||
| 24 | - | |||||||
| 25 | Heap::InternalClass *internalClass; | - | ||||||
| 26 | uint nFormals; | - | ||||||
| 27 | int interpreterCallCount = 0; | - | ||||||
| 28 | bool hasQmlDependencies; | - | ||||||
| 29 | - | |||||||
| 30 | Function(ExecutionEngine *engine, CompiledData::CompilationUnit *unit, const CompiledData::Function *function); | - | ||||||
| 31 | ~Function(); | - | ||||||
| 32 | - | |||||||
| 33 | - | |||||||
| 34 | void updateInternalClass(ExecutionEngine *engine, const QList<QByteArray> ¶meters); | - | ||||||
| 35 | - | |||||||
| 36 | inline Heap::String *name() { | - | ||||||
| 37 | return executed 6184624 times by 70 tests: compilationUnit->runtimeStrings[compiledFunction->nameIndex];return compilationUnit->runtimeStrings[compiledFunction->nameIndex];Executed by:
executed 6184624 times by 70 tests: return compilationUnit->runtimeStrings[compiledFunction->nameIndex];Executed by:
| 6184624 | ||||||
| 38 | } | - | ||||||
| 39 | inline QString sourceFile() const { return executed 4517511 times by 43 tests: compilationUnit->fileName();return compilationUnit->fileName();Executed by:
executed 4517511 times by 43 tests: }return compilationUnit->fileName();Executed by:
| 4517511 | ||||||
| 40 | inline QUrl finalUrl() const { return executed 24 times by 3 tests: compilationUnit->finalUrl();return compilationUnit->finalUrl();Executed by:
executed 24 times by 3 tests: }return compilationUnit->finalUrl();Executed by:
| 24 | ||||||
| 41 | - | |||||||
| 42 | inline bool isStrict() const { return executed 2643625 times by 14 tests: compiledFunction->flags & CompiledData::Function::IsStrict;return compiledFunction->flags & CompiledData::Function::IsStrict;Executed by:
executed 2643625 times by 14 tests: }return compiledFunction->flags & CompiledData::Function::IsStrict;Executed by:
| 2643625 | ||||||
| 43 | inline bool isArrowFunction() const { return never executed: compiledFunction->flags & CompiledData::Function::IsArrowFunction;return compiledFunction->flags & CompiledData::Function::IsArrowFunction;never executed: }return compiledFunction->flags & CompiledData::Function::IsArrowFunction; | 0 | ||||||
| 44 | inline bool isGenerator() const { return executed 17764605 times by 135 tests: compiledFunction->flags & CompiledData::Function::IsGenerator;return compiledFunction->flags & CompiledData::Function::IsGenerator;Executed by:
executed 17764605 times by 135 tests: }return compiledFunction->flags & CompiledData::Function::IsGenerator;Executed by:
| 17764605 | ||||||
| 45 | - | |||||||
| 46 | QQmlSourceLocation sourceLocation() const; | - | ||||||
| 47 | - | |||||||
| 48 | Function *nestedFunction() const | - | ||||||
| 49 | { | - | ||||||
| 50 | if (compiledFunction->nestedFunctionIndex == std::numeric_limits<uint32_t>::max()
| 0 | ||||||
| 51 | return never executed: nullptr;return nullptr;never executed: return nullptr; | 0 | ||||||
| 52 | return never executed: compilationUnit->runtimeFunctions[compiledFunction->nestedFunctionIndex];return compilationUnit->runtimeFunctions[compiledFunction->nestedFunctionIndex];never executed: return compilationUnit->runtimeFunctions[compiledFunction->nestedFunctionIndex]; | 0 | ||||||
| 53 | } | - | ||||||
| 54 | }; | - | ||||||
| 55 | - | |||||||
| 56 | } | - | ||||||
| 57 | - | |||||||
| 58 | - | |||||||
| Switch to Source code | Preprocessed file |