summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* make it possible for any script object to serve as activation objectKent Hansen2009-08-144-13/+135
| | | | | | | This was possible in the old back-end. In JSC, activation objects have to be instances of JSC::JSVariableObject. So the way we solve it is by having our QScriptActivationObject be able to act as a proxy to any other JSObject.
* Merge branch 'qtscript-jsc-backend-configure' of ↵Kent Hansen2009-08-142-3/+1
|\ | | | | | | git@scm.dev.nokia.troll.no:qt/qt-webkit into qtscript-jsc-backend
| * Make Script and ScriptTools availability the same as WebKitMarius Storm-Olsen2009-08-142-3/+1
| | | | | | | | Also build new binary.
* | Added missing copyright headersSimon Hausmann2009-08-142-0/+36
| |
* | Fix compilation on WindowsSimon Hausmann2009-08-141-0/+3
| | | | | | | | | | | | Don't compile moc_qscriptqobject_p.cpp separately but compile it from qscriptqobject.cpp instead, to ensure that config.h is included. That ensures that min/max are undeffed as macros.
* | Fix compilation on WindowsSimon Hausmann2009-08-1414-0/+14
| | | | | | | | | | | | In WebKit/JSC config.h needs to be included first in .cpp files, to among other things make sure that min/max are not defined as macros through windows.h.
* | Fix compilationSimon Hausmann2009-08-141-0/+2
| | | | | | | | Include config.h first.
* | Fix compilation on WindowsSimon Hausmann2009-08-141-1/+1
| | | | | | | | The forward declaration of DebuggerCallFrame is not enough for MSVC to compile.
* | Fix compilation with MSVC.Simon Hausmann2009-08-141-0/+1
| | | | | | | | | | A forward declaration of QScriptString is not sufficient for MSVC, include qscriptstring.h.
* | Fix compilation with MSVCSimon Hausmann2009-08-141-10/+10
| | | | | | | | | | Use the JSC_HOST_CALL annotation for the declaration as well as for the definition of the JSC callback functions.
* | Fix inclusions of "utils/qscriptdate_p.h" with msvcSimon Hausmann2009-08-141-0/+2
| | | | | | | | | | | | Don't rely on the current working directory being src/script, as that does not appear to be the case when building with .vcproj files. Instead add src/script to the INCLUDEPATH, so that the above inclusion works.
* | implement GC marking of qobject sender JS wrapperKent Hansen2009-08-141-5/+5
| |
* | Skip the fake context created by Interpreter::exucute for the backtraceOlivier Goffart2009-08-142-6/+5
| |
* | comment out assertKent Hansen2009-08-131-1/+1
| |
* | get rid of src/script/webkit.priKent Hansen2009-08-132-43/+44
| | | | | | | | Not needed since commit 9727a71ea077658148e963bc8510269b08095023.
* | Build fix.Jedrzej Nowacki2009-08-134-6/+4
| | | | | | | | | | | | Dependency on JSC from ScriptTools removed Reviewed-by: Kent Hansen
* | Lazily construct the QScriptActivationObjectOlivier Goffart2009-08-136-40/+109
| | | | | | | | | | | | | | | | | | | | | | We can store flags on the ReturnValueRegister entry in the stackframe header (as native function don't use that) Then when requesting an activation object we can lookup the flags to know if we should create it. This reduce a lot the cost of a native call. Reviewed-by: Kent Hansen
* | Make simple function getters inlineOlivier Goffart2009-08-125-22/+20
| |
* | Set 'this' on the javascript stack for native functionOlivier Goffart2009-08-121-0/+4
| | | | | | | | | | | | | | When called from the interpreter, we do not need to create a stack frame, but we need anyway to put the newly created this on the stack. This fixes crash in the test qscriptjstestsuite
* | Push frames when needed for native getter or settersOlivier Goffart2009-08-121-2/+6
| | | | | | | | | | This is some other places where Qt native function may expect to have their own context
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-12156-3194/+4833
|\ \ | | | | | | | | | qtscript-jsc-backend
| * | add some benchmarks for QScriptEngine and QScriptValueKent Hansen2009-08-124-0/+436
| | |
| * | oops: fix an issue when going backward and there is only 1 key value setThierry Bastian2009-08-121-4/+11
| | |
| * | extern the Qt helper functions with Q_CORE_EXPORTHarald Fernengel2009-08-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | The q* helper functions are declared as Q_CORE_EXPORT, so they have to be extern'd like that as well. This fixes a problem where adding a resource to a project would result in undefined symbols on some RVCT versions. Reviewed-by: Andy Shaw <andy.shaw@nokia.com>
| * | don't test mouse over on Windows mobile in tst_QWidget::setToolTipJoerg Bornemann2009-08-121-1/+3
| | | | | | | | | | | | Reviewed-by: mauricek
| * | qdoc: Changed the scripts for the google search boxMartin Smith2009-08-121-1/+6
| | | | | | | | | | | | Task-number: 258950
| * | Fix WebKit import from the trunk (part 2)Simon Hausmann2009-08-121-1/+27
| | | | | | | | | | | | | | | | | | Fix generation of WebKit version file by including the xcconfig file. Reviewed-by: Trust me
| * | Make QPropertyAnimation symetric wrt directionThierry Bastian2009-08-123-39/+81
| | | | | | | | | | | | | | | | | | It is now possible to set a start value and no end value and starting the animation will pick the default end value from the current value of the property that's being animated.
| * | qdoc: Added google CSE to each page.Martin Smith2009-08-121-11/+18
| | | | | | | | | | | | Task-number: 258950
| * | Fix import of WebKit.Simon Hausmann2009-08-121-1/+0
| | | | | | | | | | | | | | | | | | Don't try to remove WebCore/svg/graphics/wince, it doesn't exist anymore. Reviewed-by: Trust me
| * | fixing warnings for qreal=floatThomas Hartmann2009-08-121-1/+1
| | | | | | | | | | | | Reviewed-by: Joerg
| * | QGraphicsRotation and QGraphicsRotation3D are now merged into 1 classThierry Bastian2009-08-126-145/+138
| | | | | | | | | | | | | | | | | | | | | | | | You can now also set the axis following hte Qt::Axis enum Note: I'm not 100% sure about the maths in QGraphicsRotation::applyTo Feel free to fix it. Reviewed-by: ogoffart
| * | Mouse move events delivered toa blocked widget.Prasanth Ullattil2009-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | On windows we were not checking whether the widgets receiving the mouse events are blocked by another modal widget or not. Task-number: 255912 Reviewed-by: Thierry Bastian
| * | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtJason McDonald2009-08-1211-31/+170
| |\ \
| | * | fix decoration of DontShowOnScreen widgets on Windows CEJoerg Bornemann2009-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Widgets with the WA_DontShowOnScreen attribute must not have a window decoration. Autotest: tst_QWidget::initialPosForDontShowOnScreenWidgets Reviewed-by: thartman
| | * | Add the typedefs to QSharedPointer and QWeakPointer to make templateThiago Macieira2009-08-121-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | usage simpler. For example, this allows writing code like: template <class Pointer> typename Pointer::pointer getPointer(constPointer &p) { return p.data(); } and that code will work for both QSharedPointer and QWeakPointer. Reviewed-by: Harald Fernengel Also add an operator- to make pointer operations possible.
| | * | Autotest: make sure we can't create QWeakPointer from a QObject in destruction.Thiago Macieira2009-08-122-0/+17
| | | | | | | | | | | | | | | | This test only works in debug mode
| | * | Doc: explain the use of QWeakPointer for tracking QObjectsThiago Macieira2009-08-122-14/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Explain the difference to QPointer and why QWeakPointer should be used instead. Reviewed-by: Trust Me
| * | | Update obsolete license headers.Jason McDonald2009-08-12132-2977/+3977
| | | | | | | | | | | | | | | | Reviewed-by: Trust Me
* | | | Make it possible to build QtScript against JavaScriptCore from an external ↵Simon Hausmann2009-08-121-19/+30
| | | | | | | | | | | | | | | | | | | | | | | | directory Reviewed-by: Kent Hansen
* | | | Cantralize the place when we construct the default 'this' object that JSC ↵Olivier Goffart2009-08-123-28/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | doesn't construct. Removes code duplication. This also indirrectly fixes the QMetaObjectWrapperObject where this was missing
* | | | compileOlivier Goffart2009-08-121-0/+1
| | | |
* | | | Refactor the way the JS stack are created for native functionOlivier Goffart2009-08-1211-191/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original JavaScriptCore doesn't create stack frame or scope for native function. JSC has been patched to support that. This commit revert our patches to JSC, and implement create the stack frame from QScript Reviewed-by: Kent Hansen
* | | | Autotests refactoringJedrzej Nowacki2009-08-121-94/+329
| | | | | | | | | | | | | | | | | | | | Many tests were divided into smaller pieces. Some XFAIL added. Small improvements.
* | | | Move JSC::Debugger's events calls from JSC::evaluate() toJedrzej Nowacki2009-08-122-24/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | QSCriptEngine::evaluate() Fix broken behavior after bad integration with 538153994cacc4613aef1eb8ef77e501be7f5a88 commit
* | | | Crash fix.Jedrzej Nowacki2009-08-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fix GetSetAgent() in tst_qscriptengine. Reviewed-by: TrustMe
* | | | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-127842-15324/+22145
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qtscript-jsc-backend Conflicts: configure src/script/qscriptarray_p.h src/script/qscriptasm.cpp src/script/qscriptasm_p.h src/script/qscriptbuffer_p.h src/script/qscriptclass.cpp src/script/qscriptclassdata.cpp src/script/qscriptclassdata_p.h src/script/qscriptclassinfo_p.h src/script/qscriptclasspropertyiterator_p.h src/script/qscriptcompiler.cpp src/script/qscriptcompiler_p.h src/script/qscriptcontext_p.cpp src/script/qscriptcontext_p.h src/script/qscriptcontextfwd_p.h src/script/qscriptcontextinfo_p.h src/script/qscriptecmaarray.cpp src/script/qscriptecmaarray_p.h src/script/qscriptecmaboolean.cpp src/script/qscriptecmaboolean_p.h src/script/qscriptecmacore.cpp src/script/qscriptecmacore_p.h src/script/qscriptecmadate.cpp src/script/qscriptecmadate_p.h src/script/qscriptecmaerror.cpp src/script/qscriptecmaerror_p.h src/script/qscriptecmafunction.cpp src/script/qscriptecmafunction_p.h src/script/qscriptecmaglobal.cpp src/script/qscriptecmaglobal_p.h src/script/qscriptecmamath.cpp src/script/qscriptecmamath_p.h src/script/qscriptecmanumber.cpp src/script/qscriptecmanumber_p.h src/script/qscriptecmaobject.cpp src/script/qscriptecmaobject_p.h src/script/qscriptecmaregexp.cpp src/script/qscriptecmaregexp_p.h src/script/qscriptecmastring.cpp src/script/qscriptecmastring_p.h src/script/qscriptengine.cpp src/script/qscriptengine_p.cpp src/script/qscriptengine_p.h src/script/qscriptengineagent_p.h src/script/qscriptenginefwd_p.h src/script/qscriptextenumeration.cpp src/script/qscriptextenumeration_p.h src/script/qscriptextqobject.cpp src/script/qscriptextqobject_p.h src/script/qscriptextvariant.cpp src/script/qscriptextvariant_p.h src/script/qscriptfunction.cpp src/script/qscriptfunction_p.h src/script/qscriptgc_p.h src/script/qscriptglobals_p.h src/script/qscriptmember_p.h src/script/qscriptnameid_p.h src/script/qscriptnodepool_p.h src/script/qscriptobject_p.h src/script/qscriptobjectfwd_p.h src/script/qscriptprettypretty.cpp src/script/qscriptprettypretty_p.h src/script/qscriptsyntaxcheckresult_p.h src/script/qscriptvalue.cpp src/script/qscriptvalue_p.h src/script/qscriptvaluefwd_p.h src/script/qscriptvalueimpl.cpp src/script/qscriptvalueimpl_p.h src/script/qscriptvalueimplfwd_p.h src/script/qscriptvalueiteratorimpl.cpp src/script/qscriptvalueiteratorimpl_p.h
| * | | Possible Dead lock in the destructor of QObjectThierry Bastian2009-08-124-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that we were locking a mutex that was global to thread to remove posted events associated with a QObject from the posted event list. We were also immediately deleting those events. If that triggers the deletion of another QObject, you would then trigger a dead-lock. Task-number: 259514 Reviewed-by: brad Reviewed-by: ogoffart
| * | | Phonon: On windows, cross fading was brokenThierry Bastian2009-08-121-1/+2
| | | |
| * | | usage of Q_OS_WINCE fixedJoerg Bornemann2009-08-121-2/+2
| |/ / | | | | | | | | | | | | | | | There's no QT_OS_WINCE define. Reviewed-by: mauricek