Change internal class when attributes of properties change
authorLars Knoll <lars.knoll@digia.com>
Mon, 8 Apr 2013 13:38:30 +0000 (15:38 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Fri, 12 Apr 2013 12:25:21 +0000 (14:25 +0200)
commit1e87e39a1987da9f0ad454b8b4f6c40055e50799
tree864b0405eb46e578045741883e03ad39532ac869
parent78bef0f2288de34f68525721733e43c769eb4496
Change internal class when attributes of properties change

This should allow us to share property attributes for different
class instances saving quite some memory. In addition, it
can be used to speed up property access (as we then know in the
lookup whether it's a data or accessor property).

Change-Id: Ide9c6168a07b5c83a1e73d075d8fc4f6594e08fd
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
17 files changed:
src/v4/qv4engine.cpp
src/v4/qv4functionobject.cpp
src/v4/qv4global.h
src/v4/qv4internalclass.cpp
src/v4/qv4internalclass.h
src/v4/qv4jsonobject.cpp
src/v4/qv4managed.h
src/v4/qv4object.cpp
src/v4/qv4object.h
src/v4/qv4propertydescriptor.h
src/v4/qv4regexp.cpp
src/v4/qv4regexp.h
src/v4/qv4regexpobject.cpp
src/v4/qv4runtime.cpp
src/v4/qv4string.cpp
src/v4/qv4string.h
src/v4/qv4v8.cpp