Qt 4.8
|
#include <qscriptengine_p.h>
Public Types | |
enum | ContextFlags { NativeContext = 1, CalledAsConstructorContext = 2, HasScopeContext = 4, ShouldRestoreCallFrame = 8 } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Public Functions | |
void | _q_objectDestroyed (QObject *) |
void | agentDeleted (QScriptEngineAgent *agent) |
QScriptValuePrivate * | allocateScriptValuePrivate (size_t) |
void | clearCurrentException () |
void | collectGarbage () |
QScriptValue | currentException () const |
JSC::JSObject * | customGlobalObject () const |
JSC::JSValue | defaultPrototype (int metaTypeId) const |
void | detachAllRegisteredScriptPrograms () |
void | detachAllRegisteredScriptStrings () |
void | detachAllRegisteredScriptValues () |
void | disposeQObject (QObject *object) |
void | emitSignalHandlerException () |
JSC::JSValue | evaluateHelper (JSC::ExecState *exec, intptr_t sourceId, JSC::EvalExecutable *executable, bool &compile) |
void | freeScriptValuePrivate (QScriptValuePrivate *p) |
JSC::JSObject * | getOriginalGlobalObjectProxy () |
JSC::ExecState * | globalExec () const |
JSC::JSObject * | globalObject () const |
bool | hasDemarshalFunction (int type) const |
bool | isCollecting () const |
void | mark (JSC::MarkStack &markStack) |
JSC::JSValue | newObject () |
JSC::JSValue | newQMetaObject (const QMetaObject *metaObject, JSC::JSValue ctor) |
JSC::JSValue | newQObject (QObject *object, QScriptEngine::ValueOwnership ownership=QScriptEngine::QtOwnership, const QScriptEngine::QObjectWrapOptions &options=0) |
JSC::JSValue | newVariant (const QVariant &) |
JSC::JSValue | newVariant (JSC::JSValue objectValue, const QVariant &) |
JSC::JSGlobalObject * | originalGlobalObject () const |
void | popContext () |
JSC::CallFrame * | pushContext (JSC::CallFrame *exec, JSC::JSValue thisObject, const JSC::ArgList &args, JSC::JSObject *callee, bool calledAsConstructor=false, bool clearScopeChain=false) |
JSC native function doesn't have different stackframe or context. More... | |
QScript::QObjectData * | qobjectData (QObject *object) |
QScriptEnginePrivate () | |
void | registerScriptProgram (QScriptProgramPrivate *program) |
void | registerScriptString (QScriptStringPrivate *value) |
void | registerScriptValue (QScriptValuePrivate *value) |
void | reportAdditionalMemoryCost (int size) |
bool | scriptConnect (QObject *sender, const char *signal, JSC::JSValue receiver, JSC::JSValue function, Qt::ConnectionType type) |
bool | scriptConnect (QObject *sender, int index, JSC::JSValue receiver, JSC::JSValue function, JSC::JSValue senderWrapper, Qt::ConnectionType type) |
bool | scriptConnect (JSC::JSValue signal, JSC::JSValue receiver, JSC::JSValue function, Qt::ConnectionType type) |
bool | scriptDisconnect (QObject *sender, const char *signal, JSC::JSValue receiver, JSC::JSValue function) |
bool | scriptDisconnect (QObject *sender, int index, JSC::JSValue receiver, JSC::JSValue function) |
bool | scriptDisconnect (JSC::JSValue signal, JSC::JSValue receiver, JSC::JSValue function) |
QScriptValue | scriptValueFromJSCValue (JSC::JSValue value) |
JSC::JSValue | scriptValueToJSCValue (const QScriptValue &value) |
void | setCurrentException (QScriptValue exception) |
void | setDefaultPrototype (int metaTypeId, JSC::JSValue prototype) |
void | setGlobalObject (JSC::JSObject *object) |
QScript::TimeoutCheckerProxy * | timeoutChecker () const |
QScriptString | toStringHandle (const JSC::Identifier &name) |
JSC::JSValue | toUsableValue (JSC::JSValue value) |
If the given value is the original global object, returns the custom global object or a proxy to the original global object; otherwise returns value. More... | |
JSC::UString | translationContextFromUrl (const JSC::UString &) |
void | unregisterScriptProgram (QScriptProgramPrivate *program) |
void | unregisterScriptString (QScriptStringPrivate *value) |
void | unregisterScriptValue (QScriptValuePrivate *value) |
virtual | ~QScriptEnginePrivate () |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Static Public Functions | |
static JSC::JSValue | arrayFromStringList (JSC::ExecState *, const QStringList &lst) |
static JSC::JSValue | arrayFromVariantList (JSC::ExecState *, const QVariantList &lst) |
static bool | canEvaluate (const QString &program) |
static QScriptSyntaxCheckResult | checkSyntax (const QString &program) |
static uint | contextFlags (JSC::ExecState *) |
For native context, we use the ReturnValueRegister entry in the stackframe header to store flags. More... | |
static QScriptContext * | contextForFrame (JSC::ExecState *frame) |
static bool | convertNumber (qsreal, int type, void *ptr) |
static bool | convertString (const QString &, int type, void *ptr) |
static bool | convertToNativeQObject (JSC::ExecState *, JSC::JSValue, const QByteArray &targetType, void **result) |
static bool | convertValue (JSC::ExecState *, JSC::JSValue value, int type, void *ptr) |
static JSC::JSValue | create (JSC::ExecState *, int type, const void *ptr) |
static QScriptDeclarativeClass * | declarativeClass (JSC::JSValue) |
static QScriptDeclarativeClass::Object * | declarativeObject (JSC::JSValue) |
static JSC::ExecState * | frameForContext (QScriptContext *context) |
static const JSC::ExecState * | frameForContext (const QScriptContext *context) |
static QScriptEnginePrivate * | get (QScriptEngine *q) |
static QScriptEngine * | get (QScriptEnginePrivate *d) |
static bool | hasValidCodeBlockRegister (JSC::ExecState *frame) |
static bool | isArray (JSC::JSValue) |
static bool | isDate (JSC::JSValue) |
static bool | isError (JSC::JSValue) |
static bool | isObject (JSC::JSValue) |
static bool | isQMetaObject (JSC::JSValue) |
static bool | isQObject (JSC::JSValue) |
static bool | isRegExp (JSC::JSValue) |
static bool | isVariant (JSC::JSValue) |
static JSC::JSValue | jscValueFromVariant (JSC::ExecState *, const QVariant &value) |
static QVariant | jscValueToVariant (JSC::ExecState *, JSC::JSValue value, int targetType) |
static JSC::JSValue | newArray (JSC::ExecState *, uint length) |
static JSC::JSValue | newDate (JSC::ExecState *, qsreal value) |
static JSC::JSValue | newDate (JSC::ExecState *, const QDateTime &) |
static JSC::JSValue | newRegExp (JSC::ExecState *, const QRegExp &) |
static JSC::JSValue | newRegExp (JSC::ExecState *, const QString &pattern, const QString &flags) |
static JSC::JSValue | objectFromVariantMap (JSC::ExecState *, const QVariantMap &vmap) |
static JSC::JSValue | property (JSC::ExecState *, JSC::JSValue, const JSC::Identifier &id, int resolveMode=QScriptValue::ResolvePrototype) |
static JSC::JSValue | property (JSC::ExecState *, JSC::JSValue, quint32 index, int resolveMode=QScriptValue::ResolvePrototype) |
static JSC::JSValue | property (JSC::ExecState *, JSC::JSValue, const JSC::UString &, int resolveMode) |
static QScriptValue::PropertyFlags | propertyFlags (JSC::ExecState *, JSC::JSValue value, const JSC::Identifier &id, const QScriptValue::ResolveFlags &mode) |
static QScriptValue::PropertyFlags | propertyFlags (JSC::ExecState *, JSC::JSValue value, const JSC::UString &name, const QScriptValue::ResolveFlags &mode) |
static unsigned | propertyFlagsToJSCAttributes (const QScriptValue::PropertyFlags &flags) |
static JSC::JSValue | propertyHelper (JSC::ExecState *, JSC::JSValue, const JSC::Identifier &id, int resolveMode) |
static JSC::JSValue | propertyHelper (JSC::ExecState *, JSC::JSValue, quint32, int resolveMode) |
static void | restoreException (JSC::ExecState *, JSC::JSValue) |
static void | saveException (JSC::ExecState *, JSC::JSValue *) |
static void | setContextFlags (JSC::ExecState *, uint) |
static void | setProperty (JSC::ExecState *, JSC::JSValue object, const JSC::UString &name, JSC::JSValue, const QScriptValue::PropertyFlags &flags=QScriptValue::KeepExistingFlags) |
static void | setProperty (JSC::ExecState *, JSC::JSValue object, const JSC::Identifier &id, JSC::JSValue, const QScriptValue::PropertyFlags &flags=QScriptValue::KeepExistingFlags) |
static void | setProperty (JSC::ExecState *, JSC::JSValue object, quint32 index, JSC::JSValue, const QScriptValue::PropertyFlags &flags=QScriptValue::KeepExistingFlags) |
static void | setVariantValue (JSC::JSValue objectValue, const QVariant &value) |
static QStringList | stringListFromArray (JSC::ExecState *, JSC::JSValue arr) |
static JSC::JSValue | thisForContext (JSC::ExecState *frame) |
static JSC::Register * | thisRegisterForFrame (JSC::ExecState *frame) |
static bool | toBool (JSC::ExecState *, JSC::JSValue) |
static QDateTime | toDateTime (JSC::ExecState *, JSC::JSValue) |
static qint32 | toInt32 (JSC::ExecState *, JSC::JSValue) |
static qsreal | toInteger (JSC::ExecState *, JSC::JSValue) |
static qsreal | toNumber (JSC::ExecState *, JSC::JSValue) |
static const QMetaObject * | toQMetaObject (JSC::ExecState *, JSC::JSValue) |
static QObject * | toQObject (JSC::ExecState *, JSC::JSValue) |
static QRegExp | toRegExp (JSC::ExecState *, JSC::JSValue) |
static JSC::UString | toString (JSC::ExecState *, JSC::JSValue) |
static quint16 | toUInt16 (JSC::ExecState *, JSC::JSValue) |
static quint32 | toUInt32 (JSC::ExecState *, JSC::JSValue) |
static QVariant | toVariant (JSC::ExecState *, JSC::JSValue) |
static QVariantList | variantListFromArray (JSC::ExecState *, JSC::JSArray *arr) |
static QVariantMap | variantMapFromObject (JSC::ExecState *, JSC::JSObject *obj) |
static QVariant & | variantValue (JSC::JSValue value) |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Static Public Variables | |
static const int | maxFreeScriptValues = 256 |
Definition at line 148 of file qscriptengine_p.h.
Enumerator | |
---|---|
NativeContext | |
CalledAsConstructorContext | |
HasScopeContext | |
ShouldRestoreCallFrame |
Definition at line 258 of file qscriptengine_p.h.
QScriptEnginePrivate::QScriptEnginePrivate | ( | ) |
Definition at line 975 of file qscriptengine.cpp.
|
virtual |
Definition at line 1031 of file qscriptengine.cpp.
void QScriptEnginePrivate::_q_objectDestroyed | ( | QObject * | object | ) |
Definition at line 1516 of file qscriptengine.cpp.
Referenced by qobjectData().
void QScriptEnginePrivate::agentDeleted | ( | QScriptEngineAgent * | agent | ) |
Definition at line 1359 of file qscriptengine.cpp.
Referenced by QScriptEngineAgent::~QScriptEngineAgent().
|
inline |
Definition at line 591 of file qscriptengine_p.h.
|
static |
Definition at line 1079 of file qscriptengine.cpp.
|
static |
Definition at line 1096 of file qscriptengine.cpp.
|
static |
Definition at line 2598 of file qscriptengine.cpp.
Referenced by QScriptEngine::canEvaluate().
|
static |
Definition at line 2619 of file qscriptengine.cpp.
Referenced by QScriptEngine::checkSyntax().
|
inline |
Definition at line 276 of file qscriptengine_p.h.
Referenced by QScriptEngineAgentPrivate::exceptionCatch().
void QScriptEnginePrivate::collectGarbage | ( | ) |
Definition at line 1342 of file qscriptengine.cpp.
Referenced by QScript::functionGC().
|
static |
For native context, we use the ReturnValueRegister entry in the stackframe header to store flags.
We can do that because this header is not used as the native function return their value thought C++ when setting flags, NativeContext should always be set contextFlags returns 0 for non native context
Definition at line 1260 of file qscriptengine.cpp.
Referenced by QScriptContext::activationObject(), QScriptContext::callee(), QScriptContext::isCalledAsConstructor(), and QScriptContext::setActivationObject().
|
inlinestatic |
Definition at line 849 of file qscriptengine_p.h.
Referenced by QScript::ClassObjectDelegate::call(), QScript::DeclarativeObjectDelegate::call(), QScript::ClassObjectDelegate::construct(), QScript::QMetaObjectWrapperObject::execute(), QScript::GlobalObject::getOwnPropertyDescriptor(), QScript::GlobalObject::getOwnPropertySlot(), QScriptContext::parentContext(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), QScript::FunctionWithArgWrapper::proxyConstruct(), QScriptDeclarativeClass::pushCleanContext(), and QScriptContextInfoPrivate::QScriptContextInfoPrivate().
|
static |
Definition at line 3347 of file qscriptengine.cpp.
Referenced by QScriptEngine::convertV2().
|
static |
Definition at line 3395 of file qscriptengine.cpp.
Referenced by QScriptEngine::convertV2().
|
static |
Definition at line 1485 of file qscriptengine.cpp.
Referenced by QScript::callQtMethod().
|
static |
Definition at line 3159 of file qscriptengine.cpp.
Referenced by QScript::callQtMethod(), QScriptEngine::convert(), QScriptEngine::convertV2(), jscValueToVariant(), and QScript::variantFromValue().
|
static |
Definition at line 3056 of file qscriptengine.cpp.
Referenced by QScript::callQtMethod(), and QScript::QObjectConnectionManager::execute().
|
inline |
Definition at line 275 of file qscriptengine_p.h.
JSC::JSObject * QScriptEnginePrivate::customGlobalObject | ( | ) | const |
Definition at line 1166 of file qscriptengine.cpp.
Referenced by toUsableValue().
|
inlinestatic |
Definition at line 1097 of file qscriptengine_p.h.
Referenced by QScriptDeclarativeClass::scriptClass(), and toVariant().
|
inlinestatic |
Definition at line 1108 of file qscriptengine_p.h.
Referenced by QScriptDeclarativeClass::object(), and toVariant().
JSC::JSValue QScriptEnginePrivate::defaultPrototype | ( | int | metaTypeId | ) | const |
Definition at line 1143 of file qscriptengine.cpp.
Referenced by newQObject(), and newVariant().
void QScriptEnginePrivate::detachAllRegisteredScriptPrograms | ( | ) |
Definition at line 1606 of file qscriptengine.cpp.
Referenced by ~QScriptEnginePrivate().
void QScriptEnginePrivate::detachAllRegisteredScriptStrings | ( | ) |
Definition at line 1627 of file qscriptengine.cpp.
Referenced by ~QScriptEnginePrivate().
void QScriptEnginePrivate::detachAllRegisteredScriptValues | ( | ) |
Definition at line 1614 of file qscriptengine.cpp.
Referenced by ~QScriptEnginePrivate().
void QScriptEnginePrivate::disposeQObject | ( | QObject * | object | ) |
Definition at line 1526 of file qscriptengine.cpp.
void QScriptEnginePrivate::emitSignalHandlerException | ( | ) |
Definition at line 1539 of file qscriptengine.cpp.
JSC::JSValue QScriptEnginePrivate::evaluateHelper | ( | JSC::ExecState * | exec, |
intptr_t | sourceId, | ||
JSC::EvalExecutable * | executable, | ||
bool & | compile | ||
) |
Definition at line 1368 of file qscriptengine.cpp.
|
inlinestatic |
Definition at line 859 of file qscriptengine_p.h.
Referenced by QScriptContext::activationObject(), QScriptContext::argumentCount(), QScriptContext::argumentsObject(), QScriptContext::callee(), QScriptContext::engine(), QScriptContext::isCalledAsConstructor(), mark(), QScriptContext::parentContext(), QScriptContext::popScope(), QScriptContext::pushScope(), QScriptContextInfoPrivate::QScriptContextInfoPrivate(), QScriptContext::scopeChain(), QScriptDeclarativeClass::scopeChainValue(), QScriptContext::setActivationObject(), QScriptContext::setReturnValue(), QScriptContext::setThisObject(), QScriptContext::state(), QScriptContext::thisObject(), QScriptContext::throwError(), QScriptContext::throwValue(), QScriptContext::toString(), and QScriptDeclarativeClass::Value::Value().
|
inlinestatic |
Definition at line 864 of file qscriptengine_p.h.
|
inline |
Definition at line 602 of file qscriptengine_p.h.
Referenced by QScriptValuePrivate::operator delete().
|
inlinestatic |
Definition at line 158 of file qscriptengine_p.h.
Referenced by QScriptContext::argumentsObject(), QScriptEngineAgentPrivate::attach(), QScript::callQtMethod(), QScriptContext::engine(), QScriptEngineAgent::engine(), QScriptValueIteratorPrivate::engine(), QScriptValue::engine(), QScript::QtPropertyFunction::execute(), QScript::QMetaObjectWrapperObject::execute(), QScriptDeclarativeClass::newStaticScopeObject(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), QScript::FunctionWithArgWrapper::proxyConstruct(), QScriptDeclarativeClass::pushCleanContext(), QScriptEngine::qScriptConnect(), QScriptContextInfoPrivate::QScriptContextInfoPrivate(), QScriptEngine::qScriptDisconnect(), QScriptEngineAgent::QScriptEngineAgent(), QScriptDeclarativeClass::Value::toScriptValue(), and QScriptDeclarativeClass::Value::Value().
|
inlinestatic |
Definition at line 159 of file qscriptengine_p.h.
JSC::JSObject * QScriptEnginePrivate::getOriginalGlobalObjectProxy | ( | ) |
Definition at line 1172 of file qscriptengine.cpp.
|
inline |
Definition at line 884 of file qscriptengine_p.h.
Referenced by contextForFrame(), and QScriptValueIteratorPrivate::ensureInitialized().
JSC::JSObject * QScriptEnginePrivate::globalObject | ( | ) | const |
Definition at line 1181 of file qscriptengine.cpp.
Referenced by mark(), QScriptEnginePrivate(), and setGlobalObject().
bool QScriptEnginePrivate::hasDemarshalFunction | ( | int | type | ) | const |
Definition at line 3443 of file qscriptengine.cpp.
Referenced by QScript::QtPropertyFunction::execute().
|
inlinestatic |
Definition at line 869 of file qscriptengine_p.h.
Referenced by QScriptContext::argumentsObject(), QScript::functionQsTr(), and QScriptContextInfoPrivate::QScriptContextInfoPrivate().
|
inlinestatic |
Definition at line 916 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), QScriptValue::isArray(), and toVariant().
bool QScriptEnginePrivate::isCollecting | ( | ) | const |
Definition at line 1337 of file qscriptengine.cpp.
|
inlinestatic |
Definition at line 921 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), QScriptValue::isDate(), and toVariant().
|
inlinestatic |
|
inlinestatic |
Definition at line 911 of file qscriptengine_p.h.
Referenced by declarativeClass(), declarativeObject(), newVariant(), propertyHelper(), and toVariant().
|
inlinestatic |
Definition at line 960 of file qscriptengine_p.h.
Referenced by QScriptValue::isQMetaObject().
|
inlinestatic |
Definition at line 945 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), QScriptValue::isQObject(), and toVariant().
|
inlinestatic |
Definition at line 931 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), QScriptValue::isRegExp(), toRegExp(), and toVariant().
|
inlinestatic |
Definition at line 936 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), QScriptValue::isVariant(), jscValueToVariant(), newVariant(), toVariant(), and QScript::variantFromValue().
|
inlinestatic |
Definition at line 634 of file qscriptengine_p.h.
Referenced by arrayFromVariantList(), QScript::ClassObjectDelegate::call(), QScript::callQtMethod(), QScript::QObjectConnectionManager::execute(), QScript::QtPropertyFunction::execute(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), and objectFromVariantMap().
|
static |
Definition at line 1057 of file qscriptengine.cpp.
void QScriptEnginePrivate::mark | ( | JSC::MarkStack & | markStack | ) |
Definition at line 1275 of file qscriptengine.cpp.
|
inlinestatic |
Definition at line 889 of file qscriptengine_p.h.
Referenced by arrayFromStringList(), and arrayFromVariantList().
|
inlinestatic |
Definition at line 894 of file qscriptengine_p.h.
|
inlinestatic |
Definition at line 901 of file qscriptengine_p.h.
|
inline |
Definition at line 906 of file qscriptengine_p.h.
Referenced by QScriptContext::argumentsObject().
JSC::JSValue QScriptEnginePrivate::newQMetaObject | ( | const QMetaObject * | metaObject, |
JSC::JSValue | ctor | ||
) |
Definition at line 1475 of file qscriptengine.cpp.
JSC::JSValue QScriptEnginePrivate::newQObject | ( | QObject * | object, |
QScriptEngine::ValueOwnership | ownership = QScriptEngine::QtOwnership , |
||
const QScriptEngine::QObjectWrapOptions & | options = 0 |
||
) |
Definition at line 1436 of file qscriptengine.cpp.
Referenced by create(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), QScript::qobjectProtoFuncFindChild(), and QScript::qobjectProtoFuncFindChildren().
|
static |
Definition at line 1644 of file qscriptengine.cpp.
|
static |
Definition at line 1698 of file qscriptengine.cpp.
JSC::JSValue QScriptEnginePrivate::newVariant | ( | const QVariant & | value | ) |
Definition at line 1716 of file qscriptengine.cpp.
Referenced by QScript::callQtMethod(), create(), and newVariant().
JSC::JSValue QScriptEnginePrivate::newVariant | ( | JSC::JSValue | objectValue, |
const QVariant & | value | ||
) |
Definition at line 1726 of file qscriptengine.cpp.
|
static |
Definition at line 1118 of file qscriptengine.cpp.
JSC::JSGlobalObject * QScriptEnginePrivate::originalGlobalObject | ( | ) | const |
Definition at line 1161 of file qscriptengine.cpp.
Referenced by QScriptEngineAgentPrivate::attach(), QScriptContext::callee(), create(), customGlobalObject(), QScriptEngineAgentPrivate::detach(), evaluateHelper(), getOriginalGlobalObjectProxy(), QScript::QObjectDelegate::getOwnPropertyDescriptor(), QScript::QObjectDelegate::getOwnPropertySlot(), globalObject(), mark(), QScript::FunctionWrapper::proxyConstruct(), QScriptContext::pushScope(), QScript::QObjectDelegate::put(), QScript::qobjectProtoFuncFindChildren(), QScriptContext::setActivationObject(), setGlobalObject(), and toUsableValue().
void QScriptEnginePrivate::popContext | ( | ) |
Definition at line 2868 of file qscriptengine.cpp.
Referenced by QScript::ClassObjectDelegate::call(), QScript::DeclarativeObjectDelegate::call(), QScript::QtFunction::call(), QScript::QMetaObjectWrapperObject::call(), QScript::ClassObjectDelegate::construct(), QScript::QMetaObjectWrapperObject::construct(), QScript::QtPropertyFunction::execute(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), and QScript::FunctionWithArgWrapper::proxyConstruct().
|
inlinestatic |
Definition at line 720 of file qscriptengine_p.h.
Referenced by QScript::functionConnect(), QScript::functionDisconnect(), QScriptValuePrivate::property(), propertyHelper(), stringListFromArray(), toRegExp(), variantListFromArray(), and variantMapFromObject().
|
inlinestatic |
Definition at line 730 of file qscriptengine_p.h.
|
inlinestatic |
Definition at line 715 of file qscriptengine_p.h.
|
static |
Definition at line 1917 of file qscriptengine.cpp.
Referenced by QScriptValuePrivate::propertyFlags().
|
inlinestatic |
Definition at line 740 of file qscriptengine_p.h.
|
inlinestatic |
Definition at line 668 of file qscriptengine_p.h.
Referenced by QScriptDeclarativeClass::newStaticScopeObject(), and setProperty().
|
static |
Definition at line 1794 of file qscriptengine.cpp.
|
static |
Definition at line 1813 of file qscriptengine.cpp.
JSC::CallFrame * QScriptEnginePrivate::pushContext | ( | JSC::CallFrame * | exec, |
JSC::JSValue | _thisObject, | ||
const JSC::ArgList & | args, | ||
JSC::JSObject * | callee, | ||
bool | calledAsConstructor = false , |
||
bool | clearScopeChain = false |
||
) |
JSC native function doesn't have different stackframe or context.
use popContext right after to go back to the previous context the context if no stack overflow has hapenned
exec is the current top frame.
return the new top frame. (might be the same as exec if a new stackframe was not needed) or 0 if stack overflow
Definition at line 2778 of file qscriptengine.cpp.
Referenced by QScript::ClassObjectDelegate::call(), QScript::DeclarativeObjectDelegate::call(), QScript::QtFunction::call(), QScript::QMetaObjectWrapperObject::call(), QScript::ClassObjectDelegate::construct(), QScript::QMetaObjectWrapperObject::construct(), QScript::QtPropertyFunction::execute(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), QScript::FunctionWithArgWrapper::proxyConstruct(), and QScriptDeclarativeClass::pushCleanContext().
QScript::QObjectData * QScriptEnginePrivate::qobjectData | ( | QObject * | object | ) |
Definition at line 1502 of file qscriptengine.cpp.
Referenced by newQObject(), scriptConnect(), and scriptDisconnect().
|
inline |
Definition at line 579 of file qscriptengine_p.h.
Referenced by QScriptProgramPrivate::executable().
|
inline |
Definition at line 826 of file qscriptengine_p.h.
Referenced by toStringHandle().
|
inline |
Definition at line 613 of file qscriptengine_p.h.
void QScriptEnginePrivate::reportAdditionalMemoryCost | ( | int | size | ) |
Definition at line 1348 of file qscriptengine.cpp.
|
inlinestatic |
Definition at line 820 of file qscriptengine_p.h.
Referenced by QScriptValue::call(), QScriptValue::construct(), QScriptValue::equals(), and QScript::ToPrimitive().
|
inlinestatic |
Definition at line 810 of file qscriptengine_p.h.
Referenced by QScriptValue::call(), QScriptValue::construct(), QScriptValue::equals(), and QScript::ToPrimitive().
bool QScriptEnginePrivate::scriptConnect | ( | QObject * | sender, |
const char * | signal, | ||
JSC::JSValue | receiver, | ||
JSC::JSValue | function, | ||
Qt::ConnectionType | type | ||
) |
Definition at line 1545 of file qscriptengine.cpp.
Referenced by QScript::functionConnect(), QScriptEngine::qScriptConnect(), and scriptConnect().
bool QScriptEnginePrivate::scriptConnect | ( | QObject * | sender, |
int | index, | ||
JSC::JSValue | receiver, | ||
JSC::JSValue | function, | ||
JSC::JSValue | senderWrapper, | ||
Qt::ConnectionType | type | ||
) |
Definition at line 1570 of file qscriptengine.cpp.
bool QScriptEnginePrivate::scriptConnect | ( | JSC::JSValue | signal, |
JSC::JSValue | receiver, | ||
JSC::JSValue | function, | ||
Qt::ConnectionType | type | ||
) |
Definition at line 1588 of file qscriptengine.cpp.
bool QScriptEnginePrivate::scriptDisconnect | ( | QObject * | sender, |
const char * | signal, | ||
JSC::JSValue | receiver, | ||
JSC::JSValue | function | ||
) |
Definition at line 1558 of file qscriptengine.cpp.
Referenced by QScript::functionDisconnect(), QScriptEngine::qScriptDisconnect(), and scriptDisconnect().
bool QScriptEnginePrivate::scriptDisconnect | ( | QObject * | sender, |
int | index, | ||
JSC::JSValue | receiver, | ||
JSC::JSValue | function | ||
) |
Definition at line 1579 of file qscriptengine.cpp.
bool QScriptEnginePrivate::scriptDisconnect | ( | JSC::JSValue | signal, |
JSC::JSValue | receiver, | ||
JSC::JSValue | function | ||
) |
Definition at line 1596 of file qscriptengine.cpp.
|
inline |
Definition at line 641 of file qscriptengine_p.h.
Referenced by QScriptContext::activationObject(), QScriptContext::argumentsObject(), QScript::ClassObjectDelegate::call(), QScript::DeclarativeObjectDelegate::call(), QScriptContext::callee(), convertValue(), QScript::ClassObjectDelegate::deleteProperty(), QScriptEngineAgentPrivate::evaluateStop(), QScriptEngineAgentPrivate::exceptionCatch(), QScriptEngineAgentPrivate::exceptionThrow(), QScriptDeclarativeClass::function(), QScriptEngineAgentPrivate::functionExit(), QScript::ClassObjectDelegate::getOwnPropertyDescriptor(), QScript::ClassObjectDelegate::getOwnPropertyNames(), QScript::ClassObjectDelegate::getOwnPropertySlot(), QScript::ClassObjectDelegate::hasInstance(), QScriptDeclarativeClass::newObject(), QScriptDeclarativeClass::newStaticScopeObject(), QScriptContext::popScope(), QScriptDeclarativeClass::property(), QScript::ClassObjectDelegate::put(), QScript::DeclarativeObjectDelegate::put(), QScriptContext::scopeChain(), QScriptDeclarativeClass::scopeChainValue(), QScriptContext::thisObject(), QScriptContext::throwError(), QScript::ToPrimitive(), and QScriptDeclarativeClass::Value::toScriptValue().
|
inline |
Definition at line 651 of file qscriptengine_p.h.
Referenced by QScript::ClassObjectDelegate::construct(), create(), evaluateHelper(), QScript::QMetaObjectWrapperObject::execute(), QScript::GlobalObject::getOwnPropertyDescriptor(), QScript::ClassObjectDelegate::getOwnPropertyDescriptor(), QScript::GlobalObject::getOwnPropertySlot(), QScript::ClassObjectDelegate::getOwnPropertySlot(), QScriptDeclarativeClass::newStaticScopeObject(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), QScript::FunctionWithArgWrapper::proxyConstruct(), QScriptContext::pushScope(), QScriptEngine::qScriptConnect(), QScriptEngine::qScriptDisconnect(), QScriptContext::setActivationObject(), QScriptContext::setReturnValue(), QScriptContext::setThisObject(), QScriptValue::strictlyEquals(), QScriptContext::throwValue(), and QScriptDeclarativeClass::Value::Value().
|
static |
Definition at line 1268 of file qscriptengine.cpp.
Referenced by QScriptContext::activationObject(), and QScriptContext::setActivationObject().
|
inline |
Definition at line 274 of file qscriptengine_p.h.
Referenced by QScriptEngineAgentPrivate::exceptionThrow().
void QScriptEnginePrivate::setDefaultPrototype | ( | int | metaTypeId, |
JSC::JSValue | prototype | ||
) |
Definition at line 1151 of file qscriptengine.cpp.
void QScriptEnginePrivate::setGlobalObject | ( | JSC::JSObject * | object | ) |
Definition at line 1189 of file qscriptengine.cpp.
|
inlinestatic |
Definition at line 747 of file qscriptengine_p.h.
Referenced by arrayFromStringList(), arrayFromVariantList(), objectFromVariantMap(), QScriptValuePrivate::setProperty(), and setProperty().
|
static |
Definition at line 1826 of file qscriptengine.cpp.
|
static |
Definition at line 1887 of file qscriptengine.cpp.
|
inlinestatic |
Definition at line 1089 of file qscriptengine_p.h.
Referenced by newVariant().
|
static |
Definition at line 1087 of file qscriptengine.cpp.
|
static |
Definition at line 1231 of file qscriptengine.cpp.
Referenced by evaluateHelper(), and QScriptContext::thisObject().
|
static |
Definition at line 1243 of file qscriptengine.cpp.
Referenced by QScriptContext::setThisObject(), and thisForContext().
QScript::TimeoutCheckerProxy * QScriptEnginePrivate::timeoutChecker | ( | ) | const |
|
inlinestatic |
Definition at line 969 of file qscriptengine_p.h.
Referenced by QScriptValue::toBool(), QScriptValue::toBoolean(), toRegExp(), and toVariant().
|
inlinestatic |
Definition at line 1038 of file qscriptengine_p.h.
Referenced by QScriptValue::toDateTime(), and toVariant().
|
inlinestatic |
Definition at line 996 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), QScriptValue::toInt32(), and toVariant().
|
inlinestatic |
Definition at line 978 of file qscriptengine_p.h.
Referenced by QScriptValue::toInteger().
|
inlinestatic |
Definition at line 987 of file qscriptengine_p.h.
Referenced by QScriptValue::toNumber(), and toVariant().
|
inlinestatic |
Definition at line 1072 of file qscriptengine_p.h.
Referenced by QScriptValue::toQMetaObject().
|
inlinestatic |
Definition at line 1046 of file qscriptengine_p.h.
Referenced by convertToNativeQObject(), QScript::QtPropertyFunction::execute(), QScriptValue::toQObject(), and toVariant().
|
static |
Definition at line 1747 of file qscriptengine.cpp.
Referenced by QScriptValue::toRegExp(), and toVariant().
|
inlinestatic |
Definition at line 1020 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), QScript::functionConnect(), QScript::functionDisconnect(), stringListFromArray(), toRegExp(), QScriptValue::toString(), and toVariant().
QScriptString QScriptEnginePrivate::toStringHandle | ( | const JSC::Identifier & | name | ) |
Definition at line 1952 of file qscriptengine.cpp.
|
inlinestatic |
Definition at line 1014 of file qscriptengine_p.h.
Referenced by QScriptValue::toUInt16().
|
inlinestatic |
Definition at line 1005 of file qscriptengine_p.h.
Referenced by stringListFromArray(), QScriptValue::toUInt32(), and variantListFromArray().
JSC::JSValue QScriptEnginePrivate::toUsableValue | ( | JSC::JSValue | value | ) |
If the given value is the original global object, returns the custom global object or a proxy to the original global object; otherwise returns value.
Definition at line 1216 of file qscriptengine.cpp.
Referenced by QScript::QMetaObjectWrapperObject::call(), QScript::QtFunction::execute(), QScript::QtPropertyFunction::execute(), QScript::qmetaobjectProtoFuncClassName(), QScript::qobjectProtoFuncFindChild(), QScript::qobjectProtoFuncFindChildren(), QScript::qobjectProtoFuncToString(), QScript::variantProtoFuncToString(), and QScript::variantProtoFuncValueOf().
|
static |
Definition at line 1760 of file qscriptengine.cpp.
Referenced by QScript::callQtMethod(), QScript::QVariantDelegate::compareToObject(), jscValueToVariant(), QScriptValue::toVariant(), QScript::variantFromValue(), variantListFromArray(), and variantMapFromObject().
JSC::UString QScriptEnginePrivate::translationContextFromUrl | ( | const JSC::UString & | url | ) |
Definition at line 3449 of file qscriptengine.cpp.
Referenced by QScript::functionQsTr().
|
inline |
Definition at line 585 of file qscriptengine_p.h.
Referenced by QScriptProgramPrivate::executable(), and QScriptProgramPrivate::~QScriptProgramPrivate().
|
inline |
Definition at line 836 of file qscriptengine_p.h.
|
inline |
Definition at line 622 of file qscriptengine_p.h.
|
static |
Definition at line 1104 of file qscriptengine.cpp.
Referenced by toVariant().
|
static |
Definition at line 1127 of file qscriptengine.cpp.
Referenced by toVariant().
|
inlinestatic |
Definition at line 1081 of file qscriptengine_p.h.
Referenced by QScript::callQtMethod(), jscValueToVariant(), toVariant(), and QScript::variantFromValue().
QScriptValue QScriptEnginePrivate::abortResult |
Definition at line 383 of file qscriptengine_p.h.
Referenced by evaluateHelper().
QScriptEngineAgent* QScriptEnginePrivate::activeAgent |
Definition at line 373 of file qscriptengine_p.h.
Referenced by agentDeleted().
int QScriptEnginePrivate::agentLineNumber |
Definition at line 374 of file qscriptengine_p.h.
Referenced by QScriptEngineAgentPrivate::atStatement(), QScriptEngineAgentPrivate::didReachBreakpoint(), QScriptEngineAgentPrivate::exceptionThrow(), and QScriptContextInfoPrivate::QScriptContextInfoPrivate().
JSC::UString QScriptEnginePrivate::cachedTranslationContext |
Definition at line 387 of file qscriptengine_p.h.
Referenced by QScriptEnginePrivate().
JSC::UString QScriptEnginePrivate::cachedTranslationUrl |
Definition at line 386 of file qscriptengine_p.h.
Referenced by QScriptEnginePrivate().
JSC::ExecState* QScriptEnginePrivate::currentFrame |
Definition at line 358 of file qscriptengine_p.h.
Referenced by QScriptEngineAgentPrivate::atStatement(), QScript::ClassObjectDelegate::call(), QScript::DeclarativeObjectDelegate::call(), QScript::QtFunction::call(), QScript::QMetaObjectWrapperObject::call(), QScript::ClassObjectDelegate::construct(), QScript::QMetaObjectWrapperObject::construct(), QScriptEngine::convertV2(), QScriptDeclarativeClass::createPersistentIdentifier(), QScriptEngineAgentPrivate::didReachBreakpoint(), QScriptValue::equals(), QScriptEngineAgentPrivate::exceptionCatch(), QScriptEngineAgentPrivate::exceptionThrow(), QScript::QtPropertyFunction::execute(), QScriptDeclarativeClass::function(), QScriptDeclarativeClass::functionValue(), getOriginalGlobalObjectProxy(), QScript::GlobalObject::getOwnPropertyDescriptor(), QScript::GlobalObject::getOwnPropertySlot(), QScriptDeclarativeClass::newObject(), QScriptDeclarativeClass::newObjectValue(), newQMetaObject(), newQObject(), QScriptDeclarativeClass::newStaticScopeObject(), newVariant(), QScriptDeclarativeClass::property(), QScriptDeclarativeClass::propertyValue(), QScript::FunctionWrapper::proxyCall(), QScript::FunctionWithArgWrapper::proxyCall(), QScript::FunctionWrapper::proxyConstruct(), QScript::FunctionWithArgWrapper::proxyConstruct(), QScriptDeclarativeClass::pushCleanContext(), QScriptEnginePrivate(), QScriptValue::QScriptValue(), QScript::SaveFrameHelper::SaveFrameHelper(), QScriptValue::strictlyEquals(), QScript::ToPrimitive(), toUsableValue(), and QScriptDeclarativeClass::Value::Value().
Definition at line 390 of file qscriptengine_p.h.
QScriptValuePrivate* QScriptEnginePrivate::freeScriptValues |
Definition at line 376 of file qscriptengine_p.h.
Referenced by ~QScriptEnginePrivate().
int QScriptEnginePrivate::freeScriptValuesCount |
Definition at line 378 of file qscriptengine_p.h.
JSC::JSGlobalData* QScriptEnginePrivate::globalData |
Definition at line 356 of file qscriptengine_p.h.
Referenced by QScriptEngineAgentPrivate::attach(), collectGarbage(), isCollecting(), originalGlobalObject(), QScriptEnginePrivate(), reportAdditionalMemoryCost(), timeoutChecker(), and ~QScriptEnginePrivate().
Definition at line 389 of file qscriptengine_p.h.
bool QScriptEnginePrivate::inEval |
Definition at line 384 of file qscriptengine_p.h.
Referenced by evaluateHelper().
QHash<intptr_t, QScript::UStringSourceProviderWithFeedback*> QScriptEnginePrivate::loadedScripts |
Definition at line 392 of file qscriptengine_p.h.
Referenced by QScriptEngineAgentPrivate::atStatement(), QScriptEngineAgentPrivate::didReachBreakpoint(), and ~QScriptEnginePrivate().
QScriptValue QScriptEnginePrivate::m_currentException |
Definition at line 393 of file qscriptengine_p.h.
QHash<QObject*, QScript::QObjectData*> QScriptEnginePrivate::m_qobjectData |
Definition at line 398 of file qscriptengine_p.h.
Referenced by _q_objectDestroyed(), mark(), qobjectData(), and ~QScriptEnginePrivate().
QHash<int, QScriptTypeInfo*> QScriptEnginePrivate::m_typeInfos |
Definition at line 381 of file qscriptengine_p.h.
Referenced by convertValue(), create(), defaultPrototype(), mark(), setDefaultPrototype(), and ~QScriptEnginePrivate().
|
static |
Definition at line 377 of file qscriptengine_p.h.
JSC::JSObject* QScriptEnginePrivate::originalGlobalObjectProxy |
Definition at line 357 of file qscriptengine_p.h.
Referenced by getOriginalGlobalObjectProxy(), mark(), QScriptContext::pushScope(), QScriptContext::setActivationObject(), setGlobalObject(), and toUsableValue().
QList<QScriptEngineAgent*> QScriptEnginePrivate::ownedAgents |
Definition at line 372 of file qscriptengine_p.h.
Referenced by agentDeleted(), QScriptEngineAgent::QScriptEngineAgent(), and ~QScriptEnginePrivate().
int QScriptEnginePrivate::processEventsInterval |
Definition at line 382 of file qscriptengine_p.h.
Referenced by evaluateHelper().
QScript::QMetaObjectPrototype* QScriptEnginePrivate::qmetaobjectPrototype |
Definition at line 366 of file qscriptengine_p.h.
Referenced by mark(), and QScriptEnginePrivate().
WTF::RefPtr<JSC::Structure> QScriptEnginePrivate::qmetaobjectWrapperObjectStructure |
Definition at line 367 of file qscriptengine_p.h.
Referenced by newQMetaObject(), and QScriptEnginePrivate().
QScript::QObjectPrototype* QScriptEnginePrivate::qobjectPrototype |
Definition at line 363 of file qscriptengine_p.h.
Referenced by mark(), and QScriptEnginePrivate().
WTF::RefPtr<JSC::Structure> QScriptEnginePrivate::qobjectWrapperObjectStructure |
Definition at line 364 of file qscriptengine_p.h.
Referenced by newQObject(), and QScriptEnginePrivate().
QSet<QScriptProgramPrivate*> QScriptEnginePrivate::registeredScriptPrograms |
Definition at line 380 of file qscriptengine_p.h.
Referenced by detachAllRegisteredScriptPrograms().
QScriptStringPrivate* QScriptEnginePrivate::registeredScriptStrings |
Definition at line 379 of file qscriptengine_p.h.
Referenced by detachAllRegisteredScriptStrings().
QScriptValuePrivate* QScriptEnginePrivate::registeredScriptValues |
Definition at line 375 of file qscriptengine_p.h.
Referenced by detachAllRegisteredScriptValues(), and mark().
WTF::RefPtr<JSC::Structure> QScriptEnginePrivate::scriptObjectStructure |
Definition at line 360 of file qscriptengine_p.h.
Referenced by getOriginalGlobalObjectProxy(), QScriptDeclarativeClass::newObject(), QScriptDeclarativeClass::newObjectValue(), QScriptEnginePrivate(), and toUsableValue().
WTF::RefPtr<JSC::Structure> QScriptEnginePrivate::staticScopeObjectStructure |
Definition at line 361 of file qscriptengine_p.h.
Referenced by QScriptDeclarativeClass::newStaticScopeObject(), and QScriptEnginePrivate().
QScript::QVariantPrototype* QScriptEnginePrivate::variantPrototype |
Definition at line 369 of file qscriptengine_p.h.
Referenced by mark(), and QScriptEnginePrivate().
WTF::RefPtr<JSC::Structure> QScriptEnginePrivate::variantWrapperObjectStructure |
Definition at line 370 of file qscriptengine_p.h.
Referenced by newVariant(), and QScriptEnginePrivate().
QSet<JSC::JSObject*> QScriptEnginePrivate::visitedConversionObjects |
Definition at line 395 of file qscriptengine_p.h.
Referenced by variantListFromArray(), and variantMapFromObject().