weinig@apple.com | 7dab465 | 2008-07-05 23:19:36 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) |
darin@apple.com | 01ce6e9 | 2010-07-12 21:32:34 +0000 | [diff] [blame] | 3 | * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
weinig@apple.com | 7dab465 | 2008-07-05 23:19:36 +0000 | [diff] [blame] | 4 | * Copyright (C) 2007 Cameron Zwarich (cwzwarich@uwaterloo.ca) |
| 5 | * Copyright (C) 2007 Maks Orlovich |
| 6 | * |
| 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Library General Public |
| 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2 of the License, or (at your option) any later version. |
| 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Library General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU Library General Public License |
| 18 | * along with this library; see the file COPYING.LIB. If not, write to |
| 19 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 | * Boston, MA 02110-1301, USA. |
| 21 | * |
| 22 | */ |
| 23 | |
ryanhaddad@apple.com | 22104f5 | 2016-09-28 17:08:17 +0000 | [diff] [blame] | 24 | #pragma once |
weinig@apple.com | 7dab465 | 2008-07-05 23:19:36 +0000 | [diff] [blame] | 25 | |
mhahnenberg@apple.com | c1bc9d3 | 2013-01-24 21:39:55 +0000 | [diff] [blame] | 26 | #include "JSCJSValue.h" |
darin@apple.com | 970a32f | 2014-02-03 17:30:04 +0000 | [diff] [blame] | 27 | #include <unicode/uchar.h> |
darin@apple.com | 9ec0dbe | 2008-10-19 04:31:41 +0000 | [diff] [blame] | 28 | |
cwzwarich@webkit.org | 3f782f6 | 2008-09-08 01:28:33 +0000 | [diff] [blame] | 29 | namespace JSC { |
weinig@apple.com | 7dab465 | 2008-07-05 23:19:36 +0000 | [diff] [blame] | 30 | |
fpizlo@apple.com | 6301c85 | 2013-02-18 09:25:33 +0000 | [diff] [blame] | 31 | class ArgList; |
ysuzuki@apple.com | 622e869 | 2019-10-07 23:13:45 +0000 | [diff] [blame] | 32 | class CallFrame; |
fpizlo@apple.com | 6301c85 | 2013-02-18 09:25:33 +0000 | [diff] [blame] | 33 | class JSObject; |
weinig@apple.com | 7dab465 | 2008-07-05 23:19:36 +0000 | [diff] [blame] | 34 | |
fpizlo@apple.com | 6301c85 | 2013-02-18 09:25:33 +0000 | [diff] [blame] | 35 | // FIXME: These functions should really be in JSGlobalObject.cpp, but putting them there |
| 36 | // is a 0.5% reduction. |
weinig@apple.com | 7dab465 | 2008-07-05 23:19:36 +0000 | [diff] [blame] | 37 | |
utatane.tea@gmail.com | 8407763 | 2018-06-23 08:39:34 +0000 | [diff] [blame] | 38 | extern const ASCIILiteral ObjectProtoCalledOnNullOrUndefinedError; |
shvaikalesh@gmail.com | 9a7c4bf | 2021-07-25 22:32:20 +0000 | [diff] [blame] | 39 | extern const ASCIILiteral RestrictedPropertyAccessError; |
utatane.tea@gmail.com | 34e35e8 | 2017-10-18 07:12:53 +0000 | [diff] [blame] | 40 | |
ysuzuki@apple.com | 5299a3a | 2020-09-25 21:32:22 +0000 | [diff] [blame] | 41 | JSC_DECLARE_HOST_FUNCTION(globalFuncEval); |
| 42 | JSC_DECLARE_HOST_FUNCTION(globalFuncParseInt); |
| 43 | JSC_DECLARE_HOST_FUNCTION(globalFuncParseFloat); |
| 44 | JSC_DECLARE_HOST_FUNCTION(globalFuncDecodeURI); |
| 45 | JSC_DECLARE_HOST_FUNCTION(globalFuncDecodeURIComponent); |
| 46 | JSC_DECLARE_HOST_FUNCTION(globalFuncEncodeURI); |
| 47 | JSC_DECLARE_HOST_FUNCTION(globalFuncEncodeURIComponent); |
| 48 | JSC_DECLARE_HOST_FUNCTION(globalFuncEscape); |
| 49 | JSC_DECLARE_HOST_FUNCTION(globalFuncUnescape); |
| 50 | JSC_DECLARE_HOST_FUNCTION(globalFuncThrowTypeError); |
| 51 | JSC_DECLARE_HOST_FUNCTION(globalFuncThrowTypeErrorArgumentsCalleeAndCaller); |
| 52 | JSC_DECLARE_HOST_FUNCTION(globalFuncMakeTypeError); |
| 53 | JSC_DECLARE_HOST_FUNCTION(globalFuncProtoGetter); |
| 54 | JSC_DECLARE_HOST_FUNCTION(globalFuncProtoSetter); |
| 55 | JSC_DECLARE_HOST_FUNCTION(globalFuncSetPrototypeDirect); |
shvaikalesh@gmail.com | a258673 | 2021-04-02 21:20:45 +0000 | [diff] [blame] | 56 | JSC_DECLARE_HOST_FUNCTION(globalFuncSetPrototypeDirectOrThrow); |
ysuzuki@apple.com | 5299a3a | 2020-09-25 21:32:22 +0000 | [diff] [blame] | 57 | JSC_DECLARE_HOST_FUNCTION(globalFuncHostPromiseRejectionTracker); |
| 58 | JSC_DECLARE_HOST_FUNCTION(globalFuncBuiltinLog); |
| 59 | JSC_DECLARE_HOST_FUNCTION(globalFuncBuiltinDescribe); |
| 60 | JSC_DECLARE_HOST_FUNCTION(globalFuncImportModule); |
shvaikalesh@gmail.com | db80fa4 | 2021-01-09 04:31:12 +0000 | [diff] [blame] | 61 | JSC_DECLARE_HOST_FUNCTION(globalFuncCopyDataProperties); |
ysuzuki@apple.com | 5299a3a | 2020-09-25 21:32:22 +0000 | [diff] [blame] | 62 | JSC_DECLARE_HOST_FUNCTION(globalFuncDateTimeFormat); |
dino@apple.com | 1f68062 | 2015-02-20 00:20:54 +0000 | [diff] [blame] | 63 | |
ross.kirsling@sony.com | a6acd37 | 2020-10-17 09:59:28 +0000 | [diff] [blame] | 64 | JS_EXPORT_PRIVATE double jsToNumber(StringView); |
weinig@apple.com | 7dab465 | 2008-07-05 23:19:36 +0000 | [diff] [blame] | 65 | |
cwzwarich@webkit.org | 3f782f6 | 2008-09-08 01:28:33 +0000 | [diff] [blame] | 66 | } // namespace JSC |