| 1 | /* |
| 2 | * Copyright (C) 1999-2000 Harri Porten ([email protected]) |
| 3 | * Copyright (C) 2007, 2008 Apple Inc. All Rights Reserved. |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Lesser General Public |
| 7 | * License as published by the Free Software Foundation; either |
| 8 | * version 2 of the License, or (at your option) any later version. |
| 9 | * |
| 10 | * This library is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * Lesser General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Lesser General Public |
| 16 | * License along with this library; if not, write to the Free Software |
| 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 | * |
| 19 | */ |
| 20 | |
| 21 | #include "config.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/config.h`/ |
| 22 | #include "MathObject.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/MathObject.h`/ |
| 23 | |
| 24 | #include "ObjectPrototype.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/ObjectPrototype.h`/ |
| 25 | #include "Operations.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/Operations.h`/ |
| 26 | #include <time.h> |
| 27 | #include <wtf/Assertions.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h`/ |
| 28 | #include <wtf/MathExtras.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/MathExtras.h`/ |
| 29 | #include <wtf/RandomNumber.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/RandomNumber.h`/ |
| 30 | #include <wtf/RandomNumberSeed.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/RandomNumberSeed.h`/ |
| 31 | |
| 32 | namespace JSCcxx . . $ `<built-in>:463:9`! { |
| 33 | |
| 34 | ASSERT_CLASS_FITS_IN_CELLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/Collector.h:42:9`!(MathObject); |
| 35 | |
| 36 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncAbscxx . . $ QTJSC/mathProtoFuncAbs(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 37 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncACoscxx . . $ QTJSC/mathProtoFuncACos(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 38 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncASincxx . . $ QTJSC/mathProtoFuncASin(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 39 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncATancxx . . $ QTJSC/mathProtoFuncATan(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 40 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncATan2cxx . . $ QTJSC/mathProtoFuncATan2(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 41 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncCeilcxx . . $ QTJSC/mathProtoFuncCeil(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 42 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncCoscxx . . $ QTJSC/mathProtoFuncCos(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 43 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncExpcxx . . $ QTJSC/mathProtoFuncExp(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 44 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncFloorcxx . . $ QTJSC/mathProtoFuncFloor(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 45 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncLogcxx . . $ QTJSC/mathProtoFuncLog(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 46 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncMaxcxx . . $ QTJSC/mathProtoFuncMax(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 47 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncMincxx . . $ QTJSC/mathProtoFuncMin(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 48 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncPowcxx . . $ QTJSC/mathProtoFuncPow(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 49 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncRandomcxx . . $ QTJSC/mathProtoFuncRandom(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 50 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncRoundcxx . . $ QTJSC/mathProtoFuncRound(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 51 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncSincxx . . $ QTJSC/mathProtoFuncSin(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 52 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncSqrtcxx . . $ QTJSC/mathProtoFuncSqrt(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 53 | static JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncTancxx . . $ QTJSC/mathProtoFuncTan(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#*, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&); |
| 54 | |
| 55 | } |
| 56 | |
| 57 | #include "MathObject.lut.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/generated/MathObject.lut.h`/ |
| 58 | |
| 59 | namespace JSCcxx . . $ `<built-in>:463:9`! { |
| 60 | |
| 61 | // ------------------------------ MathObject -------------------------------- |
| 62 | |
| 63 | const ClassInfocxx . . $ QTJSC/ClassInfo# MathObjectcxx . . $ QTJSC/MathObject#::infocxx . . $ QTJSC/MathObject#info. = { "Math", 0, 0, ExecStatecxx . . $ QTJSC/ExecState#::mathTablecxx . . $ QTJSC/ExecState#mathTable(3f6af30e59383ee). }; |
| 64 | |
| 65 | /* Source for MathObject.lut.h |
| 66 | @begin mathTable |
| 67 | abs mathProtoFuncAbs DontEnum|Function 1 |
| 68 | acos mathProtoFuncACos DontEnum|Function 1 |
| 69 | asin mathProtoFuncASin DontEnum|Function 1 |
| 70 | atan mathProtoFuncATan DontEnum|Function 1 |
| 71 | atan2 mathProtoFuncATan2 DontEnum|Function 2 |
| 72 | ceil mathProtoFuncCeil DontEnum|Function 1 |
| 73 | cos mathProtoFuncCos DontEnum|Function 1 |
| 74 | exp mathProtoFuncExp DontEnum|Function 1 |
| 75 | floor mathProtoFuncFloor DontEnum|Function 1 |
| 76 | log mathProtoFuncLog DontEnum|Function 1 |
| 77 | max mathProtoFuncMax DontEnum|Function 2 |
| 78 | min mathProtoFuncMin DontEnum|Function 2 |
| 79 | pow mathProtoFuncPow DontEnum|Function 2 |
| 80 | random mathProtoFuncRandom DontEnum|Function 0 |
| 81 | round mathProtoFuncRound DontEnum|Function 1 |
| 82 | sin mathProtoFuncSin DontEnum|Function 1 |
| 83 | sqrt mathProtoFuncSqrt DontEnum|Function 1 |
| 84 | tan mathProtoFuncTan DontEnum|Function 1 |
| 85 | @end |
| 86 | */ |
| 87 | |
| 88 | MathObjectcxx . . $ QTJSC/MathObject#::MathObjectcxx . . $ QTJSC/MathObject#MathObject(aad11863945fc14a).(ExecStatecxx . . $ QTJSC/ExecState#* exec, NonNullPassRefPtrcxx . . $ NonNullPassRefPtr#<Structurecxx . . $ QTJSC/Structure#> structure) |
| 89 | : JSObjectcxx . . $ QTJSC/JSObject#(structure) |
| 90 | { |
| 91 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "E"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, expcxx . . $ exp(447c67c6676f75c3).(1.0)), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 92 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "LN2"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, logcxx . . $ log(447c67c6676f75c3).(2.0)), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 93 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "LN10"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, logcxx . . $ log(447c67c6676f75c3).(10.0)), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 94 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "LOG2E"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, 1.0 / logcxx . . $ log(447c67c6676f75c3).(2.0)), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 95 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "LOG10E"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, 1.0 / logcxx . . $ log(447c67c6676f75c3).(10.0)), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 96 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "PI"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, piDoublecxx . . $ piDouble.), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 97 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "SQRT1_2"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, sqrtcxx . . $ sqrt(447c67c6676f75c3).(0.5)), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 98 | putDirectWithoutTransitioncxx . . $ QTJSC/JSObject#putDirectWithoutTransition(10adf5710ac333de).(Identifiercxx . . $ QTJSC/Identifier#Identifier(76b09fa744670831).(exec, "SQRT2"), jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, sqrtcxx . . $ sqrt(447c67c6676f75c3).(2.0)), DontDeletecxx . . $ QTJSC/DontDelete. | DontEnumcxx . . $ QTJSC/DontEnum. | ReadOnlycxx . . $ QTJSC/ReadOnly.); |
| 99 | } |
| 100 | |
| 101 | // ECMA 15.8 |
| 102 | |
| 103 | bool MathObjectcxx . . $ QTJSC/MathObject#::getOwnPropertySlotcxx . . $ QTJSC/MathObject#getOwnPropertySlot(6f4ef3dbfe7d5ab9).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, PropertySlotcxx . . $ QTJSC/PropertySlot# &slot) |
| 104 | { |
| 105 | return getStaticFunctionSlotcxx . . $ QTJSC/getStaticFunctionSlot(98ddb1a8b0302336).<JSObjectcxx . . $ QTJSC/JSObject#>(exec, ExecStatecxx . . $ QTJSC/ExecState#::mathTablecxx . . $ QTJSC/ExecState#mathTable(3f6af30e59383ee).(exec), this, propertyName, slot); |
| 106 | } |
| 107 | |
| 108 | bool MathObjectcxx . . $ QTJSC/MathObject#::getOwnPropertyDescriptorcxx . . $ QTJSC/MathObject#getOwnPropertyDescriptor(dce4ef7012294c32).(ExecStatecxx . . $ QTJSC/ExecState#* exec, const Identifiercxx . . $ QTJSC/Identifier#& propertyName, PropertyDescriptorcxx . . $ QTJSC/PropertyDescriptor#& descriptor) |
| 109 | { |
| 110 | return getStaticFunctionDescriptorcxx . . $ QTJSC/getStaticFunctionDescriptor(e0f361285c53e82f).<JSObjectcxx . . $ QTJSC/JSObject#>(exec, ExecStatecxx . . $ QTJSC/ExecState#::mathTablecxx . . $ QTJSC/ExecState#mathTable(3f6af30e59383ee).(exec), this, propertyName, descriptor); |
| 111 | } |
| 112 | |
| 113 | // ------------------------------ Functions -------------------------------- |
| 114 | |
| 115 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncAbscxx . . $ QTJSC/mathProtoFuncAbs(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 116 | { |
| 117 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, fabscxx . . $ fabs(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 118 | } |
| 119 | |
| 120 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncACoscxx . . $ QTJSC/mathProtoFuncACos(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 121 | { |
| 122 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, acoscxx . . $ acos(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 123 | } |
| 124 | |
| 125 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncASincxx . . $ QTJSC/mathProtoFuncASin(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 126 | { |
| 127 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, asincxx . . $ asin(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 128 | } |
| 129 | |
| 130 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncATancxx . . $ QTJSC/mathProtoFuncATan(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 131 | { |
| 132 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, atancxx . . $ atan(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 133 | } |
| 134 | |
| 135 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncATan2cxx . . $ QTJSC/mathProtoFuncATan2(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 136 | { |
| 137 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, atan2cxx . . $ atan2(d8e7e0733fa41c87).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec), args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(1).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 138 | } |
| 139 | |
| 140 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncCeilcxx . . $ QTJSC/mathProtoFuncCeil(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 141 | { |
| 142 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, ceilcxx . . $ ceil(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 143 | } |
| 144 | |
| 145 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncCoscxx . . $ QTJSC/mathProtoFuncCos(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 146 | { |
| 147 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, coscxx . . $ cos(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 148 | } |
| 149 | |
| 150 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncExpcxx . . $ QTJSC/mathProtoFuncExp(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 151 | { |
| 152 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, expcxx . . $ exp(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 153 | } |
| 154 | |
| 155 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncFloorcxx . . $ QTJSC/mathProtoFuncFloor(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 156 | { |
| 157 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, floorcxx . . $ floor(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 158 | } |
| 159 | |
| 160 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncLogcxx . . $ QTJSC/mathProtoFuncLog(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 161 | { |
| 162 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, logcxx . . $ log(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 163 | } |
| 164 | |
| 165 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncMaxcxx . . $ QTJSC/mathProtoFuncMax(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 166 | { |
| 167 | unsigned argsCount = args.sizecxx . . $ QTJSC/ArgList#size(fe4d2d262d4164a8).(); |
| 168 | double result = -Infcxx . . $ QTJSC/Inf.; |
| 169 | for (unsigned k = 0; k < argsCount; ++k) { |
| 170 | double val = args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(k).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec); |
| 171 | if (stdcxx . . $ std/::isnan(val)) { |
| 172 | result = NaNcxx . . $ QTJSC/NaN.; |
| 173 | break; |
| 174 | } |
| 175 | if (val > result || (val == 0 && result == 0 && !stdcxx . . $ std/::signbit(val))) |
| 176 | result = val; |
| 177 | } |
| 178 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, result); |
| 179 | } |
| 180 | |
| 181 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncMincxx . . $ QTJSC/mathProtoFuncMin(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 182 | { |
| 183 | unsigned argsCount = args.sizecxx . . $ QTJSC/ArgList#size(fe4d2d262d4164a8).(); |
| 184 | double result = +Infcxx . . $ QTJSC/Inf.; |
| 185 | for (unsigned k = 0; k < argsCount; ++k) { |
| 186 | double val = args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(k).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec); |
| 187 | if (stdcxx . . $ std/::isnan(val)) { |
| 188 | result = NaNcxx . . $ QTJSC/NaN.; |
| 189 | break; |
| 190 | } |
| 191 | if (val < result || (val == 0 && result == 0 && stdcxx . . $ std/::signbit(val))) |
| 192 | result = val; |
| 193 | } |
| 194 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, result); |
| 195 | } |
| 196 | |
| 197 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncPowcxx . . $ QTJSC/mathProtoFuncPow(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 198 | { |
| 199 | // ECMA 15.8.2.1.13 |
| 200 | |
| 201 | double arg = args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec); |
| 202 | double arg2 = args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(1).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec); |
| 203 | |
| 204 | if (stdcxx . . $ std/::isnan(arg2)) |
| 205 | return jsNaNcxx . . $ QTJSC/jsNaN(3fbe51058e39576a).(exec); |
| 206 | if (stdcxx . . $ std/::isinf(arg2) && fabscxx . . $ fabs(447c67c6676f75c3).(arg) == 1) |
| 207 | return jsNaNcxx . . $ QTJSC/jsNaN(3fbe51058e39576a).(exec); |
| 208 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, powcxx . . $ pow(d8e7e0733fa41c87).(arg, arg2)); |
| 209 | } |
| 210 | |
| 211 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncRandomcxx . . $ QTJSC/mathProtoFuncRandom(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#&) |
| 212 | { |
| 213 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, exec->lexicalGlobalObjectcxx . . $ QTJSC/ExecState#lexicalGlobalObject(3d50c730b5e26899).()->weakRandomNumbercxx . . $ QTJSC/JSGlobalObject#weakRandomNumber(31fa7155c10fdd13).()); |
| 214 | } |
| 215 | |
| 216 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncRoundcxx . . $ QTJSC/mathProtoFuncRound(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 217 | { |
| 218 | double arg = args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec); |
| 219 | if (stdcxx . . $ std/::signbit(arg) && arg >= -0.5) |
| 220 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, -0.0); |
| 221 | double integer = ceilcxx . . $ ceil(447c67c6676f75c3).(arg); |
| 222 | return jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(exec, integer - (integer - arg > 0.5)); |
| 223 | } |
| 224 | |
| 225 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncSincxx . . $ QTJSC/mathProtoFuncSin(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 226 | { |
| 227 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, sincxx . . $ sin(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 228 | } |
| 229 | |
| 230 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncSqrtcxx . . $ QTJSC/mathProtoFuncSqrt(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 231 | { |
| 232 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, sqrtcxx . . $ sqrt(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 233 | } |
| 234 | |
| 235 | JSValuecxx . . $ QTJSC/JSValue# JSC_HOST_CALLcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:1060:9`! mathProtoFuncTancxx . . $ QTJSC/mathProtoFuncTan(cac2aec6ecb9506b).(ExecStatecxx . . $ QTJSC/ExecState#* exec, JSObjectcxx . . $ QTJSC/JSObject#*, JSValuecxx . . $ QTJSC/JSValue#, const ArgListcxx . . $ QTJSC/ArgList#& args) |
| 236 | { |
| 237 | return jsDoubleNumbercxx . . $ QTJSC/jsDoubleNumber(88e66938454912cb).(exec, tancxx . . $ tan(447c67c6676f75c3).(args.atcxx . . $ QTJSC/ArgList#at(e9dec2041b7a6b55).(0).toNumbercxx . . $ QTJSC/JSValue#toNumber(1fd034e372fd1279).(exec))); |
| 238 | } |
| 239 | |
| 240 | } // namespace JSC |