diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-21 14:57:02 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2012-05-21 14:58:23 +0200 |
commit | 0388eb704aa7f3e03ef8e4bc1ca0ec4fe85f19d3 (patch) | |
tree | ed2ea5a372860ef3e3c86e153fee1a3928ed8e46 /qv4ecmaobjects_p.h | |
parent | d5f6dfa8a90f37389ead1e7479bbc175568e3dc9 (diff) |
Initial work on the Function prototype.
Diffstat (limited to 'qv4ecmaobjects_p.h')
-rw-r--r-- | qv4ecmaobjects_p.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/qv4ecmaobjects_p.h b/qv4ecmaobjects_p.h index 0aaeee8970..a1a55284a4 100644 --- a/qv4ecmaobjects_p.h +++ b/qv4ecmaobjects_p.h @@ -134,6 +134,27 @@ protected: static void method_unshift(Context *ctx); }; +struct FunctionCtor: FunctionObject +{ + static Value create(ExecutionEngine *engine); + + FunctionCtor(Context *scope); + + virtual void construct(Context *ctx); + virtual void call(Context *ctx); +}; + +struct FunctionPrototype: FunctionObject +{ + FunctionPrototype(Context *ctx, FunctionObject *ctor); + +protected: + static void method_toString(Context *ctx); + static void method_apply(Context *ctx); + static void method_call(Context *ctx); + static void method_bind(Context *ctx); +}; + struct DateCtor: FunctionObject { static Value create(ExecutionEngine *engine); |