diff options
author | Lars Knoll <[email protected]> | 2017-01-30 22:22:00 +0100 |
---|---|---|
committer | Lars Knoll <[email protected]> | 2017-03-09 08:58:28 +0000 |
commit | 8b3cbc4403e3eac286613691c11aa1ded588da59 (patch) | |
tree | 48bc8592a69ce2585639f4e83258bb776c4f32ab /src/qml/jsruntime/qv4functionobject_p.h | |
parent | 2fbb5c93c765ea53c3bd5f30b8bf769ccc88874a (diff) |
Refactor how we define Heap objects
Declare the type of Heap object in the Member() macro, instead of
deducing it from templates. This allows us to encode the offset
of the member in the second template argument to Pointer<> in
a second step.
Change-Id: I2cfb73785749d3fb991689b4e0554a72b3e5e13f
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject_p.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4functionobject_p.h b/src/qml/jsruntime/qv4functionobject_p.h index 083ff4343b..1fc40e6ff6 100644 --- a/src/qml/jsruntime/qv4functionobject_p.h +++ b/src/qml/jsruntime/qv4functionobject_p.h @@ -66,8 +66,8 @@ struct BuiltinFunction; namespace Heap { #define FunctionObjectMembers(class, Member) \ - Member(class, Pointer<ExecutionContext>, scope) \ - Member(class, Function *, function) + Member(class, Pointer, ExecutionContext *, scope) \ + Member(class, NoMark, Function *, function) DECLARE_HEAP_OBJECT(FunctionObject, Object) { DECLARE_MARK_TABLE(FunctionObject); @@ -122,9 +122,9 @@ struct ScriptFunction : FunctionObject { }; #define BoundFunctionMembers(class, Member) \ - Member(class, Pointer<FunctionObject>, target) \ - Member(class, Value, boundThis) \ - Member(class, Pointer<MemberData>, boundArgs) + Member(class, Pointer, FunctionObject *, target) \ + Member(class, Value, Value, boundThis) \ + Member(class, Pointer, MemberData *, boundArgs) DECLARE_HEAP_OBJECT(BoundFunction, FunctionObject) { DECLARE_MARK_TABLE(BoundFunction); |