| 1 | /* |
| 2 | * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions |
| 6 | * are met: |
| 7 | * |
| 8 | * 1. Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * 2. Redistributions in binary form must reproduce the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer in the |
| 12 | * documentation and/or other materials provided with the distribution. |
| 13 | * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of |
| 14 | * its contributors may be used to endorse or promote products derived |
| 15 | * from this software without specific prior written permission. |
| 16 | * |
| 17 | * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY |
| 18 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 19 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 20 | * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY |
| 21 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 22 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 23 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | */ |
| 28 | |
| 29 | #ifndef CallData_h |
| 30 | #define CallData_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/CallData.h:30:9`! |
| 31 | |
| 32 | #include "NativeFunctionWrapper.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/NativeFunctionWrapper.h`/ |
| 33 | |
| 34 | namespace JSCcxx . . $ `<built-in>:463:9`! { |
| 35 | |
| 36 | class ArgListcxx . . $ QTJSC/ArgList#; |
| 37 | class ExecStatecxx . . $ QTJSC/ExecState#; |
| 38 | class FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#; |
| 39 | class JSObjectcxx . . $ QTJSC/JSObject#; |
| 40 | class JSValuecxx . . $ QTJSC/JSValue#; |
| 41 | class ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#; |
| 42 | |
| 43 | enum CallTypecxx . . $ QTJSC/CallType# { |
| 44 | CallTypeNonecxx . . $ QTJSC/CallTypeNone., |
| 45 | CallTypeHostcxx . . $ QTJSC/CallTypeHost., |
| 46 | CallTypeJScxx . . $ QTJSC/CallTypeJS. |
| 47 | }; |
| 48 | |
| 49 | typedef JSValuecxx . . $ QTJSC/JSValue# (JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! *NativeFunctioncxx . . $ QTJSC/NativeFunction#)(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue# thisValue, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 50 | |
| 51 | #ifdef QT_BUILD_SCRIPT_LIBcxx . . $ `<built-in>:481:9`! |
| 52 | class NativeFuncWrappercxx . . $ QTJSC/NativeFuncWrapper# |
| 53 | { |
| 54 | NativeFunctioncxx . . $ QTJSC/NativeFunction# ptrcxx . . $ QTJSC/NativeFuncWrapper#ptr.; |
| 55 | public: |
| 56 | inline NativeFuncWrappercxx . . $ QTJSC/NativeFuncWrapper#& operatorcxx . . $ QTJSC/NativeFuncWrapper#`operator=`(d9f3a0596fbce81c).=(NativeFunctioncxx . . $ QTJSC/NativeFunction# func) |
| 57 | { |
| 58 | ptrcxx . . $ QTJSC/NativeFuncWrapper#ptr. = func; |
| 59 | return *this; |
| 60 | } |
| 61 | inline operatorcxx . . $ QTJSC/NativeFuncWrapper#`operator QTJSC::JSValue (*)(QTJSC::ExecState *, QTJSC::JSObject *, QTJSC::JSValue, const QTJSC::ArgList &)`(44211026f4305b67). NativeFunctioncxx . . $ QTJSC/NativeFunction#() const {return ptrcxx . . $ QTJSC/NativeFuncWrapper#ptr.;} |
| 62 | inline operatorcxx . . $ QTJSC/NativeFuncWrapper#`operator bool`(50ce9a9e25b4a850). bool() const {return ptrcxx . . $ QTJSC/NativeFuncWrapper#ptr.;} |
| 63 | |
| 64 | JSValuecxx . . $ QTJSC/JSValue# operatorcxx . . $ QTJSC/NativeFuncWrapper#`operator()`(7665909ba4cde34d).()(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#* jsobj, JSValuecxx . . $ QTJSC/JSValue# thisValue, const ArgListcxx . . $ QTJSC/ArgList#& argList) const; |
| 65 | }; |
| 66 | #endif |
| 67 | |
| 68 | #if defined(QT_BUILD_SCRIPT_LIBcxx . . $ `<built-in>:481:9`!) && OScxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:49:9`!(SOLARIS) |
| 69 | struct |
| 70 | #else |
| 71 | union |
| 72 | #endif |
| 73 | CallDatacxx . . $ QTJSC/CallData# { |
| 74 | structcxx . . $ QTJSC/CallData#$anonymous_type_0# { |
| 75 | #ifndef QT_BUILD_SCRIPT_LIBcxx . . $ `<built-in>:481:9`! |
| 76 | NativeFunction function; |
| 77 | #else |
| 78 | NativeFuncWrappercxx . . $ QTJSC/NativeFuncWrapper# functioncxx . . $ QTJSC/CallData#$anonymous_type_0#function.; |
| 79 | #endif |
| 80 | } nativecxx . . $ QTJSC/CallData#native.; |
| 81 | structcxx . . $ QTJSC/CallData#$anonymous_type_1# { |
| 82 | FunctionExecutablecxx . . $ QTJSC/FunctionExecutable#* functionExecutablecxx . . $ QTJSC/CallData#$anonymous_type_1#functionExecutable.; |
| 83 | ScopeChainNodecxx . . $ QTJSC/ScopeChainNode#* scopeChaincxx . . $ QTJSC/CallData#$anonymous_type_1#scopeChain.; |
| 84 | } jscxx . . $ QTJSC/CallData#js.; |
| 85 | }; |
| 86 | |
| 87 | JSValuecxx . . $ QTJSC/JSValue# callcxx . . $ QTJSC/call(342816bfcb24d530).(ExecStatecxx . . $ QTJSC/ExecState#*, JSValuecxx . . $ QTJSC/JSValue# functionObject, CallTypecxx . . $ QTJSC/CallType#, const CallDatacxx . . $ QTJSC/CallData#&, JSValuecxx . . $ QTJSC/JSValue# thisValue, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 88 | |
| 89 | } // namespace JSC |
| 90 | |
| 91 | #endif // CallData_h |