summaryrefslogtreecommitdiffstats
path: root/src/v4/qv4dateobject.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-02-10 22:22:53 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2013-02-12 14:54:16 +0100
commitb5333bdcf10662970185bd23f1ed10603f070159 (patch)
tree759c4c62e501d5b279e49547d6e739d4005d756d /src/v4/qv4dateobject.h
parente7e2aa45689014640a425d60f4be87b211634b97 (diff)
Use internal classes to store the layout of members
Add an internal class structure to Object that will allow us to do much more efficient property lookups in the future. Change-Id: I9ee72f6d73113a489f00ad7a31a20e91fbba18ed Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/v4/qv4dateobject.h')
-rw-r--r--src/v4/qv4dateobject.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/v4/qv4dateobject.h b/src/v4/qv4dateobject.h
index 2c09ad28..15bd99f8 100644
--- a/src/v4/qv4dateobject.h
+++ b/src/v4/qv4dateobject.h
@@ -52,7 +52,7 @@ namespace VM {
struct DateObject: Object {
Value value;
- DateObject(const Value &value): value(value) { type = Type_DateObject; }
+ DateObject(ExecutionEngine *engine, const Value &value): Object(engine), value(value) { type = Type_DateObject; }
};
struct DateCtor: FunctionObject
@@ -65,7 +65,7 @@ struct DateCtor: FunctionObject
struct DatePrototype: DateObject
{
- DatePrototype(): DateObject(Value::fromDouble(qSNaN())) {}
+ DatePrototype(ExecutionEngine *engine): DateObject(engine, Value::fromDouble(qSNaN())) {}
void init(ExecutionContext *ctx, const Value &ctor);
static double getThisDate(ExecutionContext *ctx);