[Compiler] Split typesystem from objecttree in IR.
ClosedPublic

Authored by akreuzkamp on Sep 10 2015, 10:14 PM.

Details

Summary

This is the first step in a revamp of the IR.
It also removes Component, makes File be a Node and rename Class to
LibraryClass.

Diff Detail

Repository
R18 QMLWeb
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
akreuzkamp updated this revision to Diff 844.Sep 10 2015, 10:14 PM
akreuzkamp retitled this revision from to [Compiler] Split typesystem from objecttree in IR..
akreuzkamp updated this object.
akreuzkamp edited the test plan for this revision. (Show Details)
akreuzkamp added reviewers: jangmarker, pavelvasev.
akreuzkamp updated this revision to Diff 845.Sep 10 2015, 10:50 PM

Repairs one test, skip one and remove the unneeded one.

jangmarker added inline comments.Sep 10 2015, 10:57 PM
src/qmljsc/CMakeLists.txt
11–12

File should be in the object tree.

src/qmljsc/ir/objecttree.h
122

please remove

src/qmljsc/ir/visitor.h
37

LibraryClass should not be visited anymore

37

same here

38–39

same for Property, Method and Signal

42

see above

42

see above

43–44

see above

src/qmljsc/moduleloading/javascriptmoduleloader.cpp
275

why do you remove this?

tests/auto/qmljsc/testir.cpp
48–49

please disable tests using QSKIP

279–280

see above

jangmarker edited edge metadata.Sep 10 2015, 11:03 PM

please fix the added inline commit, everything else is ready to go

src/qmljsc/ir/visitor.h
38–39

please remove those and the endVisit

akreuzkamp updated this revision to Diff 846.Sep 10 2015, 11:11 PM
akreuzkamp marked an inline comment as done.
akreuzkamp edited edge metadata.

Fixed, what you noted.

akreuzkamp updated this revision to Diff 847.Sep 10 2015, 11:17 PM

Fix build.

jangmarker added inline comments.Sep 10 2015, 11:22 PM
tests/auto/qmljsc/testir.cpp
299–300

I think this should still be visited?

315–316

same here

jangmarker accepted this revision.Sep 11 2015, 8:30 AM
jangmarker edited edge metadata.
This revision is now accepted and ready to land.Sep 11 2015, 8:30 AM
This revision was automatically updated to reflect the committed changes.
This revision was automatically updated to reflect the committed changes.