kocienda | 66a6d36 | 2001-08-24 14:24:45 +0000 | [diff] [blame] | 1 | /* |
kocienda | 66a6d36 | 2001-08-24 14:24:45 +0000 | [diff] [blame] | 2 | * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) |
darin@apple.com | 8281d83 | 2008-09-21 02:29:12 +0000 | [diff] [blame] | 3 | * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
kocienda | 66a6d36 | 2001-08-24 14:24:45 +0000 | [diff] [blame] | 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
mjs | cdff33b | 2006-01-23 21:41:36 +0000 | [diff] [blame] | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
mjs | 6f821c8 | 2002-03-22 00:31:57 +0000 | [diff] [blame] | 18 | * |
kocienda | 66a6d36 | 2001-08-24 14:24:45 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
weinig@apple.com | 2ce2a7f | 2008-06-28 21:22:01 +0000 | [diff] [blame] | 21 | #ifndef FunctionConstructor_h |
| 22 | #define FunctionConstructor_h |
kocienda | 66a6d36 | 2001-08-24 14:24:45 +0000 | [diff] [blame] | 23 | |
weinig@apple.com | f0ea355 | 2008-07-01 01:11:22 +0000 | [diff] [blame] | 24 | #include "InternalFunction.h" |
kocienda | 66a6d36 | 2001-08-24 14:24:45 +0000 | [diff] [blame] | 25 | |
cwzwarich@webkit.org | 3f782f6 | 2008-09-08 01:28:33 +0000 | [diff] [blame] | 26 | namespace JSC { |
kocienda | 66a6d36 | 2001-08-24 14:24:45 +0000 | [diff] [blame] | 27 | |
weinig@apple.com | 2ce2a7f | 2008-06-28 21:22:01 +0000 | [diff] [blame] | 28 | class FunctionPrototype; |
weinig@apple.com | 8a6ccbd | 2008-02-12 01:24:02 +0000 | [diff] [blame] | 29 | |
weinig@apple.com | 2ce2a7f | 2008-06-28 21:22:01 +0000 | [diff] [blame] | 30 | class FunctionConstructor : public InternalFunction { |
weinig@apple.com | 415e1c52 | 2008-01-17 19:27:33 +0000 | [diff] [blame] | 31 | public: |
oliver@apple.com | 5dea615 | 2010-05-21 18:19:42 +0000 | [diff] [blame] | 32 | FunctionConstructor(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, FunctionPrototype*); |
weinig@apple.com | 0e2d66e | 2008-07-06 05:26:58 +0000 | [diff] [blame] | 33 | |
darin@apple.com | 1edff43 | 2008-06-24 05:23:17 +0000 | [diff] [blame] | 34 | private: |
mrowe@apple.com | 2f6dfdf | 2008-05-22 01:20:45 +0000 | [diff] [blame] | 35 | virtual ConstructType getConstructData(ConstructData&); |
darin@apple.com | 1edff43 | 2008-06-24 05:23:17 +0000 | [diff] [blame] | 36 | virtual CallType getCallData(CallData&); |
weinig@apple.com | 415e1c52 | 2008-01-17 19:27:33 +0000 | [diff] [blame] | 37 | }; |
mjs | 6f821c8 | 2002-03-22 00:31:57 +0000 | [diff] [blame] | 38 | |
weinig@apple.com | 2ce2a7f | 2008-06-28 21:22:01 +0000 | [diff] [blame] | 39 | JSObject* constructFunction(ExecState*, const ArgList&, const Identifier& functionName, const UString& sourceURL, int lineNumber); |
| 40 | JSObject* constructFunction(ExecState*, const ArgList&); |
| 41 | |
cwzwarich@webkit.org | 3f782f6 | 2008-09-08 01:28:33 +0000 | [diff] [blame] | 42 | } // namespace JSC |
mjs | 6f821c8 | 2002-03-22 00:31:57 +0000 | [diff] [blame] | 43 | |
weinig@apple.com | 2ce2a7f | 2008-06-28 21:22:01 +0000 | [diff] [blame] | 44 | #endif // FunctionConstructor_h |