aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4functionobject_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@theqtcompany.com>2015-01-09 13:28:40 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2015-01-12 11:04:22 +0100
commit455d967025c0485c1dc0d817008de70cdbcd60dd (patch)
tree6f090aa5ed0a2c352ecc3a85786caa7c29742b0c /src/qml/jsruntime/qv4functionobject_p.h
parent3840beb6c61023542a689c7f125a7b521d3b2551 (diff)
Get rid of subtype usage in Function objects
Change-Id: Ic84ddab292cb69e79dac0f2b8a87b96b096360d8 Reviewed-by: Robin Burchell <robin.burchell@viroteck.net> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r--src/qml/jsruntime/qv4functionobject_p.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h
index 2ccec8efd1..e806888243 100644
--- a/src/qml/jsruntime/qv4functionobject_p.h
+++ b/src/qml/jsruntime/qv4functionobject_p.h
@@ -45,13 +45,6 @@ namespace QV4 {
namespace Heap {
struct Q_QML_PRIVATE_EXPORT FunctionObject : Object {
- // Used with Managed::subType
- enum FunctionType {
- RegularFunction = 0,
- WrappedQtMethod = 1,
- BoundFunction
- };
-
enum {
Index_Prototype = 0,
Index_ProtoConstructor = 0
@@ -145,6 +138,7 @@ struct Q_QML_EXPORT FunctionObject: Object {
bool needsActivation() const { return d()->needsActivation(); }
bool strictMode() const { return d()->function ? d()->function->isStrict() : false; }
bool isBinding() const;
+ bool isBoundFunction() const;
static void markObjects(Heap::Base *that, ExecutionEngine *e);
};