OpenCoverage

qv4function_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/jsruntime/qv4function_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2namespace JSC {-
3class MacroAssemblerCodeRef;-
4}-
5-
6-
7-
8struct QQmlSourceLocation;-
9-
10namespace QV4 {-
11-
12struct __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> &parameters);-
35-
36 inline Heap::String *name() {-
37 return
executed 6184624 times by 70 tests: return compilationUnit->runtimeStrings[compiledFunction->nameIndex];
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
compilationUnit->runtimeStrings[compiledFunction->nameIndex];
executed 6184624 times by 70 tests: return compilationUnit->runtimeStrings[compiledFunction->nameIndex];
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • ...
6184624
38 }-
39 inline QString sourceFile() const { return
executed 4517511 times by 43 tests: return compilationUnit->fileName();
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • ...
compilationUnit->fileName();
executed 4517511 times by 43 tests: return compilationUnit->fileName();
Executed by:
  • tst_bindingdependencyapi
  • tst_ecmascripttests
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinfo
  • tst_qqmlitemmodels
  • tst_qqmlprofilerservice
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlsqldatabase
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • ...
}
4517511
40 inline QUrl finalUrl() const { return
executed 24 times by 3 tests: return compilationUnit->finalUrl();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickworkerscript
compilationUnit->finalUrl();
executed 24 times by 3 tests: return compilationUnit->finalUrl();
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qquickworkerscript
}
24
41-
42 inline bool isStrict() const { return
executed 2643625 times by 14 tests: return compiledFunction->flags & CompiledData::Function::IsStrict;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickdraghandler
  • tst_qquickworkerscript
  • tst_qv4debugger
compiledFunction->flags & CompiledData::Function::IsStrict;
executed 2643625 times by 14 tests: return compiledFunction->flags & CompiledData::Function::IsStrict;
Executed by:
  • tst_ecmascripttests
  • tst_examples
  • tst_qjsengine
  • tst_qjsvalue
  • tst_qqmlecmascript
  • tst_qqmllistmodelworkerscript
  • tst_qqmllocale
  • tst_qqmlmetatype
  • tst_qqmlqt
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • tst_qquickdraghandler
  • tst_qquickworkerscript
  • tst_qv4debugger
}
2643625
43 inline bool isArrowFunction() const { return
never executed: return compiledFunction->flags & CompiledData::Function::IsArrowFunction;
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: return compiledFunction->flags & CompiledData::Function::IsGenerator;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
compiledFunction->flags & CompiledData::Function::IsGenerator;
executed 17764605 times by 135 tests: return compiledFunction->flags & CompiledData::Function::IsGenerator;
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_ecmascripttests
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qjsengine
  • tst_qjsonbinding
  • tst_qjsvalue
  • tst_qjsvalueiterator
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
}
17764605
45-
46 QQmlSourceLocation sourceLocation() const;-
47-
48 Function *nestedFunction() const-
49 {-
50 if (compiledFunction->nestedFunctionIndex == std::numeric_limits<uint32_t>::max()
compiledFuncti...nt32_t>::max()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
51 return
never executed: return nullptr;
nullptr;
never executed: return nullptr;
0
52 return
never executed: return compilationUnit->runtimeFunctions[compiledFunction->nestedFunctionIndex];
compilationUnit->runtimeFunctions[compiledFunction->nestedFunctionIndex];
never executed: return compilationUnit->runtimeFunctions[compiledFunction->nestedFunctionIndex];
0
53 }-
54};-
55-
56}-
57-
58-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0