summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptvalue_p.h
Commit message (Collapse)AuthorAgeFilesLines
* compile again after mergeHarald Fernengel2009-08-211-1/+1
|
* implement registered script values as a doubly linked listKent Hansen2009-08-201-0/+4
| | | | It's faster.
* use a list to keep track of registered script valuesKent Hansen2009-08-201-46/+3
| | | | Get rid of the hash.
* store the engine's d-pointer in QScriptValuePrivateKent Hansen2009-08-201-28/+27
| | | | | It's the d-pointer that we most frequently want to access, so store it to avoid having to use QScriptEnginePrivate::get() all over the place.
* remove redundant variableKent Hansen2009-08-201-5/+1
|
* invalidate wrapped JSC::JSValue when script engine is deletedKent Hansen2009-08-191-2/+5
| | | | Otherwise we will crash if someone tries to do something with the value.
* Fix QScriptValue::objectId().Jedrzej Nowacki2009-08-191-1/+8
| | | | | | | QScriptValue id were made persistent. It depands on JSC:JSValue JSCell pointer not on QScriptValuePrivate attr. Reviewed-by: Kent Hansen
* Q_DISABLE_COPY were added to QScriptValuePrivate.Jedrzej Nowacki2009-08-191-0/+1
| | | | Reviewed-by: Kent Hansen
* Internal API clean up.Jedrzej Nowacki2009-08-191-4/+0
| | | | | | Static method QScriptValue::initFromJSCValue was removed. Reviewed-by: Kent Hansen
* Clean up.Jedrzej Nowacki2009-08-191-11/+16
| | | | | | | | | Internal API of QScriptValue were cleaned. toPublic() was removed and replaced by standard static Private::get(). All initFromXXX() methods were replaced by overload call of initFrom(). Reviewed-by: Kent Hansen
* Fix potential building problem.Jedrzej Nowacki2009-08-191-7/+2
| | | | | | | | Comparison between pointer and int where removed. According to doc operator-> where created (class QScriptValueAutoRegister suppose to behave as pointer). Reviewed-by: Kent Hansen
* Make simple function getters inlineOlivier Goffart2009-08-121-1/+1
|
* add configure options for (not) building the QtScript moduleKent Hansen2009-08-071-4/+0
| | | | | | | | | | | | | | | | | | -script (default) and -no-script. This means we can get rid of the SCRIPT feature from qfeatures, since it's now handled by the new configure variable. It also allows us to get rid of all the QT_NO_SCRIPT ifdefs from the source files, since qmake isn't going to include those files for compilation when you configure with -no-script. The QtScriptTools module will be disabled if the QtScript module is not built. You'll have to build the old QtScript back-end (will be made available in a separate package), then build the QtScriptTools module yourself. Reviewed-by: Simon Hausmann
* Fix license headersOlivier Goffart2009-07-291-4/+34
|
* Implement QScriptString as a wraper around the JSC::IdentifierOlivier Goffart2009-07-231-1/+2
|
* make QScriptValue::toString() et al work when there's an exceptionKent Hansen2009-07-171-0/+3
| | | | | JSC refuses to call functions when there's an exception that hasn't been dealt with, so save the exception and restore it afterwards.
* Convert the strings or number value to jscvalue when they are used with an ↵Olivier Goffart2009-07-161-1/+1
| | | | | | | engine Also change the stringValue not to be a pointer. This fixes a memory leak.
* Fix autotest checking QScriptValue::objectId method.Jedrzej Nowacki2009-07-091-1/+10
| | | | (QScriptValue::objectId() and QScriptEnigne::objectById)
* Fix engineDelete autotest.Jedrzej Nowacki2009-07-081-2/+54
|
* make more qscriptengine tests runKent Hansen2009-06-241-0/+1
| | | | | Not everything passes but at least nothing asserts anymore, so the test runs to completion.
* make most of the qscriptvalue tests passKent Hansen2009-06-231-0/+2
| | | | call(), construct() etc.
* Import JSC-based Qt Script from Kent's tree.Simon Hausmann2009-06-161-0/+78