aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4regexp.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-04-08 15:38:30 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-04-12 14:25:21 +0200
commit1e87e39a1987da9f0ad454b8b4f6c40055e50799 (patch)
tree864b0405eb46e578045741883e03ad39532ac869 /src/v4/qv4regexp.h
parent78bef0f2288de34f68525721733e43c769eb4496 (diff)
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>
Diffstat (limited to 'src/v4/qv4regexp.h')
-rw-r--r--src/v4/qv4regexp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/v4/qv4regexp.h b/src/v4/qv4regexp.h
index 15b81f44da..b0c95843f3 100644
--- a/src/v4/qv4regexp.h
+++ b/src/v4/qv4regexp.h
@@ -115,8 +115,8 @@ protected:
static Value getIndexed(Managed *m, ExecutionContext *ctx, uint index, bool *hasProperty);
static void put(Managed *m, ExecutionContext *ctx, String *name, const Value &value);
static void putIndexed(Managed *m, ExecutionContext *ctx, uint index, const Value &value);
- static PropertyFlags query(Managed *m, ExecutionContext *ctx, String *name);
- static PropertyFlags queryIndexed(Managed *m, ExecutionContext *ctx, uint index);
+ static PropertyAttributes query(Managed *m, ExecutionContext *ctx, String *name);
+ static PropertyAttributes queryIndexed(Managed *m, ExecutionContext *ctx, uint index);
static bool deleteProperty(Managed *m, ExecutionContext *ctx, String *name);
static bool deleteIndexedProperty(Managed *m, ExecutionContext *ctx, uint index);