Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QV4::GlobalExtensions Struct Reference

#include <qqmlbuiltinfunctions_p.h>

+ Collaboration diagram for QV4::GlobalExtensions:

Static Public Member Functions

static void init (Object *globalObject, QJSEngine::Extensions extensions)
 
static ReturnedValue method_gc (const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
 \qmlmethod void Qt::gc()
 
static ReturnedValue method_string_arg (const FunctionObject *b, const Value *thisObject, const Value *argv, int argc)
 

Detailed Description

Definition at line 229 of file qqmlbuiltinfunctions_p.h.

Member Function Documentation

◆ init()

void QV4::GlobalExtensions::init ( Object * globalObject,
QJSEngine::Extensions extensions )
static

Definition at line 2044 of file qqmlbuiltinfunctions.cpp.

References QV4::MemoryManager::allocate(), QJSEngine::ConsoleExtension, QV4::ExecutionEngine::createQtObject(), QV4::Object::defineDefaultProperty(), QV4::Scope::engine, QJSEngine::GarbageCollectionExtension, globalObject(), QV4::EngineBase::memoryManager, method_gc(), QV4::ConsoleObject::method_log(), method_string_arg(), QV4::ExecutionEngine::newString(), QStringLiteral, QV4::ExecutionEngine::stringPrototype(), and QJSEngine::TranslationExtension.

Referenced by QV4::ExecutionEngine::initializeGlobal(), and QJSEngine::installExtensions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ method_gc()

ReturnedValue GlobalExtensions::method_gc ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

\qmlmethod void Qt::gc()

Runs the garbage collector.

This is equivalent to calling QJSEngine::collectGarbage().

See also
{Garbage Collection}

Definition at line 2370 of file qqmlbuiltinfunctions.cpp.

References QV4::Encode::undefined().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ method_string_arg()

ReturnedValue GlobalExtensions::method_string_arg ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc )
static

Definition at line 2378 of file qqmlbuiltinfunctions.cpp.

References arg, QV4::Scope::engine, QV4::ExecutionEngine::newString(), RETURN_RESULT, THROW_GENERIC_ERROR, and QV4::Value::toQString().

Referenced by init().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this struct was generated from the following files: