summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* add recursion guard for GC markingKent Hansen2009-08-203-4/+10
| | | | | | | To achieve behavior of the old back-end. There, the recursion guard was automatic because a mark flag was set on the object as soon as marking begun, but in JSC it appears to only be set _after_ the marking is completed.
* provide line number information for innermost call frameKent Hansen2009-08-204-0/+11
| | | | | For the innermost frame, we don't have a returnPC, so use the line number that was last passed to the engine agent.
* provide filename in stack view if we have itKent Hansen2009-08-201-4/+7
| | | | | | In the JSC back-end it's currently possible that we know the file name, but not the line number (we can't just assume that lineNumber == -1 implies native function).
* set the current frame when getting callbacks in JSC DebuggerKent Hansen2009-08-203-30/+42
| | | | | If the debugger stops execution, we want the frame pointer to be in sync (so we get the full backtrace).
* disable executable line number info since we don't have it yetKent Hansen2009-08-202-4/+15
| | | | | The old back-end relied on a script-to-XML converter to get information about the script, but it's not implemented yet in the new back-end.
* make QScriptEngine::objectById() workKent Hansen2009-08-201-7/+2
| | | | | It needs to work even when there is no public QScriptValue that holds a reference to the object.
* Fix "fixme" in QtFunction::mark()Jedrzej Nowacki2009-08-201-3/+1
| | | | | | QtFunction::mark() does not cause infinite recursion any more. Reviewed-by: Kent Hansen
* add missing includeKent Hansen2009-08-201-0/+1
|
* Fix JavaScriptCore build on systems without anonymous mmappingNorbert Leser2009-08-202-3/+3
| | | | | | | | | | | | | | | | Use fastMalloc when neither MMAP nor VIRTUALALLOC are enabled RegisterFile constructor currently throws #error when both MMAP and VIRTUALALLOC conditions fail. On any platform that does not provide these features (for instance, Symbian), the fallback should be regular malloc (or fastMalloc). It is functionally equivalent in this case, even though it may have certain drawbacks such as lack of dynamic pre-allocation. Taken upstream from https://bugs.webkit.org/show_bug.cgi?id=27051 Reviewed-by: Simon Hausmann
* add platforms AIX and HPUXKent Hansen2009-08-201-1/+35
| | | | Also add some compilers, and define PLATFORM(UNIX) on Solaris.
* use PLATFORM(SOLARIS) instead of Qt-specific defineKent Hansen2009-08-202-2/+2
|
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-2026-820/+1155
|\ | | | | | | qtscript-jsc-backend
| * XdndLeave events have incorrect source idBradley T. Hughes2009-08-201-2/+4
| | | | | | | | | | | | | | | | When sending XdndLeave events, we should use the effectiveWinId() of the drag source (just like we do when sending XdndEnter and XdndPosition events). Task-number: 255559
| * Instantiate the CP949 codec when building with -no-iconvBradley T. Hughes2009-08-201-0/+1
| | | | | | | | Otherwise this codec would not be available.
| * Improve memory usage of the connectionlists inside QObjectOlivier Goffart2009-08-1911-260/+353
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... by not allocating space for slots in the vector. Before, the vector uses the signal index as index. The problem is that the slots and signal are mixed in the same index space. We solve the problem by having a different index space for the signal in the connectionlists vector. All we need to do is to add the information about the number of signals in the moc. Also, we are not connecting to cloned signal but only to the orginial ones. For example, destroyed(QObject * = 0) would generate two signal, we now only connect to the first one. This also improve a little bit the performence while activating signals since it removed one call to indexOfMethod. Reviewed-by: Brad
| * Doc - mentioning that the begin...() functions emit a signal that mustKavindra Devi Palaraja2009-08-191-0/+15
| | | | | | | | | | | | | | | | | | be handled by connected views/proxies. Otherwise, the views/proxies may end up in an invalid state. Task: 227718 Reviewed-By: Olivier Goffart
| * Document more of the behavior of QTouchEventBradley T. Hughes2009-08-191-43/+115
| | | | | | | | | | | | | | | | This includes docs on the default QWidget::event() behavior, how to use touch with QAbstractScrollArea subclasses, how the propagation and grouping works, as well as some caveats. Reviewed-by: David Boddie
| * Changed the streambookmarks example to use aggregationThorbjørn Lindeijer2009-08-191-3/+3
| | | | | | | | | | | | | | | | QXmlStreamReader and QXmlStreamWriter can be used conveniently without subclassing, which the example now demonstrates. Reviewed-by: mae Reviewed-by: David Boddie
| * Doc - Fixed whitespace issuesKavindra Devi Palaraja2009-08-191-15/+15
| | | | | | | | Reviewed-By: TrustMe
| * Doc - Cleanups on QAbstractTableModel, QAbstractItemModel, etc.Kavindra Devi Palaraja2009-08-191-388/+433
| | | | | | | | Reviewed-By: TrustMe
| * Carbon and Cocoa: Adding support for standard gestures.Richard Moe Gustavsen2009-08-192-4/+16
| |
| * Improved the documentation of saving and restoring window geometry.Denis Dzyubenko2009-08-191-1/+14
| | | | | | | | | | | | | | Mentioned in the doc that the preferred way to save/restore a geometry of a QMainWindow is to use both saveGeometry() and saveState(). Reviewed-by: Kavindra Devi Palaraja
| * Don't use pointers to temporary vars that go out of scope.Denis Dzyubenko2009-08-191-1/+1
| | | | | | | | | | | | | | | | Moved the dummy variable to the same scope as the 'motion' variable. This fixes Coverity defect CID 1528. Reviewed-by: Olivier Goffart Reviewed-by: Gabriel de Dietrich
| * Make the license test pass.Frans Englich2009-08-194-14/+11
| | | | | | | | | | | | | | This is partly done to address a review comment for S60. Reviewed-by: Marius SO Reviewed-by: Paul
| * Generate proper license header.Frans Englich2009-08-192-104/+189
| |
* | Do not pass JSValue per const referenceOlivier Goffart2009-08-192-4/+4
| | | | | | | | It is a POD with the size of a pointer
* | CleanupsOlivier Goffart2009-08-193-24/+5
| | | | | | | | | | Remove useless variable. Use QBoolBlocker instread of custom QScript::InEval.
* | 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-194-8/+12
| | | | | | | | | | | | | | QScriptValue id were made persistent. It depands on JSC:JSValue JSCell pointer not on QScriptValuePrivate attr. Reviewed-by: Kent Hansen
* | make QScriptEngine::isEvaluating() work for top-level evaluationKent Hansen2009-08-192-2/+21
| | | | | | | | | | | | Since QScriptEngine::evaluate() doesn't create a new stack frame anymore, we need to use a dedicated variable to keep track of whether the engine is currently evaluating or not.
* | build on SolarisKent Hansen2009-08-192-2/+12
| | | | | | | | | | Work-around for "Error: A union member cannot have a user-defined assignment operator."
* | Add support for aligned buffers without alignment macrosThiago Macieira2009-08-191-1/+13
| | | | | | | | | | If we don't have alignment macros, we do what we can: overcommit 64 bytes and find the proper 64-byte-aligned position in the buffer.
* | Q_DISABLE_COPY were added to QScriptValuePrivate.Jedrzej Nowacki2009-08-191-0/+1
| | | | | | | | Reviewed-by: Kent Hansen
* | Clean upJedrzej Nowacki2009-08-191-1/+0
| | | | | | | | | | | | There is no point in setting class member in destructor Reviewed-by: Kent Hansen
* | Internal API clean up.Jedrzej Nowacki2009-08-193-16/+0
| | | | | | | | | | | | Static method QScriptValue::initFromJSCValue was removed. Reviewed-by: Kent Hansen
* | Clean up.Jedrzej Nowacki2009-08-193-49/+57
| | | | | | | | | | | | | | | | | | 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
* | Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-08-1923-92/+295
|\ \ | |/ | | | | qtscript-jsc-backend
| * Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qtAlan Alpert2009-08-1931-119/+432
| |\
| | * Make sure windows raise properly when focusedAnders Bakken2009-08-183-25/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We never used to properly raise windows with DirectFB's window management. Somehow the event happens on a window surface that doesn't really have a IDirectFBWindow associated with it but using permanentState I can establish a sibling relationship to ensure raise gets called on the right window surface. Reviewed-By: Donald <qt-info@nokia.com>
| | * Initialize bpl in QDirectFBPaintDevice(...)Anders Bakken2009-08-181-1/+1
| | | | | | | | | | | | Reviewed-by: Donald <qt-info@nokia.com>
| | * Disambiguate variable namesAnders Bakken2009-08-182-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | s/lock/lockFlgs/ lock is also a function in QWSWindowSurface. Reviewed-by: Donald <qt-info@nokia.com>
| | * Fixed toRawForm because the domains usually start with a dot.Thiago Macieira2009-08-181-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Like 9fea895d6, the series of commits ending in ff1280178 made QUrl::toAce more strict. Now it doesn't accept empty domain labels, which is exactly what a leading dot means. Interestingly, KDE 3's KURL had a long-standing hack to support the leading dot and which I broke on more than one occasion. And it had that feature exactly because of cookies.
| | * Remove a global static in QtTest: we can do the same with dynamicThiago Macieira2009-08-181-2/+7
| | | | | | | | | | | | allocation.
| | * Remove a global destructor from QtDBus.Thiago Macieira2009-08-181-4/+6
| | | | | | | | | | | | Instead, only run the unload code if we successfully loaded.
| | * Doc: explain that QUrl::toAce may fail if its input is not correct.Thiago Macieira2009-08-181-0/+4
| | |
| | * Simplify DirectFB clippingAnders Bakken2009-08-182-25/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of storing whether or not our clip is dirty and updating it in every paint operation we'll just update it whenever it changes. This is more intuitive and should be faster for the common case as well. Also make sure to implement clip(region). Prevent multiple updateClip() calls for a single clip operation by introducing a flag to check whether we recursed into the different clip() calls. Reviewed-by: Donald <qt-info@nokia.com>
| | * Fix bugs in DFBPE fillRect and drawTiledPixmapAnders Bakken2009-08-181-3/+2
| | | | | | | | | | | | | | | | | | Make sure to call CLIPPED_PAINT so painting with a region clip works. Reviewed-by: Donald <qt-info@nokia.com>
| | * Added a behaviour parameter to QXmlStreamReader::readElementTextThorbjørn Lindeijer2009-08-182-8/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the function a bit more useful, since previously it was only safe to use if you were sure that it would not encounter an unexpected child element, or if you would be alright with canceling the parser on such an occurrence. Now it is also possible to have it ignore any unexpected child elements, or to have it include the text found in any child elements. Task-number: 231938 Reviewed-by: mae
| | * Added two convenience functions to QXmlStreamReaderThorbjørn Lindeijer2009-08-182-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QXmlStreamReader::readNextStartElement reads until the next start element within the current element, or returns false when no such element is encountered before the end element is reached. It simplifies the common case of iterating over the elements in an XML document. QXmlStreamReader::skipCurrentElement reads until the end element of the current element, skipping any child elements. This functionality was requested in two tasks, and a similar function 'readUnknownElement' was present in Qt's stream reader example. Autotest is included, example and documentation have been updated. Task-number: 238793 Reviewed-by: mae