diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-09 15:50:55 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-04-16 17:14:09 +0000 |
commit | d22db9e458828d403110fa0b9de1ca0c831d7e96 (patch) | |
tree | ab696dd88d47ec47febe4278ebad83ad43c5015d /src/qml/jsruntime/qv4functionobject_p.h | |
parent | 63877c930e8efa119ac16798ed546cdba68f818b (diff) |
Speed up script binding initialization
Don't spend any time repeatedly building the same internal class for the simple
binding functions. We can do that once at engine construction time.
Change-Id: I3777b5bd15ad4a8aaf78ae13bee27e8d8cadc2ee
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index 560061a705..252ff40a1a 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -89,6 +89,10 @@ struct IndexedBuiltinFunction : FunctionObject { }; struct SimpleScriptFunction : FunctionObject { + enum { + Index_Name = FunctionObject::Index_Prototype + 1, + Index_Length + }; SimpleScriptFunction(QV4::ExecutionContext *scope, Function *function, bool createProto); }; |