Add a C style vtable to Managed and use it for markObjects
authorLars Knoll <lars.knoll@digia.com>
Wed, 13 Feb 2013 22:00:10 +0000 (23:00 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Thu, 14 Feb 2013 09:44:15 +0000 (10:44 +0100)
commitafb743d72a6830a714f17abe58d5c07ff6bdd0f4
treec259e5eeb83f46c11c34e1a6da9b86c145daf675
parent93f53855c5349f96deda04d6fcf5d21f34c317f8
Add a C style vtable to Managed and use it for markObjects

We need to replace the C++ vtable with a home made one for additional
flexibility. This will help us deal properly with primitive this
values, and allow us to enable certain optimisations where we can
change behavior at runtime (e.g. use optimised lookups as long as
we don't have any accessor properties defined).

Change-Id: I6a3852692bdc5c4f0bde05f6ff2b296013ba47e5
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/v4/qv4argumentsobject.cpp
src/v4/qv4argumentsobject.h
src/v4/qv4functionobject.cpp
src/v4/qv4functionobject.h
src/v4/qv4managed.cpp
src/v4/qv4managed.h
src/v4/qv4object.cpp
src/v4/qv4object.h
src/v4/qv4stringobject.cpp
src/v4/qv4stringobject.h