Debian Codegraph @

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

raw symbols SCIP
1 /*
2 * Copyright (C) 2005, 2008 Apple Inc. All rights reserved.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 *
19 */
20
21 #include "config.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/config.h`/
22 #include "PropertySlot.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/PropertySlot.h`/
23
24 #include "JSFunction.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSFunction.h`/
25 #include "JSGlobalObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h`/
26
27 namespace JSCcxx . . $ `<built-in>:463:9`! {
28
29 JSValuecxx . . $ QTJSC/JSValue# PropertySlotcxx . . $ QTJSC/PropertySlot#::functionGettercxx . . $ QTJSC/PropertySlot#functionGetter(2d50ae1b8ebdc06b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#&, const PropertySlotcxx . . $ QTJSC/PropertySlot#& slot)
30 {
31 // Prevent getter functions from observing execution if an exception is pending.
32 if (exec->hadExceptioncxx . . $ QTJSC/ExecState#hadException(50ce9a9e25b4a850).())
33 return exec->exceptioncxx . . $ QTJSC/ExecState#exception(888c053acf364da1).();
34
35 CallDatacxx . . $ QTJSC/CallData# callData;
36 CallTypecxx . . $ QTJSC/CallType# callType = slot.m_datacxx . . $ QTJSC/PropertySlot#m_data..getterFunccxx . . $ QTJSC/PropertySlot#$anonymous_type_0#getterFunc.->getCallDatacxx . . $ QTJSC/JSCell#getCallData(9482040cf952d29d).(callData);
37 if (callType == CallTypeHostcxx . . $ QTJSC/CallTypeHost.)
38 return callData.nativecxx . . $ QTJSC/CallData#native..functioncxx . . $ QTJSC/CallData#$anonymous_type_0#function.(exec, slot.m_datacxx . . $ QTJSC/PropertySlot#m_data..getterFunccxx . . $ QTJSC/PropertySlot#$anonymous_type_0#getterFunc., slot.slotBasecxx . . $ QTJSC/PropertySlot#slotBase(888c053acf364da1).(), exec->emptyListcxx . . $ QTJSC/ExecState#emptyList(2af1302b5585147a).());
39 ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(callType == CallTypeJS);
40 // FIXME: Can this be done more efficiently using the callData?
41 return asFunctioncxx . . $ QTJSC/asFunction(deffc94ad83de35f).(slot.m_datacxx . . $ QTJSC/PropertySlot#m_data..getterFunccxx . . $ QTJSC/PropertySlot#$anonymous_type_0#getterFunc.)->callcxx . . $ QTJSC/JSFunction#call(a346bc844d0fe1c2).(exec, slot.slotBasecxx . . $ QTJSC/PropertySlot#slotBase(888c053acf364da1).(), exec->emptyListcxx . . $ QTJSC/ExecState#emptyList(2af1302b5585147a).());
42 }
43
44 } // namespace JSC