Add support for QUrl types to V4
authorRoberto Raggi <roberto.raggi@nokia.com>
Wed, 14 Dec 2011 10:27:18 +0000 (11:27 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Dec 2011 11:17:28 +0000 (12:17 +0100)
commitb21f63763d43cecf96c9359d95705411dbdc4ecd
treea7172e42145431a0b0cede37a02d5517f6f98c09
parentb6291c914d9a6f24dbfb0e92e8caedae889b709b
Add support for QUrl types to V4

Extended the V4 instruction set with instructions to
`fast convert' url registers to string and bool registers
and `resolve' urls using QDeclarativeContext::resolvedUrl.

Also, made IR::UrlType a special `string' type. It's a little trick
to ensure that the compiler will generate correct conversions for
the binary expressions.

Change-Id: Ibc9e5b99302bd513f0cc52b598a1b198b11d4d30
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/qml/v4/qv4bindings.cpp
src/declarative/qml/v4/qv4compiler.cpp
src/declarative/qml/v4/qv4instruction.cpp
src/declarative/qml/v4/qv4instruction_p.h
src/declarative/qml/v4/qv4ir.cpp
tests/auto/declarative/qdeclarativeecmascript/data/urlProperty.1.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativeecmascript/testtypes.h
tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp