Debian Codegraph @

src/3rdparty/javascriptcore/JavaScriptCore/runtime/InternalFunction.cpp

raw symbols SCIP
1 /*
2 * Copyright (C) 1999-2002 Harri Porten ([email protected])
3 * Copyright (C) 2001 Peter Kelly ([email protected])
4 * Copyright (C) 2004, 2007, 2008 Apple Inc. All rights reserved.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 */
22
23 #include "config.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/config.h`/
24 #include "InternalFunction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/InternalFunction.h`/
25
26 #include "FunctionPrototype.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/FunctionPrototype.h`/
27 #include "JSString.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSString.h`/
28
29 namespace JSCcxx . . $ `<built-in>:463:9`! {
30
31 ASSERT_CLASS_FITS_IN_CELLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.h:42:9`!(InternalFunction);
32
33 const ClassInfocxx . . $ QTJSC/ClassInfo# InternalFunctioncxx . . $ QTJSC/InternalFunction#::infocxx . . $ QTJSC/InternalFunction#info. = { "Function", 0, 0, 0 };
34
35 const ClassInfocxx . . $ QTJSC/ClassInfo#* InternalFunctioncxx . . $ QTJSC/InternalFunction#::classInfocxx . . $ QTJSC/InternalFunction#classInfo(f90fb4cda7a7c2e2).() const
36 {
37 return &infocxx . . $ QTJSC/InternalFunction#info.;
38 }
39
40 InternalFunctioncxx . . $ QTJSC/InternalFunction#::InternalFunctioncxx . . $ QTJSC/InternalFunction#InternalFunction(9dfd739751a5f9a8).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#> structure, const Identifiercxx . . $ QTJSC/Identifier#& name)
41 : JSObjectcxx . . $ QTJSC/JSObject#(structure)
42 {
43 putDirectcxx . . $ QTJSC/JSObject#putDirect(10adf5710ac333de).(globalData->propertyNamescxx . . $ QTJSC/JSGlobalData#propertyNames.->name, jsStringcxx . . $ QTJSC/jsString(cd57c96e3da4d8c2).(globalData, name.ustringcxx . . $ QTJSC/Identifier#ustring(de21ee9ecbd506fd).()), DontDeletecxx . . $ QTJSC/DontDelete. | ReadOnlycxx . . $ QTJSC/ReadOnly. | DontEnumcxx . . $ QTJSC/DontEnum.);
44 }
45
46 const UStringcxx . . $ QTJSC/UString#& InternalFunctioncxx . . $ QTJSC/InternalFunction#::namecxx . . $ QTJSC/InternalFunction#name(1c31f8efbb776821).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
47 {
48 return asStringcxx . . $ QTJSC/asString(3a349c2233e4a703).(getDirectcxx . . $ QTJSC/JSObject#getDirect(3d7955d927d372a0).(exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).().propertyNamescxx . . $ QTJSC/JSGlobalData#propertyNames.->name))->value(exec);
49 }
50
51 const UStringcxx . . $ QTJSC/UString# InternalFunctioncxx . . $ QTJSC/InternalFunction#::displayNamecxx . . $ QTJSC/InternalFunction#displayName(607b87b3e5df695).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
52 {
53 JSValuecxx . . $ QTJSC/JSValue# displayName = getDirectcxx . . $ QTJSC/JSObject#getDirect(3d7955d927d372a0).(exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).().propertyNamescxx . . $ QTJSC/JSGlobalData#propertyNames.->displayName);
54
55 if (displayName && isJSStringcxx . . $ QTJSC/isJSString(b468e0305807c4ec).(&exec->globalDatacxx . . $ QTJSC/ExecState#globalData(ae00a65ac2fd4a61).(), displayName))
56 return asStringcxx . . $ QTJSC/UString#UString(e6bad6cb9b63b14d).(displayName)->valuecxx . . $ QTJSC/JSString#value(fc696c135aaf08bd).(exec);
57
58 return UStringcxx . . $ QTJSC/UString#UString(e6bad6cb9b63b14d).::nullcxx . . $ QTJSC/UString#null(53a29c79ee266d14).();
59 }
60
61 const UStringcxx . . $ QTJSC/UString# InternalFunctioncxx . . $ QTJSC/InternalFunction#::calculatedDisplayNamecxx . . $ QTJSC/InternalFunction#calculatedDisplayName(607b87b3e5df695).(ExecStatecxx . . $ QTJSC/ExecState#* exec)
62 {
63 const UStringcxx . . $ QTJSC/UString# explicitName = displayNamecxx . . $ QTJSC/UString#UString(e6bad6cb9b63b14d).(exec);
64
65 if (!explicitName.isEmptycxx . . $ QTJSC/UString#isEmpty(50ce9a9e25b4a850).())
66 return explicitNamecxx . . $ QTJSC/UString#UString(e6bad6cb9b63b14d).;
67
68 return namecxx . . $ QTJSC/UString#UString(e6bad6cb9b63b14d).(exec);
69 }
70
71 } // namespace JSC