blob: 1dd8effeca69ab4b41ddd5c337305188711b6a92 [file] [log] [blame]
weinig@apple.com7dab4652008-07-05 23:19:36 +00001/*
2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
darin@apple.com01ce6e92010-07-12 21:32:34 +00003 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
weinig@apple.com7dab4652008-07-05 23:19:36 +00004 * 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.com22104f52016-09-28 17:08:17 +000024#pragma once
weinig@apple.com7dab4652008-07-05 23:19:36 +000025
mhahnenberg@apple.comc1bc9d32013-01-24 21:39:55 +000026#include "JSCJSValue.h"
darin@apple.com970a32f2014-02-03 17:30:04 +000027#include <unicode/uchar.h>
darin@apple.com9ec0dbe2008-10-19 04:31:41 +000028
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +000029namespace JSC {
weinig@apple.com7dab4652008-07-05 23:19:36 +000030
fpizlo@apple.com6301c852013-02-18 09:25:33 +000031class ArgList;
ysuzuki@apple.com622e8692019-10-07 23:13:45 +000032class CallFrame;
fpizlo@apple.com6301c852013-02-18 09:25:33 +000033class JSObject;
weinig@apple.com7dab4652008-07-05 23:19:36 +000034
fpizlo@apple.com6301c852013-02-18 09:25:33 +000035// FIXME: These functions should really be in JSGlobalObject.cpp, but putting them there
36// is a 0.5% reduction.
weinig@apple.com7dab4652008-07-05 23:19:36 +000037
utatane.tea@gmail.com84077632018-06-23 08:39:34 +000038extern const ASCIILiteral ObjectProtoCalledOnNullOrUndefinedError;
shvaikalesh@gmail.com9a7c4bf2021-07-25 22:32:20 +000039extern const ASCIILiteral RestrictedPropertyAccessError;
utatane.tea@gmail.com34e35e82017-10-18 07:12:53 +000040
ysuzuki@apple.com5299a3a2020-09-25 21:32:22 +000041JSC_DECLARE_HOST_FUNCTION(globalFuncEval);
42JSC_DECLARE_HOST_FUNCTION(globalFuncParseInt);
43JSC_DECLARE_HOST_FUNCTION(globalFuncParseFloat);
44JSC_DECLARE_HOST_FUNCTION(globalFuncDecodeURI);
45JSC_DECLARE_HOST_FUNCTION(globalFuncDecodeURIComponent);
46JSC_DECLARE_HOST_FUNCTION(globalFuncEncodeURI);
47JSC_DECLARE_HOST_FUNCTION(globalFuncEncodeURIComponent);
48JSC_DECLARE_HOST_FUNCTION(globalFuncEscape);
49JSC_DECLARE_HOST_FUNCTION(globalFuncUnescape);
50JSC_DECLARE_HOST_FUNCTION(globalFuncThrowTypeError);
51JSC_DECLARE_HOST_FUNCTION(globalFuncThrowTypeErrorArgumentsCalleeAndCaller);
52JSC_DECLARE_HOST_FUNCTION(globalFuncMakeTypeError);
53JSC_DECLARE_HOST_FUNCTION(globalFuncProtoGetter);
54JSC_DECLARE_HOST_FUNCTION(globalFuncProtoSetter);
55JSC_DECLARE_HOST_FUNCTION(globalFuncSetPrototypeDirect);
shvaikalesh@gmail.coma2586732021-04-02 21:20:45 +000056JSC_DECLARE_HOST_FUNCTION(globalFuncSetPrototypeDirectOrThrow);
ysuzuki@apple.com5299a3a2020-09-25 21:32:22 +000057JSC_DECLARE_HOST_FUNCTION(globalFuncHostPromiseRejectionTracker);
58JSC_DECLARE_HOST_FUNCTION(globalFuncBuiltinLog);
59JSC_DECLARE_HOST_FUNCTION(globalFuncBuiltinDescribe);
60JSC_DECLARE_HOST_FUNCTION(globalFuncImportModule);
shvaikalesh@gmail.comdb80fa42021-01-09 04:31:12 +000061JSC_DECLARE_HOST_FUNCTION(globalFuncCopyDataProperties);
ysuzuki@apple.com5299a3a2020-09-25 21:32:22 +000062JSC_DECLARE_HOST_FUNCTION(globalFuncDateTimeFormat);
dino@apple.com1f680622015-02-20 00:20:54 +000063
ross.kirsling@sony.coma6acd372020-10-17 09:59:28 +000064JS_EXPORT_PRIVATE double jsToNumber(StringView);
weinig@apple.com7dab4652008-07-05 23:19:36 +000065
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +000066} // namespace JSC