summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add type info and attribute getters for function wrappersKent Hansen2009-08-052-0/+17
|
* don't store QScriptEngine pointer in native function wrappersKent Hansen2009-08-053-29/+31
| | | | | We can infer it from the JSC environment when the function is actually called.
* New UString method. Conversion from UString to QString.Jedrzej Nowacki2009-08-051-0/+12
| | | | Review by: Kent Hansen
* add ifdefs for qtscript-specific changesKent Hansen2009-08-053-1/+19
|
* remove unused codeOlivier Goffart2009-08-043-7/+0
|
* clear abort flag when we start a new evaluateKent Hansen2009-08-042-0/+8
| | | | | Otherwise evaluate() would _always_ return the value previously passed to abortEvaluation(), once a script had been aborted.
* move Global Object to its own fileKent Hansen2009-08-044-132/+267
|
* adapt to commit 014c4c63066fd3920594e6a58b02f314b5c88cdfKent Hansen2009-08-049-38/+43
|
* Make it possible to delete properties even though they have the DontDelete ↵Kent Hansen2009-08-0421-52/+52
| | | | | | | attribute This makes it possible to delete properties in C++, even though they can't be deleted in JS.
* Use a more reliable method to dinstinguish between an op_call and an ↵Olivier Goffart2009-08-041-2/+5
| | | | | | | | | | | | | | | | | | op_construct The two opcode operand looks like this. -7 -6 -5 -4 -3 -2 -1 op_construct dst(r) func(r) argCount(n) registerOffset(n) proto(r) thisRegister(r) op_call dst(r) func(r) argCount(n) registerOffset(n) as the registerOffset must always be bigger than any register we can use that knoweldge to differenciate the two calls Note that this is only the fallback used for JavaScript function. native function still uses the QScriptActivationObject Reviewed-by: Kent Hansen
* Do not crash if using popContext() while the current context have not been ↵Olivier Goffart2009-08-043-8/+9
| | | | | | pushed Reviewed-by: Kent Hansen
* Implement QScriptEngine::abortEvaluation()Tor Arne Vestbø2009-08-033-4/+16
| | | | | | We store the abort-state in the TimeoutChecker, since that's where we'll mostly access it, but the abort result is stored in the QScriptEngine's d-pointer.
* Implement QScriptEngine::setProcessEventsInterval()Tor Arne Vestbø2009-08-032-7/+36
| | | | | We're using a wrapper around TimeoutChecker, where we re-implement didTimeout() to call processEvents().
* Make TimeoutChecker::didTimeOut() virtual.Tor Arne Vestbø2009-08-031-1/+1
|
* Allow setting the checking interval for TimeoutCheckerTor Arne Vestbø2009-08-032-3/+6
|
* Make JSC::TimeoutChecker subclassable and replacable in the global dataTor Arne Vestbø2009-08-0322-49/+56
|
* Complete the implementation of QScriptValueIterator with JSCoreBenjamin Poulain2009-08-036-148/+137
| | | | | | | | | | | | | This new implementation of QScriptValueIterator passes all the tests. QScriptValueIterator uses an linked list instead of JSC::PropertyNameArray so the list can be modified by ::remove() and to be able to add internal properties for the strings and arrays. Structure::getPropertyNames() has been modified to not show the property from the prototype. Reviewed-by: Kent Hansen
* Unify QScriptValue::toObject() and QScriptEngine::toObject()Benjamin Poulain2009-08-031-19/+1
| | | | | | | QScriptValue::toObject() call QScriptEngine::toObject() so the code is not duplicated. Reviewed-by: Kent Hansen
* QScriptContext::calledAsConstructor also works with non-native functionOlivier Goffart2009-08-032-10/+49
| | | | | | | Use the opcode to see if it was called with op_construct This could also work with native function, but not when they are called with QScriptValue::call() or QScriptValue::construct()
* Remove QScriptContextPrivate, QScriptContext is now a JSC::CallFrameOlivier Goffart2009-07-315-133/+80
| | | | | | | | | | | | | | There will not be instances of QScriptContext anymore. Pointer to QScriptContext are just pointer to JSC::CallFrame This simplifies the code as we do not need to manage the memory for the QScriptContext anymore. It is compatible because it is not possible to create QScriptContext. They were all created by QScriptEngine. QScriptContext constructor is private. Aknoweldged-by: Kent
* Move the declaration on some function into qscriptengine_p.hOlivier Goffart2009-07-318-41/+19
|
* Small Refactoring of QScriptOlivier Goffart2009-07-318-57/+78
| | | | | | | | | - Create a scope (activation object) for the native constructor in QScriptClass - put the isCalledasConstructor in the activation object (so i can clean up the QScriptContext - Remove the code duplication in all native functions. Aknoweldged-by: Kent
* Fix up generated files to match the previous commitTor Arne Vestbø2009-07-3140-58/+58
| | | | | The changes to WebCore/bindings/scripts/CodeGeneratorJS.pm will take care of this once we upstream the change.
* QScriptValueIterator: fix missing non-enumerable valuesTor Arne Vestbø2009-07-3141-82/+91
| | | | | | | | | | Added an extra argument to JSObject::getPropertyNames() that specifies if the non-enumerable properties (those with the DontEnum attribute set) should be included or not. Tried looking at using a unsigned as an attribute-inclusion or exclusion filter, but the semantics of either the calling or the callee code would be very strange so I opted out.
* Basic implementation of QScriptValueIterator with JSCBenjamin Poulain2009-07-312-17/+38
| | | | | Implement the methods to move forward and backward in the list of property.
* update test to match JSC __defineSetter__() behaviorKent Hansen2009-07-301-7/+5
|
* implement QScriptContext::activationObject()Kent Hansen2009-07-303-24/+47
|
* Add missing fileOlivier Goffart2009-07-301-0/+88
|
* attempt to return something sensible in uncaughtExceptionBacktrace()Kent Hansen2009-07-301-4/+10
| | | | | | | | JSC doesn't provide a way to get the backtrace after the exception has happened (you can only get it at the point it's thrown, by installing a debugger). As a least effort, we try to use the uncaught exception to provide a 1-line backtrace (the filename and linenumber of the innermost call where the exception happened).
* use "fileName" instead of "sourceURL" as error property nameKent Hansen2009-07-303-3/+5
| | | | | JSC uses "sourceURL", but for compatibility with the old back-end we need it to be called "fileName".
* Add QEXPECT_FAILOlivier Goffart2009-07-301-1/+4
|
* Implement QScriptEngine::pushContext end popContextOlivier Goffart2009-07-304-7/+42
| | | | Reviewed-by: Kent Hansen
* Move QScriptActivationObject to his own fileOlivier Goffart2009-07-303-37/+100
|
* make the V8 and Mozilla test suites pass on QtScript JSC back-endKent Hansen2009-07-302-0/+74
| | | | Tag all discrepancies with old back-end as expected failures for now.
* document that qtscript neeeds some private JSC APIKent Hansen2009-07-301-1/+5
|
* Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt into ↵Kent Hansen2009-07-30301-3223/+10411
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qtscript-jsc-backend Conflicts: src/3rdparty/webkit/JavaScriptCore/wtf/Platform.h src/3rdparty/webkit/VERSION src/3rdparty/webkit/WebKit/qt/Api/qwebview.cpp src/script/qscriptbuffer_p.h src/script/qscriptclassinfo_p.h src/script/qscriptecmadate.cpp src/script/qscriptgc_p.h src/script/qscriptmemberfwd_p.h src/script/qscriptsyntaxcheckresult_p.h src/script/qscriptvalueimplfwd_p.h tests/auto/qscriptengine/tst_qscriptengine.cpp util/webkit/mkdist-webkit
| * QNAM HTTP Code: Split QHttpNetworkConnectionMarkus Goetz2009-07-295-75/+234
| | | | | | | | | | | | | | | | Factor our the Channel object to a new file. My goal is to make QHttpNetworkConnection more maintainable before implementing HTTP pipelining. Reviewed-by: Peter Hartmann
| * Use correct license header.Volker Hilsheimer2009-07-292-4/+4
| |
| * Xml Schema: document the xmlpatternsvalidator command line utilityPeter Hartmann2009-07-291-0/+6
| | | | | | | | Reviewed-by: TrustMe
| * compile on QNXHarald Fernengel2009-07-291-1/+2
| |
| * Optimized single-rect clip case in OpenGL 2 paint engine.Samuel Rødal2009-07-292-17/+80
| | | | | | | | | | | | | | | | | | Use scissor based clipping when only dealing with rectangular intersect clips. As soon as we get any more complex clips (or unite/replace clips) we fall back to depth buffer based clipping. Task-number: 258748 Reviewed-by: Tom
| * Add XML schema example to qtdemoPeter Hartmann2009-07-291-0/+1
| | | | | | | | Reviewed-by: Frans Englich
| * Compile after API renameVolker Hilsheimer2009-07-291-1/+1
| |
| * Doc: fix links to the examplesVolker Hilsheimer2009-07-291-2/+3
| |
| * Fix copy/paste typoVolker Hilsheimer2009-07-291-1/+1
| |
| * Doc: Documentation for new toString(QVariant) overloadVolker Hilsheimer2009-07-291-0/+7
| |
| * Doc: Document QGraphicsObject::children workaround as \internalVolker Hilsheimer2009-07-291-0/+10
| |
| * Autotest: make tst_qdom work with shadow builds too.Thiago Macieira2009-07-292-23/+27
| | | | | | | | Reviewed-by: Peter Hartmann
| * Remove "no-stl" from the build key and add compatibility for old plugins.Thiago Macieira2009-07-294-17/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | STL support hasn't had binary compatibility effects for the entire lifetime of Qt 4, so it should never have been there. It is a legacy thing I am now correcting. When inspecting a plugin, remove the "no-stl" from its loaded build key. That indicates a pre-4.6 build, since now Qt no longer adds it to its own build keys. Note that you have to remove the 4.6 plugin cache from $HOME/.config/Trolltech.conf or the registry for this change to work (if you compile Qt with -no-stl). Otherwise, plugins that have already been scanned will fail to load. Reviewed-by: Bradley T. Hughes
| * Update the changelog about the STL test being stricter.Thiago Macieira2009-07-291-0/+14
| | | | | | | | Referring to change f120b5e4b63cbc30874fa21947b75d352f18d7df.