blob: ede25530921402f7614e645adf8695df33fc9d9c [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>
28#include <wtf/text/LChar.h>
darin@apple.com9ec0dbe2008-10-19 04:31:41 +000029
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +000030namespace JSC {
weinig@apple.com7dab4652008-07-05 23:19:36 +000031
fpizlo@apple.com6301c852013-02-18 09:25:33 +000032class ArgList;
33class ExecState;
34class JSObject;
weinig@apple.com7dab4652008-07-05 23:19:36 +000035
fpizlo@apple.com6301c852013-02-18 09:25:33 +000036// FIXME: These functions should really be in JSGlobalObject.cpp, but putting them there
37// is a 0.5% reduction.
weinig@apple.com7dab4652008-07-05 23:19:36 +000038
fpizlo@apple.com6301c852013-02-18 09:25:33 +000039EncodedJSValue JSC_HOST_CALL globalFuncEval(ExecState*);
40EncodedJSValue JSC_HOST_CALL globalFuncParseInt(ExecState*);
41EncodedJSValue JSC_HOST_CALL globalFuncParseFloat(ExecState*);
fpizlo@apple.com6301c852013-02-18 09:25:33 +000042EncodedJSValue JSC_HOST_CALL globalFuncDecodeURI(ExecState*);
43EncodedJSValue JSC_HOST_CALL globalFuncDecodeURIComponent(ExecState*);
44EncodedJSValue JSC_HOST_CALL globalFuncEncodeURI(ExecState*);
45EncodedJSValue JSC_HOST_CALL globalFuncEncodeURIComponent(ExecState*);
46EncodedJSValue JSC_HOST_CALL globalFuncEscape(ExecState*);
47EncodedJSValue JSC_HOST_CALL globalFuncUnescape(ExecState*);
48EncodedJSValue JSC_HOST_CALL globalFuncThrowTypeError(ExecState*);
msaboff@apple.com74682982016-06-02 22:01:50 +000049EncodedJSValue JSC_HOST_CALL globalFuncThrowTypeErrorArgumentsCalleeAndCaller(ExecState*);
fpizlo@apple.com6301c852013-02-18 09:25:33 +000050EncodedJSValue JSC_HOST_CALL globalFuncProtoGetter(ExecState*);
51EncodedJSValue JSC_HOST_CALL globalFuncProtoSetter(ExecState*);
joepeck@webkit.orga6dfe9c2017-04-28 03:33:57 +000052EncodedJSValue JSC_HOST_CALL globalFuncHostPromiseRejectionTracker(ExecState*);
oliver@apple.comef1d2b72014-04-11 18:39:22 +000053EncodedJSValue JSC_HOST_CALL globalFuncBuiltinLog(ExecState*);
utatane.tea@gmail.com5e639122017-01-09 22:02:47 +000054EncodedJSValue JSC_HOST_CALL globalFuncImportModule(ExecState*);
dino@apple.com1f680622015-02-20 00:20:54 +000055
akling@apple.com7e84ac52015-05-19 17:06:23 +000056double jsToNumber(StringView);
weinig@apple.com7dab4652008-07-05 23:19:36 +000057
cwzwarich@webkit.org3f782f62008-09-08 01:28:33 +000058} // namespace JSC