aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/v8/qv8sequencewrapper_p_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Fold qv8sequencewrapper_p_p.h into qv8sequencewrapper.cppSimon Hausmann2013-05-211-556/+0
| | | | | | | | Most of the implementation belongs into a C++ file instead of a header file, it's not re-used from anywhere else. Change-Id: Ib41e3e104d9544710343b869116368bbca999622 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Eliminate last v8 dependency from QV8SequenceWrapperSimon Hausmann2013-05-211-15/+9
| | | | | | | | Stub out file name and line number information in QV4::ExecutionContext, used for warning generation. Change-Id: I922541e1ee4a5e2211ca6c16494d2b9044a9c346 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Port the rest of the sequence types to V4Simon Hausmann2013-05-211-407/+322
| | | | | Change-Id: Ia248f54b65b74d16e91e6ec72503eb967894586d Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Get rid of v8::BooleanLars Knoll2013-05-211-7/+7
| | | | | Change-Id: I10b4240db78532dfdf972bb0a6f191462d81caaa Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Get rid of v8::NumberLars Knoll2013-05-211-1/+1
| | | | | Change-Id: I38bdf8fe4dd73c61317912ec6308a9a1e870ad99 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Get rid of v8::IntegerLars Knoll2013-05-211-2/+2
| | | | | Change-Id: I6b9ab830c4ff3cbf986dbcf7c056648b5a16a222 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* First step towards porting sequence wrappers to V4Simon Hausmann2013-05-151-1/+136
| | | | | | | | | | | | | | | The idea is to wrap sequence container types such as QStringList or QList<int> in a JS object that behaves like an array and also shares the prototype. The next step is to generalize the QStringList implementation to be re-usable for the other sequence types. This also required extending the object iterator with support for these kind-of array types. Change-Id: I5f0a14f904233944297708037c944964f1b74923 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* More steps towards eliminating the v8 layerSimon Hausmann2013-05-071-2/+2
| | | | | | | | * Changed the return type of the InvocationCallback from a v8 handle to a QV4::Value * Removed v4 auto tests and fixed build of other tests Change-Id: Ic927b925923ca8785170689a5c260969fd1cb794 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Replace v8::Undefined() with QV4::Value::undefinedValue()Simon Hausmann2013-05-071-6/+6
| | | | | Change-Id: I4c7bb5bcc1bc15a982bb83d2597e6ae4bc5710cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Get rid of v8::LocalLars Knoll2013-05-061-3/+3
| | | | | | | | | The class was doing exactly the same thing as v8::Handle in our implementation. Removing it cleans up quite a bit of code. Change-Id: I37a3dcdef062fc388751e9ef0a158b5926ba2efb Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Move more methods on QV8Engine over to use v4 based syntaxLars Knoll2013-04-291-1/+1
| | | | | Change-Id: I7d3501a2c4cd0d749c7c30b5c60fee12cde58aa4 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Get rid of QV8Engine::toString()Lars Knoll2013-04-291-4/+4
| | | | | | | It's easier to use toQString() on a QV4::Value Change-Id: I9bf22cb72607b32948e77c632d2f9b8fe120ea41 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Update copyright year in Digia's license headersSergio Ahumada2013-01-101-1/+1
| | | | | | Change-Id: I6c3bd7bebe3d62d1cfd0fa6334544c9db8398c76 Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-231-24/+24
| | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ie7f5d49ed8235d7a7845ab68f99ad1c220e64d5c Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Support JS Array.sort() function for sequence wrappers.Glenn Watson2012-08-081-0/+20
| | | | | | | | | | | | | | The V8 natve sort implementation calls some functions that are incompatible with the way sequence wrappers work. In particular, it calls an internal length() function which does not pass through the length accessor provided by sequence wrappers, so the sort function always thinks the array is zero length. Instead, clone the array prototype and override the sort function with one that is specific to sequence wrappers. Task-number: QTBUG-25269 Change-Id: Ic83b9ee0bd3a0707e512f28057f0f99b432fded4 Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Remove exceptions support from QtQmlChris Adams2012-05-251-14/+2
| | | | | | | | | | | | | | Previously, the sequence wrapper handled std::alloc exceptions. This commit removes that handling, as there are many other ways to use up all of the available address space memory which aren't handled (eg, loading lots of large images), and exception support causes a large overhead. See a1151929fffc765e128d72d170342020b34dd0b3 for more information. Change-Id: I68c9d7744e7dcece7b3112352e01ac71ead12f62 Reviewed-by: Glenn Watson <glenn.watson@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Use QUrl constructor directly.Michael Brasser2012-04-201-3/+1
| | | | | | | | | setEncodedUrl is deprecated, and no longer required as the new QUrl makes this behavior default. This is a partial revert of 3aa53b8bc383ebcdf8dc922b2670170ec012949f. Change-Id: I14f29cbe2a2e2cd9c41f7afc92b1cb66b53996bb Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
* Don't grow container when desired size is knownJoão Abecasis2012-03-091-11/+14
| | | | | | | | | | | | | | | | | | | QList<Type>::reserve() is used upfront to allocate necessary memory in a one go. This tells us straight away whether allocation is possible at all and reduces re-allocations and consequent memory copies. This also has the side effect that no spare memory is allocated, also allowing up to (and including) INT_MAX elements to actually be stored in the underlying QList, as long as enough memory is available to satisfy the allocation request and subsequent fill. The qqmlecmascript::sequenceConversionIndexes was changed to not attempt INT_MAX allocations as, given enough memory and virtual address space, that might succeed but take a really long time. Change-Id: I4b0c965e9c23be78874343a70d7c155933c80903 Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Rename QDeclarative symbols to QQuick and QQmlMatthew Vogt2012-02-241-0/+503
Symbols beginning with QDeclarative are already exported by the quick1 module. Users can apply the bin/rename-qtdeclarative-symbols.sh script to modify client code using the previous names of the renamed symbols. Task-number: QTBUG-23737 Change-Id: Ifaa482663767634931e8711a8e9bf6e404859e66 Reviewed-by: Martin Jones <martin.jones@nokia.com>