diff options
author | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2013-02-05 14:13:33 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@digia.com> | 2013-02-05 14:13:33 +0100 |
commit | 8ca2081418ad301effb8f08e7a59080c262c0362 (patch) | |
tree | 8787dc1fa3b15f1ea0696a9d30cd1fa2fd47813e /src/script/api | |
parent | 7e1803d382fd199bae12c8e13cd710e51e633a09 (diff) | |
parent | 82365233831b212a7a230d42ea902d7e5df25e99 (diff) | |
download | qtscript-8ca2081418ad301effb8f08e7a59080c262c0362.tar.gz |
Merge remote-tracking branch 'origin/stable' into dev
Change-Id: Ib100dac4eccddf7a72382b7d1ead7d504a572347
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/qscriptclass.cpp | 2 | ||||
-rw-r--r-- | src/script/api/qscriptcontext.cpp | 2 | ||||
-rw-r--r-- | src/script/api/qscriptcontextinfo.cpp | 2 | ||||
-rw-r--r-- | src/script/api/qscriptengine.cpp | 52 | ||||
-rw-r--r-- | src/script/api/qscriptextensionplugin.cpp | 2 | ||||
-rw-r--r-- | src/script/api/qscriptstring.cpp | 2 | ||||
-rw-r--r-- | src/script/api/qscriptvalue.cpp | 4 |
7 files changed, 33 insertions, 33 deletions
diff --git a/src/script/api/qscriptclass.cpp b/src/script/api/qscriptclass.cpp index 2fc2d0a..8e286c8 100644 --- a/src/script/api/qscriptclass.cpp +++ b/src/script/api/qscriptclass.cpp @@ -179,7 +179,7 @@ QScriptEngine *QScriptClass::engine() const your class, then return it in this function. See the "Making Use of Prototype-Based Inheritance" section in the - QtScript documentation for more information on how prototypes are + Qt Script documentation for more information on how prototypes are used. */ QScriptValue QScriptClass::prototype() const diff --git a/src/script/api/qscriptcontext.cpp b/src/script/api/qscriptcontext.cpp index 6ea2b34..cbded31 100644 --- a/src/script/api/qscriptcontext.cpp +++ b/src/script/api/qscriptcontext.cpp @@ -179,7 +179,7 @@ QScriptValue QScriptContext::throwValue(const QScriptValue &value) The error object will be initialized to contain information about the location where the error occurred; specifically, it will have properties \c{lineNumber}, \c{fileName} and \c{stack}. These - properties are described in \l {QtScript Extensions to ECMAScript}. + properties are described in \l {Qt Script Extensions to ECMAScript}. \sa throwValue(), state() */ diff --git a/src/script/api/qscriptcontextinfo.cpp b/src/script/api/qscriptcontextinfo.cpp index b838f15..15f0966 100644 --- a/src/script/api/qscriptcontextinfo.cpp +++ b/src/script/api/qscriptcontextinfo.cpp @@ -159,7 +159,7 @@ QScriptContextInfoPrivate::QScriptContextInfoPrivate(const QScriptContext *conte if (returnPC && codeBlock && QScriptEnginePrivate::hasValidCodeBlockRegister(frame)) { #if ENABLE(JIT) JSC::JITCode code = codeBlock->getJITCode(); - unsigned jitOffset = code.offsetOf(JSC::ReturnAddressPtr(returnPC).value()); + uintptr_t jitOffset = reinterpret_cast<uintptr_t>(JSC::ReturnAddressPtr(returnPC).value()) - reinterpret_cast<uintptr_t>(code.addressForCall().executableAddress()); // We can only use the JIT code offset if it's smaller than the JIT size; // otherwise calling getBytecodeIndex() is meaningless. if (jitOffset < code.size()) { diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index 0b09f43..cefcd50 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -98,7 +98,7 @@ QT_BEGIN_NAMESPACE \ingroup script \mainclass - See the \l{QtScript} documentation for information about the Qt Script language, + See the \l{Qt Script} documentation for information about the Qt Script language, and how to get started with scripting your C++ application. \section1 Evaluating Scripts @@ -1262,7 +1262,7 @@ void QScriptEnginePrivate::setContextFlags(JSC::ExecState *exec, uint flags) // This function is called by JSC after all objects reachable by JSC itself // have been processed (see JSC::Heap::markRoots()). -// Here we should mark additional objects managed by QtScript. +// Here we should mark additional objects managed by Qt Script. void QScriptEnginePrivate::mark(JSC::MarkStack& markStack) { Q_Q(QScriptEngine); @@ -2183,7 +2183,7 @@ QScriptValue QScriptEngine::newFunction(QScriptEngine::FunctionSignature fun, #ifndef QT_NO_REGEXP /*! - Creates a QtScript object of class RegExp with the given + Creates a Qt Script object of class RegExp with the given \a regexp. \sa QScriptValue::toRegExp() @@ -2198,7 +2198,7 @@ QScriptValue QScriptEngine::newRegExp(const QRegExp ®exp) #endif // QT_NO_REGEXP /*! - Creates a QtScript object holding the given variant \a value. + Creates a Qt Script object holding the given variant \a value. If a default prototype has been registered with the meta type id of \a value, then the prototype of the created object will be that @@ -2251,13 +2251,13 @@ QScriptValue QScriptEngine::newVariant(const QScriptValue &object, #ifndef QT_NO_QOBJECT /*! - Creates a QtScript object that wraps the given QObject \a + Creates a Qt Script object that wraps the given QObject \a object, using the given \a ownership. The given \a options control various aspects of the interaction with the resulting script object. Signals and slots, properties and children of \a object are available as properties of the created QScriptValue. For more - information, see the \l{QtScript} documentation. + information, see the \l{Qt Script} documentation. If \a object is a null pointer, this function returns nullValue(). @@ -2265,8 +2265,8 @@ QScriptValue QScriptEngine::newVariant(const QScriptValue &object, (or its superclass, recursively), the prototype of the new script object will be set to be that default prototype. - If the given \a object is deleted outside of QtScript's control, any - attempt to access the deleted QObject's members through the QtScript + If the given \a object is deleted outside of Qt Script's control, any + attempt to access the deleted QObject's members through the Qt Script wrapper object (either by script code or C++) will result in a script exception. @@ -2337,7 +2337,7 @@ QScriptValue QScriptEngine::newQObject(const QScriptValue &scriptObject, #endif // QT_NO_QOBJECT /*! - Creates a QtScript object of class Object. + Creates a Qt Script object of class Object. The prototype of the created object will be the Object prototype object. @@ -2355,7 +2355,7 @@ QScriptValue QScriptEngine::newObject() \since 4.4 \overload - Creates a QtScript Object of the given class, \a scriptClass. + Creates a Qt Script Object of the given class, \a scriptClass. The prototype of the created object will be the Object prototype object. @@ -2467,7 +2467,7 @@ QScriptValue QScriptEngine::newFunction(QScriptEngine::FunctionWithArgSignature } /*! - Creates a QtScript object of class Array with the given \a length. + Creates a Qt Script object of class Array with the given \a length. \sa newObject() */ @@ -2479,7 +2479,7 @@ QScriptValue QScriptEngine::newArray(uint length) } /*! - Creates a QtScript object of class RegExp with the given + Creates a Qt Script object of class RegExp with the given \a pattern and \a flags. The legal flags are 'g' (global), 'i' (ignore case), and 'm' @@ -2493,7 +2493,7 @@ QScriptValue QScriptEngine::newRegExp(const QString &pattern, const QString &fla } /*! - Creates a QtScript object of class Date with the given + Creates a Qt Script object of class Date with the given \a value (the number of milliseconds since 01 January 1970, UTC). */ @@ -2505,7 +2505,7 @@ QScriptValue QScriptEngine::newDate(qsreal value) } /*! - Creates a QtScript object of class Date from the given \a value. + Creates a Qt Script object of class Date from the given \a value. \sa QScriptValue::toDateTime() */ @@ -2518,7 +2518,7 @@ QScriptValue QScriptEngine::newDate(const QDateTime &value) #ifndef QT_NO_QOBJECT /*! - Creates a QtScript object that represents a QObject class, using the + Creates a Qt Script object that represents a QObject class, using the the given \a metaObject and constructor \a ctor. Enums of \a metaObject (declared with Q_ENUMS) are available as @@ -2591,7 +2591,7 @@ QScriptValue QScriptEngine::newQMetaObject( valid, and so on. A typical usage of canEvaluate() is to implement an interactive - interpreter for QtScript. The user is repeatedly queried for + interpreter for Qt Script. The user is repeatedly queried for individual lines of code; the lines are concatened internally, and only when canEvaluate() returns true for the resulting program is it passed to evaluate(). @@ -2599,7 +2599,7 @@ QScriptValue QScriptEngine::newQMetaObject( The following are some examples to illustrate the behavior of canEvaluate(). (Note that all example inputs are assumed to have an explicit newline as their last character, since otherwise the - QtScript parser would automatically insert a semi-colon character at + Qt Script parser would automatically insert a semi-colon character at the end of the input, and this could cause canEvaluate() to produce different results.) @@ -2620,7 +2620,7 @@ QScriptValue QScriptEngine::newQMetaObject( Given the input \snippet code/src_script_qscriptengine.cpp 17 canEvaluate() will return true, even though the code is clearly not - syntactically valid QtScript code. evaluate() will throw a + syntactically valid Qt Script code. evaluate() will throw a SyntaxError when this code is evaluated. Given the input @@ -3607,7 +3607,7 @@ void QScriptEngine::installTranslatorFunctions(const QScriptValue &object) once; subsequent calls to importExtension() with the same extension name will do nothing and return undefinedValue(). - \sa availableExtensions(), QScriptExtensionPlugin, {Creating QtScript Extensions} + \sa availableExtensions(), QScriptExtensionPlugin, {Creating Qt Script Extensions} */ QScriptValue QScriptEngine::importExtension(const QString &extension) { @@ -3876,10 +3876,10 @@ QStringList QScriptEngine::importedExtensions() const Note that the template type \c{T} must be known to QMetaType. - See \l{Conversion Between QtScript and C++ Types} for a + See \l{Conversion Between Qt Script and C++ Types} for a description of the built-in type conversion provided by - QtScript. By default, the types that are not specially handled by - QtScript are represented as QVariants (e.g. the \a value is passed + Qt Script. By default, the types that are not specially handled by + Qt Script are represented as QVariants (e.g. the \a value is passed to newVariant()); you can change this behavior by installing your own type conversion functions with qScriptRegisterMetaType(). @@ -3892,9 +3892,9 @@ QStringList QScriptEngine::importedExtensions() const Note that \c{T} must be known to QMetaType. - See \l{Conversion Between QtScript and C++ Types} for a + See \l{Conversion Between Qt Script and C++ Types} for a description of the built-in type conversion provided by - QtScript. + Qt Script. \sa toScriptValue(), qScriptRegisterMetaType() */ @@ -3947,7 +3947,7 @@ QStringList QScriptEngine::importedExtensions() const Additionally, the type of each element in the sequence should be suitable for conversion to a QScriptValue. See - \l{Conversion Between QtScript and C++ Types} for more information + \l{Conversion Between Qt Script and C++ Types} for more information about the restrictions on types that can be used with QScriptValue. \sa QScriptEngine::fromScriptValue() @@ -3967,7 +3967,7 @@ QStringList QScriptEngine::importedExtensions() const Additionally, the type of each element in the sequence must be suitable for conversion to a C++ type from a QScriptValue. See - \l{Conversion Between QtScript and C++ Types} for more information + \l{Conversion Between Qt Script and C++ Types} for more information about the restrictions on types that can be used with QScriptValue. diff --git a/src/script/api/qscriptextensionplugin.cpp b/src/script/api/qscriptextensionplugin.cpp index 425c15c..a3e6fe7 100644 --- a/src/script/api/qscriptextensionplugin.cpp +++ b/src/script/api/qscriptextensionplugin.cpp @@ -44,7 +44,7 @@ QT_BEGIN_NAMESPACE functions, and exporting the class using the Q_PLUGIN_METADATA() macro. See \l {How to Create Qt Plugins} for details. - \sa QScriptEngine::importExtension(), {Creating QtScript Extensions} + \sa QScriptEngine::importExtension(), {Creating Qt Script Extensions} */ /*! diff --git a/src/script/api/qscriptstring.cpp b/src/script/api/qscriptstring.cpp index aceda42..34767ac 100644 --- a/src/script/api/qscriptstring.cpp +++ b/src/script/api/qscriptstring.cpp @@ -156,7 +156,7 @@ bool QScriptString::operator!=(const QScriptString &other) const /*! \since 4.6 - Attempts to convert this QScriptString to a QtScript array index, + Attempts to convert this QScriptString to a Qt Script array index, and returns the result. If a conversion error occurs, *\a{ok} is set to false; otherwise diff --git a/src/script/api/qscriptvalue.cpp b/src/script/api/qscriptvalue.cpp index cfffea2..3e307a2 100644 --- a/src/script/api/qscriptvalue.cpp +++ b/src/script/api/qscriptvalue.cpp @@ -94,7 +94,7 @@ not have the requested property. Note that this prototype-based lookup is not performed by setProperty(); setProperty() will always create the property in the script object itself. For more - information, see the \l{QtScript} documentation. + information, see the \l{Qt Script} documentation. Function objects (objects for which isFunction() returns true) can be invoked by calling call(). Constructor functions can be used to @@ -2014,7 +2014,7 @@ bool QScriptValue::isValid() const /*! \since 4.4 - Returns the internal data of this QScriptValue object. QtScript uses + Returns the internal data of this QScriptValue object. Qt Script uses this property to store the primitive value of Date, String, Number and Boolean objects. For other types of object, custom data may be stored using setData(). |