Add a faster code path for calling builtin methods
authorLars Knoll <lars.knoll@digia.com>
Tue, 29 Jan 2013 20:23:19 +0000 (21:23 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 29 Jan 2013 23:24:26 +0000 (00:24 +0100)
commit475731534f3a54815c1cd2d1d0462e913c35e06b
treeaac9484b63d70a3d58cab4712c4fa98b70fa99f1
parent75f2b5b706fc919a4186dc8d9571488841025793
Add a faster code path for calling builtin methods

Builtin methods usually don't need a Context of their own,
so we can fully avoid the overhead of creating and destroying
it.

Implemented the support for making builtin methods context less
and verified it with some of the methods in String.prototype.

Change-Id: I187b46ba684183b4fba49ae70e3139d32ef585e0
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qmljs_engine.cpp
qmljs_engine.h
qv4functionobject.cpp
qv4functionobject.h
qv4object.cpp
qv4object.h
qv4stringobject.cpp
qv4stringobject.h