| 1 | /* |
| 2 | * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 | * Copyright (C) 2006 Alexey Proskuryakov ([email protected]) |
| 4 | * |
| 5 | * This library is free software; you can redistribute it and/or |
| 6 | * modify it under the terms of the GNU Library 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 | * Library General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU Library General Public License |
| 16 | * along with this library; see the file COPYING.LIB. If not, write to |
| 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 | * Boston, MA 02110-1301, USA. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | #ifndef JSImmediate_h |
| 23 | #define JSImmediate_hcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSImmediate.h:23:9`! |
| 24 | |
| 25 | #include <wtf/Platform.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h`/ |
| 26 | |
| 27 | #if !USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE32_64) |
| 28 | |
| 29 | #include "JSValue.h"cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSValue.h`/ |
| 30 | |
| 31 | #include <wtf/Assertions.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h`/ |
| 32 | #include <wtf/AlwaysInline.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h`/ |
| 33 | #include <wtf/MathExtras.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/MathExtras.h`/ |
| 34 | #include <wtf/StdLibExtras.h>cxx . . $ `<file>/src/3rdparty/javascriptcore/JavaScriptCore/wtf/StdLibExtras.h`/ |
| 35 | |
| 36 | #include <limits> |
| 37 | #include <limits.h> |
| 38 | #include <stdarg.h> |
| 39 | #include <stdint.h> |
| 40 | #include <stdlib.h> |
| 41 | |
| 42 | namespace JSCcxx . . $ `<built-in>:463:9`! { |
| 43 | |
| 44 | class ExecStatecxx . . $ QTJSC/ExecState#; |
| 45 | class JSCellcxx . . $ QTJSC/JSCell#; |
| 46 | class JSFastMathcxx . . $ QTJSC/JSFastMath#; |
| 47 | class JSGlobalDatacxx . . $ QTJSC/JSGlobalData#; |
| 48 | class JSObjectcxx . . $ QTJSC/JSObject#; |
| 49 | class UStringcxx . . $ QTJSC/UString#; |
| 50 | |
| 51 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 52 | inline intptr_tcxx . . $ intptr_t# reinterpretDoubleToIntptrcxx . . $ QTJSC/reinterpretDoubleToIntptr(a6e4a4c8b00c35a3).(double value) |
| 53 | { |
| 54 | return WTFcxx . . $ QTWTF/::bitwise_castcxx . . $ QTWTF/bitwise_cast(6510c324ac8ecfb4).<intptr_tcxx . . $ intptr_t#>(value); |
| 55 | } |
| 56 | |
| 57 | inline double reinterpretIntptrToDoublecxx . . $ QTJSC/reinterpretIntptrToDouble(66f4a6ec74012662).(intptr_tcxx . . $ intptr_t# value) |
| 58 | { |
| 59 | return WTFcxx . . $ `<built-in>:467:9`!::bitwise_castcxx . . $ QTWTF/bitwise_cast(6510c324ac8ecfb4).<double>(value); |
| 60 | } |
| 61 | #endif |
| 62 | |
| 63 | /* |
| 64 | * A JSValue* is either a pointer to a cell (a heap-allocated object) or an immediate (a type-tagged |
| 65 | * value masquerading as a pointer). The low two bits in a JSValue* are available for type tagging |
| 66 | * because allocator alignment guarantees they will be 00 in cell pointers. |
| 67 | * |
| 68 | * For example, on a 32 bit system: |
| 69 | * |
| 70 | * JSCell*: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 00 |
| 71 | * [ high 30 bits: pointer address ] [ low 2 bits -- always 0 ] |
| 72 | * JSImmediate: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX TT |
| 73 | * [ high 30 bits: 'payload' ] [ low 2 bits -- tag ] |
| 74 | * |
| 75 | * Where the bottom two bits are non-zero they either indicate that the immediate is a 31 bit signed |
| 76 | * integer, or they mark the value as being an immediate of a type other than integer, with a secondary |
| 77 | * tag used to indicate the exact type. |
| 78 | * |
| 79 | * Where the lowest bit is set (TT is equal to 01 or 11) the high 31 bits form a 31 bit signed int value. |
| 80 | * Where TT is equal to 10 this indicates this is a type of immediate other than an integer, and the next |
| 81 | * two bits will form an extended tag. |
| 82 | * |
| 83 | * 31 bit signed int: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X1 |
| 84 | * [ high 30 bits of the value ] [ high bit part of value ] |
| 85 | * Other: YYYYYYYYYYYYYYYYYYYYYYYYYYYY ZZ 10 |
| 86 | * [ extended 'payload' ] [ extended tag ] [ tag 'other' ] |
| 87 | * |
| 88 | * Where the first bit of the extended tag is set this flags the value as being a boolean, and the following |
| 89 | * bit would flag the value as undefined. If neither bits are set, the value is null. |
| 90 | * |
| 91 | * Other: YYYYYYYYYYYYYYYYYYYYYYYYYYYY UB 10 |
| 92 | * [ extended 'payload' ] [ undefined | bool ] [ tag 'other' ] |
| 93 | * |
| 94 | * For boolean value the lowest bit in the payload holds the value of the bool, all remaining bits are zero. |
| 95 | * For undefined or null immediates the payload is zero. |
| 96 | * |
| 97 | * Boolean: 000000000000000000000000000V 01 10 |
| 98 | * [ boolean value ] [ bool ] [ tag 'other' ] |
| 99 | * Undefined: 0000000000000000000000000000 10 10 |
| 100 | * [ zero ] [ undefined ] [ tag 'other' ] |
| 101 | * Null: 0000000000000000000000000000 00 10 |
| 102 | * [ zero ] [ zero ] [ tag 'other' ] |
| 103 | */ |
| 104 | |
| 105 | /* |
| 106 | * On 64-bit platforms, we support an alternative encoding form for immediates, if |
| 107 | * USE(JSVALUE64) is defined. When this format is used, double precision |
| 108 | * floating point values may also be encoded as JSImmediates. |
| 109 | * |
| 110 | * The encoding makes use of unused NaN space in the IEEE754 representation. Any value |
| 111 | * with the top 13 bits set represents a QNaN (with the sign bit set). QNaN values |
| 112 | * can encode a 51-bit payload. Hardware produced and C-library payloads typically |
| 113 | * have a payload of zero. We assume that non-zero payloads are available to encode |
| 114 | * pointer and integer values. Since any 64-bit bit pattern where the top 15 bits are |
| 115 | * all set represents a NaN with a non-zero payload, we can use this space in the NaN |
| 116 | * ranges to encode other values (however there are also other ranges of NaN space that |
| 117 | * could have been selected). This range of NaN space is represented by 64-bit numbers |
| 118 | * begining with the 16-bit hex patterns 0xFFFE and 0xFFFF - we rely on the fact that no |
| 119 | * valid double-precision numbers will begin fall in these ranges. |
| 120 | * |
| 121 | * The scheme we have implemented encodes double precision values by adding 2^48 to the |
| 122 | * 64-bit integer representation of the number. After this manipulation, no encoded |
| 123 | * double-precision value will begin with the pattern 0x0000 or 0xFFFF. |
| 124 | * |
| 125 | * The top 16-bits denote the type of the encoded JSImmediate: |
| 126 | * |
| 127 | * Pointer: 0000:PPPP:PPPP:PPPP |
| 128 | * 0001:****:****:**** |
| 129 | * Double:{ ... |
| 130 | * FFFE:****:****:**** |
| 131 | * Integer: FFFF:0000:IIII:IIII |
| 132 | * |
| 133 | * 32-bit signed integers are marked with the 16-bit tag 0xFFFF. The tag 0x0000 |
| 134 | * denotes a pointer, or another form of tagged immediate. Boolean, null and undefined |
| 135 | * values are encoded in the same manner as the default format. |
| 136 | */ |
| 137 | |
| 138 | class JSImmediatecxx . . $ QTJSC/JSImmediate# { |
| 139 | #ifdef QT_BUILD_SCRIPT_LIBcxx . . $ `<built-in>:481:9`! |
| 140 | public: // Qt Script needs isImmediate() and from() functions |
| 141 | #else |
| 142 | private: |
| 143 | #endif |
| 144 | friend class JITcxx . . $ QTJSC/JIT#; |
| 145 | friend class JSValuecxx . . $ QTJSC/JSValue#; |
| 146 | friend class JSFastMathcxx . . $ QTJSC/JSFastMath#; |
| 147 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(88e66938454912cb).(ExecStatecxx . . $ QTJSC/ExecState#* exec, double d); |
| 148 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(fac52a0ef4962231).(ExecStatecxx . . $ QTJSC/ExecState#*, char i); |
| 149 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(882f7eb1ab0aa116).(ExecStatecxx . . $ QTJSC/ExecState#*, unsigned char i); |
| 150 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(8ed3816d835ea7ed).(ExecStatecxx . . $ QTJSC/ExecState#*, short i); |
| 151 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(53408485f3468e44).(ExecStatecxx . . $ QTJSC/ExecState#*, unsigned short i); |
| 152 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(1201607e1a2ad33d).(ExecStatecxx . . $ QTJSC/ExecState#* exec, int i); |
| 153 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(bf7e02f8c8245e31).(ExecStatecxx . . $ QTJSC/ExecState#* exec, unsigned i); |
| 154 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(14e307958da6fa2c).(ExecStatecxx . . $ QTJSC/ExecState#* exec, long i); |
| 155 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(bdb4a03c934d5200).(ExecStatecxx . . $ QTJSC/ExecState#* exec, unsigned long i); |
| 156 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(690f89657b3ee448).(ExecStatecxx . . $ QTJSC/ExecState#* exec, long long i); |
| 157 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(4649552d112e8450).(ExecStatecxx . . $ QTJSC/ExecState#* exec, unsigned long long i); |
| 158 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(cd43e1c860546154).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, double d); |
| 159 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(b4a32d8fe34cfa9e).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, short i); |
| 160 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(1d6fedb922230a3b).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, unsigned short i); |
| 161 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(62a703931ed784f0).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, int i); |
| 162 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(986151d6ab13d041).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, unsigned i); |
| 163 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(612886b5f2562e44).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, long i); |
| 164 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(f61aa0fd47001ccc).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, unsigned long i); |
| 165 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(3c297d1b085c4217).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, long long i); |
| 166 | friend JSValuecxx . . $ QTJSC/JSValue# jsNumbercxx . . $ QTJSC/jsNumber(83c5b9394e5d9ecb).(JSGlobalDatacxx . . $ QTJSC/JSGlobalData#* globalData, unsigned long long i); |
| 167 | |
| 168 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 169 | // If all bits in the mask are set, this indicates an integer number, |
| 170 | // if any but not all are set this value is a double precision number. |
| 171 | static const intptr_tcxx . . $ intptr_t# TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber. = 0xffff000000000000ll; |
| 172 | // This value is 2^48, used to encode doubles such that the encoded value will begin |
| 173 | // with a 16-bit pattern within the range 0x0001..0xFFFE. |
| 174 | static const intptr_tcxx . . $ intptr_t# DoubleEncodeOffsetcxx . . $ QTJSC/JSImmediate#DoubleEncodeOffset. = 0x1000000000000ll; |
| 175 | #else |
| 176 | static const intptr_t TagTypeNumber = 0x1; // bottom bit set indicates integer, this dominates the following bit |
| 177 | #endif |
| 178 | static const intptr_tcxx . . $ intptr_t# TagBitTypeOthercxx . . $ QTJSC/JSImmediate#TagBitTypeOther. = 0x2; // second bit set indicates immediate other than an integer |
| 179 | static const intptr_tcxx . . $ intptr_t# TagMaskcxx . . $ QTJSC/JSImmediate#TagMask. = TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber. | TagBitTypeOthercxx . . $ QTJSC/JSImmediate#TagBitTypeOther.; |
| 180 | |
| 181 | static const intptr_tcxx . . $ intptr_t# ExtendedTagMaskcxx . . $ QTJSC/JSImmediate#ExtendedTagMask. = 0xC; // extended tag holds a further two bits |
| 182 | static const intptr_tcxx . . $ intptr_t# ExtendedTagBitBoolcxx . . $ QTJSC/JSImmediate#ExtendedTagBitBool. = 0x4; |
| 183 | static const intptr_tcxx . . $ intptr_t# ExtendedTagBitUndefinedcxx . . $ QTJSC/JSImmediate#ExtendedTagBitUndefined. = 0x8; |
| 184 | |
| 185 | static const intptr_tcxx . . $ intptr_t# FullTagTypeMaskcxx . . $ QTJSC/JSImmediate#FullTagTypeMask. = TagMaskcxx . . $ QTJSC/JSImmediate#TagMask. | ExtendedTagMaskcxx . . $ QTJSC/JSImmediate#ExtendedTagMask.; |
| 186 | static const intptr_tcxx . . $ intptr_t# FullTagTypeBoolcxx . . $ QTJSC/JSImmediate#FullTagTypeBool. = TagBitTypeOthercxx . . $ QTJSC/JSImmediate#TagBitTypeOther. | ExtendedTagBitBoolcxx . . $ QTJSC/JSImmediate#ExtendedTagBitBool.; |
| 187 | static const intptr_tcxx . . $ intptr_t# FullTagTypeUndefinedcxx . . $ QTJSC/JSImmediate#FullTagTypeUndefined. = TagBitTypeOthercxx . . $ QTJSC/JSImmediate#TagBitTypeOther. | ExtendedTagBitUndefinedcxx . . $ QTJSC/JSImmediate#ExtendedTagBitUndefined.; |
| 188 | static const intptr_tcxx . . $ intptr_t# FullTagTypeNullcxx . . $ QTJSC/JSImmediate#FullTagTypeNull. = TagBitTypeOthercxx . . $ QTJSC/JSImmediate#TagBitTypeOther.; |
| 189 | |
| 190 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 191 | static const int32_tcxx . . $ int32_t# IntegerPayloadShiftcxx . . $ QTJSC/JSImmediate#IntegerPayloadShift. = 0; |
| 192 | #else |
| 193 | static const int32_t IntegerPayloadShift = 1; |
| 194 | #endif |
| 195 | static const int32_tcxx . . $ int32_t# ExtendedPayloadShiftcxx . . $ QTJSC/JSImmediate#ExtendedPayloadShift. = 4; |
| 196 | |
| 197 | static const intptr_tcxx . . $ intptr_t# ExtendedPayloadBitBoolValuecxx . . $ QTJSC/JSImmediate#ExtendedPayloadBitBoolValue. = 1 << ExtendedPayloadShiftcxx . . $ QTJSC/JSImmediate#ExtendedPayloadShift.; |
| 198 | |
| 199 | static const int32_tcxx . . $ int32_t# signBitcxx . . $ QTJSC/JSImmediate#signBit. = 0x80000000; |
| 200 | |
| 201 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isImmediatecxx . . $ QTJSC/JSImmediate#isImmediate(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 202 | { |
| 203 | return rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & TagMaskcxx . . $ QTJSC/JSImmediate#TagMask.; |
| 204 | } |
| 205 | |
| 206 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isNumbercxx . . $ QTJSC/JSImmediate#isNumber(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 207 | { |
| 208 | return rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.; |
| 209 | } |
| 210 | |
| 211 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isIntegerNumbercxx . . $ QTJSC/JSImmediate#isIntegerNumber(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 212 | { |
| 213 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 214 | return (rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.) == TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.; |
| 215 | #else |
| 216 | return isNumber(v); |
| 217 | #endif |
| 218 | } |
| 219 | |
| 220 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 221 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isDoublecxx . . $ QTJSC/JSImmediate#isDouble(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 222 | { |
| 223 | return isNumbercxx . . $ QTJSC/JSImmediate#isNumber(a6f765323ba532ee).(v) && !isIntegerNumbercxx . . $ QTJSC/JSImmediate#isIntegerNumber(a6f765323ba532ee).(v); |
| 224 | } |
| 225 | #endif |
| 226 | |
| 227 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isPositiveIntegerNumbercxx . . $ QTJSC/JSImmediate#isPositiveIntegerNumber(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 228 | { |
| 229 | // A single mask to check for the sign bit and the number tag all at once. |
| 230 | return (rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & (signBitcxx . . $ QTJSC/JSImmediate#signBit. | TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.)) == TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.; |
| 231 | } |
| 232 | |
| 233 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isBooleancxx . . $ QTJSC/JSImmediate#isBoolean(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 234 | { |
| 235 | return (rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & FullTagTypeMaskcxx . . $ QTJSC/JSImmediate#FullTagTypeMask.) == FullTagTypeBoolcxx . . $ QTJSC/JSImmediate#FullTagTypeBool.; |
| 236 | } |
| 237 | |
| 238 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isUndefinedOrNullcxx . . $ QTJSC/JSImmediate#isUndefinedOrNull(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 239 | { |
| 240 | // Undefined and null share the same value, bar the 'undefined' bit in the extended tag. |
| 241 | return (rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & ~ExtendedTagBitUndefinedcxx . . $ QTJSC/JSImmediate#ExtendedTagBitUndefined.) == FullTagTypeNullcxx . . $ QTJSC/JSImmediate#FullTagTypeNull.; |
| 242 | } |
| 243 | |
| 244 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(e0395d9cc24f05a8).(char); |
| 245 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(2970f2487aab6d19).(signed char); |
| 246 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(40f1e8f801f1768b).(unsigned char); |
| 247 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(1b80fab67474f4a4).(short); |
| 248 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(3e49540df8297168).(unsigned short); |
| 249 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(62cd4205711aa0e8).(int); |
| 250 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(65de979777e37a3b).(unsigned); |
| 251 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(48382e65e89b9a3).(long); |
| 252 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(ec27527144380d24).(unsigned long); |
| 253 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(a51f60fba5b2963d).(long long); |
| 254 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(8f928b50654554d8).(unsigned long long); |
| 255 | static JSValuecxx . . $ QTJSC/JSValue# fromcxx . . $ QTJSC/JSImmediate#from(2518cc0365fa71e2).(double); |
| 256 | |
| 257 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool isEitherImmediatecxx . . $ QTJSC/JSImmediate#isEitherImmediate(3e6f526f6125e4e1).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 258 | { |
| 259 | return (rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) | rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v2)) & TagMaskcxx . . $ QTJSC/JSImmediate#TagMask.; |
| 260 | } |
| 261 | |
| 262 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool areBothImmediatecxx . . $ QTJSC/JSImmediate#areBothImmediate(3e6f526f6125e4e1).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 263 | { |
| 264 | return isImmediatecxx . . $ QTJSC/JSImmediate#isImmediate(a6f765323ba532ee).(v1) & isImmediatecxx . . $ QTJSC/JSImmediate#isImmediate(a6f765323ba532ee).(v2); |
| 265 | } |
| 266 | |
| 267 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool areBothImmediateIntegerNumberscxx . . $ QTJSC/JSImmediate#areBothImmediateIntegerNumbers(3e6f526f6125e4e1).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 268 | { |
| 269 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 270 | return (rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) & rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v2) & TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.) == TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.; |
| 271 | #else |
| 272 | return rawValue(v1) & rawValue(v2) & TagTypeNumber; |
| 273 | #endif |
| 274 | } |
| 275 | |
| 276 | static double toDoublecxx . . $ QTJSC/JSImmediate#toDouble(4dcc3f5c9d69f4c5).(JSValuecxx . . $ QTJSC/JSValue#); |
| 277 | static bool toBooleancxx . . $ QTJSC/JSImmediate#toBoolean(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue#); |
| 278 | |
| 279 | static bool getUInt32cxx . . $ QTJSC/JSImmediate#getUInt32(1d8491c85861700e).(JSValuecxx . . $ QTJSC/JSValue#, uint32_tcxx . . $ uint32_t#&); |
| 280 | static bool getTruncatedInt32cxx . . $ QTJSC/JSImmediate#getTruncatedInt32(b9efe7b44e1ee653).(JSValuecxx . . $ QTJSC/JSValue#, int32_tcxx . . $ int32_t#&); |
| 281 | static bool getTruncatedUInt32cxx . . $ QTJSC/JSImmediate#getTruncatedUInt32(1d8491c85861700e).(JSValuecxx . . $ QTJSC/JSValue#, uint32_tcxx . . $ uint32_t#&); |
| 282 | |
| 283 | static int32_tcxx . . $ int32_t# getTruncatedInt32cxx . . $ QTJSC/JSImmediate#getTruncatedInt32(189d27cfa844892c).(JSValuecxx . . $ QTJSC/JSValue#); |
| 284 | static uint32_tcxx . . $ uint32_t# getTruncatedUInt32cxx . . $ QTJSC/JSImmediate#getTruncatedUInt32(f8626af870e21f8f).(JSValuecxx . . $ QTJSC/JSValue#); |
| 285 | |
| 286 | static JSValuecxx . . $ QTJSC/JSValue# trueImmediatecxx . . $ QTJSC/JSImmediate#trueImmediate(ad9afe69d7bf6378).(); |
| 287 | static JSValuecxx . . $ QTJSC/JSValue# falseImmediatecxx . . $ QTJSC/JSImmediate#falseImmediate(ad9afe69d7bf6378).(); |
| 288 | static JSValuecxx . . $ QTJSC/JSValue# undefinedImmediatecxx . . $ QTJSC/JSImmediate#undefinedImmediate(ad9afe69d7bf6378).(); |
| 289 | static JSValuecxx . . $ QTJSC/JSValue# nullImmediatecxx . . $ QTJSC/JSImmediate#nullImmediate(ad9afe69d7bf6378).(); |
| 290 | static JSValuecxx . . $ QTJSC/JSValue# zeroImmediatecxx . . $ QTJSC/JSImmediate#zeroImmediate(ad9afe69d7bf6378).(); |
| 291 | static JSValuecxx . . $ QTJSC/JSValue# oneImmediatecxx . . $ QTJSC/JSImmediate#oneImmediate(ad9afe69d7bf6378).(); |
| 292 | |
| 293 | private: |
| 294 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 295 | static const int minImmediateIntcxx . . $ QTJSC/JSImmediate#minImmediateInt. = ((-INT_MAXcxx . . $ `<external>/67164224788392828/limits.h:120:9`!) - 1); |
| 296 | static const int maxImmediateIntcxx . . $ QTJSC/JSImmediate#maxImmediateInt. = INT_MAXcxx . . $ `<external>/67164224788392828/limits.h:120:9`!; |
| 297 | #else |
| 298 | static const int minImmediateInt = ((-INT_MAX) - 1) >> IntegerPayloadShift; |
| 299 | static const int maxImmediateInt = INT_MAX >> IntegerPayloadShift; |
| 300 | #endif |
| 301 | static const unsigned maxImmediateUIntcxx . . $ QTJSC/JSImmediate#maxImmediateUInt. = maxImmediateIntcxx . . $ QTJSC/JSImmediate#maxImmediateInt.; |
| 302 | |
| 303 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(intptr_tcxx . . $ intptr_t# integer) |
| 304 | { |
| 305 | return JSValuecxx . . $ QTJSC/JSValue#::makeImmediatecxx . . $ QTJSC/JSValue#makeImmediate(48382e65e89b9a3).(integer); |
| 306 | } |
| 307 | |
| 308 | // With USE(JSVALUE64) we want the argument to be zero extended, so the |
| 309 | // integer doesn't interfere with the tag bits in the upper word. In the default encoding, |
| 310 | // if intptr_t id larger then int32_t we sign extend the value through the upper word. |
| 311 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 312 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(uint32_tcxx . . $ uint32_t# value) |
| 313 | #else |
| 314 | static ALWAYS_INLINE JSValue makeInt(int32_t value) |
| 315 | #endif |
| 316 | { |
| 317 | return makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).((static_cast<intptr_tcxx . . $ intptr_t#>(value) << IntegerPayloadShiftcxx . . $ QTJSC/JSImmediate#IntegerPayloadShift.) | TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.); |
| 318 | } |
| 319 | |
| 320 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 321 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# makeDoublecxx . . $ QTJSC/JSImmediate#makeDouble(2518cc0365fa71e2).(double value) |
| 322 | { |
| 323 | return makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(reinterpretDoubleToIntptrcxx . . $ QTJSC/reinterpretDoubleToIntptr(a6e4a4c8b00c35a3).(value) + DoubleEncodeOffsetcxx . . $ QTJSC/JSImmediate#DoubleEncodeOffset.); |
| 324 | } |
| 325 | #endif |
| 326 | |
| 327 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# makeBoolcxx . . $ QTJSC/JSImmediate#makeBool(b805946c4147dfe1).(bool b) |
| 328 | { |
| 329 | return makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).((static_cast<intptr_tcxx . . $ intptr_t#>(b) << ExtendedPayloadShiftcxx . . $ QTJSC/JSImmediate#ExtendedPayloadShift.) | FullTagTypeBoolcxx . . $ QTJSC/JSImmediate#FullTagTypeBool.); |
| 330 | } |
| 331 | |
| 332 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# makeUndefinedcxx . . $ QTJSC/JSImmediate#makeUndefined(ad9afe69d7bf6378).() |
| 333 | { |
| 334 | return makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(FullTagTypeUndefinedcxx . . $ QTJSC/JSImmediate#FullTagTypeUndefined.); |
| 335 | } |
| 336 | |
| 337 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# makeNullcxx . . $ QTJSC/JSImmediate#makeNull(ad9afe69d7bf6378).() |
| 338 | { |
| 339 | return makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(FullTagTypeNullcxx . . $ QTJSC/JSImmediate#FullTagTypeNull.); |
| 340 | } |
| 341 | |
| 342 | template<typename T> |
| 343 | static JSValuecxx . . $ QTJSC/JSValue# fromNumberOutsideIntegerRangecxx . . $ QTJSC/JSImmediate#fromNumberOutsideIntegerRange(c1bdc4891e834261).(T); |
| 344 | |
| 345 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 346 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! double doubleValuecxx . . $ QTJSC/JSImmediate#doubleValue(4dcc3f5c9d69f4c5).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 347 | { |
| 348 | return reinterpretIntptrToDoublecxx . . $ QTJSC/reinterpretIntptrToDouble(66f4a6ec74012662).(rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) - DoubleEncodeOffsetcxx . . $ QTJSC/JSImmediate#DoubleEncodeOffset.); |
| 349 | } |
| 350 | #endif |
| 351 | |
| 352 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! int32_tcxx . . $ int32_t# intValuecxx . . $ QTJSC/JSImmediate#intValue(189d27cfa844892c).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 353 | { |
| 354 | return static_cast<int32_tcxx . . $ int32_t#>(rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) >> IntegerPayloadShiftcxx . . $ QTJSC/JSImmediate#IntegerPayloadShift.); |
| 355 | } |
| 356 | |
| 357 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! uint32_tcxx . . $ uint32_t# uintValuecxx . . $ QTJSC/JSImmediate#uintValue(f8626af870e21f8f).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 358 | { |
| 359 | return static_cast<uint32_tcxx . . $ uint32_t#>(rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) >> IntegerPayloadShiftcxx . . $ QTJSC/JSImmediate#IntegerPayloadShift.); |
| 360 | } |
| 361 | |
| 362 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool boolValuecxx . . $ QTJSC/JSImmediate#boolValue(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 363 | { |
| 364 | return rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & ExtendedPayloadBitBoolValuecxx . . $ QTJSC/JSImmediate#ExtendedPayloadBitBoolValue.; |
| 365 | } |
| 366 | |
| 367 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! intptr_tcxx . . $ intptr_t# rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 368 | { |
| 369 | return v.immediateValuecxx . . $ QTJSC/JSValue#immediateValue(da6335ded91d79c2).(); |
| 370 | } |
| 371 | }; |
| 372 | |
| 373 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::trueImmediatecxx . . $ QTJSC/JSImmediate#trueImmediate(ad9afe69d7bf6378).() { return makeBoolcxx . . $ QTJSC/JSImmediate#makeBool(b805946c4147dfe1).(true); } |
| 374 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::falseImmediatecxx . . $ QTJSC/JSImmediate#falseImmediate(ad9afe69d7bf6378).() { return makeBoolcxx . . $ QTJSC/JSImmediate#makeBool(b805946c4147dfe1).(false); } |
| 375 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::undefinedImmediatecxx . . $ QTJSC/JSImmediate#undefinedImmediate(ad9afe69d7bf6378).() { return makeUndefinedcxx . . $ QTJSC/JSImmediate#makeUndefined(ad9afe69d7bf6378).(); } |
| 376 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::nullImmediatecxx . . $ QTJSC/JSImmediate#nullImmediate(ad9afe69d7bf6378).() { return makeNullcxx . . $ QTJSC/JSImmediate#makeNull(ad9afe69d7bf6378).(); } |
| 377 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::zeroImmediatecxx . . $ QTJSC/JSImmediate#zeroImmediate(ad9afe69d7bf6378).() { return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(0); } |
| 378 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::oneImmediatecxx . . $ QTJSC/JSImmediate#oneImmediate(ad9afe69d7bf6378).() { return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(1); } |
| 379 | |
| 380 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 381 | inline bool doubleToBooleancxx . . $ QTJSC/doubleToBoolean(f8197d536af80c96).(double value) |
| 382 | { |
| 383 | return value < 0.0 || value > 0.0; |
| 384 | } |
| 385 | |
| 386 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool JSImmediatecxx . . $ QTJSC/JSImmediate#::toBooleancxx . . $ QTJSC/JSImmediate#toBoolean(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 387 | { |
| 388 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isImmediate(v)); |
| 389 | return isNumbercxx . . $ QTJSC/JSImmediate#isNumber(a6f765323ba532ee).(v) ? isIntegerNumbercxx . . $ QTJSC/JSImmediate#isIntegerNumber(a6f765323ba532ee).(v) ? v !=cxx . . $ QTJSC/JSValue#`operator!=`(b7c0ea8ebb120a64). zeroImmediatecxx . . $ QTJSC/JSImmediate#zeroImmediate(ad9afe69d7bf6378).() |
| 390 | : doubleToBooleancxx . . $ QTJSC/doubleToBoolean(f8197d536af80c96).(doubleValuecxx . . $ QTJSC/JSImmediate#doubleValue(4dcc3f5c9d69f4c5).(v)) : v ==cxx . . $ QTJSC/JSValue#`operator==`(b7c0ea8ebb120a64). trueImmediatecxx . . $ QTJSC/JSImmediate#trueImmediate(ad9afe69d7bf6378).(); |
| 391 | } |
| 392 | #else |
| 393 | ALWAYS_INLINE bool JSImmediate::toBoolean(JSValue v) |
| 394 | { |
| 395 | ASSERT(isImmediate(v)); |
| 396 | return isIntegerNumber(v) ? v != zeroImmediate() : v == trueImmediate(); |
| 397 | } |
| 398 | #endif |
| 399 | |
| 400 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! uint32_tcxx . . $ uint32_t# JSImmediatecxx . . $ QTJSC/JSImmediate#::getTruncatedUInt32cxx . . $ QTJSC/JSImmediate#getTruncatedUInt32(f8626af870e21f8f).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 401 | { |
| 402 | // FIXME: should probably be asserting isPositiveIntegerNumber here. |
| 403 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isIntegerNumber(v)); |
| 404 | return intValuecxx . . $ QTJSC/JSImmediate#intValue(189d27cfa844892c).(v); |
| 405 | } |
| 406 | |
| 407 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 408 | template<typename T> |
| 409 | inline JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromNumberOutsideIntegerRangecxx . . $ QTJSC/JSImmediate#fromNumberOutsideIntegerRange(c1bdc4891e834261).(T value) |
| 410 | { |
| 411 | return makeDoublecxx . . $ QTJSC/JSImmediate#makeDouble(2518cc0365fa71e2).(static_cast<double>(value)); |
| 412 | } |
| 413 | #else |
| 414 | template<typename T> |
| 415 | inline JSValue JSImmediate::fromNumberOutsideIntegerRange(T) |
| 416 | { |
| 417 | return JSValue(); |
| 418 | } |
| 419 | #endif |
| 420 | |
| 421 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(e0395d9cc24f05a8).(char i) |
| 422 | { |
| 423 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 424 | } |
| 425 | |
| 426 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(2970f2487aab6d19).(signed char i) |
| 427 | { |
| 428 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 429 | } |
| 430 | |
| 431 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(40f1e8f801f1768b).(unsigned char i) |
| 432 | { |
| 433 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 434 | } |
| 435 | |
| 436 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(1b80fab67474f4a4).(short i) |
| 437 | { |
| 438 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 439 | } |
| 440 | |
| 441 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(3e49540df8297168).(unsigned short i) |
| 442 | { |
| 443 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 444 | } |
| 445 | |
| 446 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(62cd4205711aa0e8).(int i) |
| 447 | { |
| 448 | #if !USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 449 | if ((i < minImmediateInt) | (i > maxImmediateInt)) |
| 450 | return fromNumberOutsideIntegerRange(i); |
| 451 | #endif |
| 452 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 453 | } |
| 454 | |
| 455 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(65de979777e37a3b).(unsigned i) |
| 456 | { |
| 457 | if (i > maxImmediateUIntcxx . . $ QTJSC/JSImmediate#maxImmediateUInt.) |
| 458 | return fromNumberOutsideIntegerRangecxx . . $ QTJSC/JSImmediate#fromNumberOutsideIntegerRange(c1bdc4891e834261).(i); |
| 459 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 460 | } |
| 461 | |
| 462 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(48382e65e89b9a3).(long i) |
| 463 | { |
| 464 | if ((i < minImmediateIntcxx . . $ QTJSC/JSImmediate#minImmediateInt.) | (i > maxImmediateIntcxx . . $ QTJSC/JSImmediate#maxImmediateInt.)) |
| 465 | return fromNumberOutsideIntegerRangecxx . . $ QTJSC/JSImmediate#fromNumberOutsideIntegerRange(c1bdc4891e834261).(i); |
| 466 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 467 | } |
| 468 | |
| 469 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(ec27527144380d24).(unsigned long i) |
| 470 | { |
| 471 | if (i > maxImmediateUIntcxx . . $ QTJSC/JSImmediate#maxImmediateUInt.) |
| 472 | return fromNumberOutsideIntegerRangecxx . . $ QTJSC/JSImmediate#fromNumberOutsideIntegerRange(c1bdc4891e834261).(i); |
| 473 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(i); |
| 474 | } |
| 475 | |
| 476 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(a51f60fba5b2963d).(long long i) |
| 477 | { |
| 478 | if ((i < minImmediateIntcxx . . $ QTJSC/JSImmediate#minImmediateInt.) | (i > maxImmediateIntcxx . . $ QTJSC/JSImmediate#maxImmediateInt.)) |
| 479 | return JSValuecxx . . $ QTJSC/JSValue#JSValue(49f6e7a06ebc5aa8).(); |
| 480 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(static_cast<intptr_tcxx . . $ intptr_t#>(i)); |
| 481 | } |
| 482 | |
| 483 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(8f928b50654554d8).(unsigned long long i) |
| 484 | { |
| 485 | if (i > maxImmediateUIntcxx . . $ QTJSC/JSImmediate#maxImmediateUInt.) |
| 486 | return fromNumberOutsideIntegerRangecxx . . $ QTJSC/JSImmediate#fromNumberOutsideIntegerRange(c1bdc4891e834261).(i); |
| 487 | return makeIntcxx . . $ QTJSC/JSImmediate#makeInt(65de979777e37a3b).(static_cast<intptr_tcxx . . $ intptr_t#>(i)); |
| 488 | } |
| 489 | |
| 490 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# JSImmediatecxx . . $ QTJSC/JSImmediate#::fromcxx . . $ QTJSC/JSImmediate#from(2518cc0365fa71e2).(double d) |
| 491 | { |
| 492 | const int intVal = static_cast<int>(d); |
| 493 | |
| 494 | // Check for data loss from conversion to int. |
| 495 | if (intVal != d || (!intVal && stdcxx . . $ std/::signbit(d))) |
| 496 | return fromNumberOutsideIntegerRangecxx . . $ QTJSC/JSImmediate#fromNumberOutsideIntegerRange(c1bdc4891e834261).(d); |
| 497 | |
| 498 | return fromcxx . . $ QTJSC/JSImmediate#from(62cd4205711aa0e8).(intVal); |
| 499 | } |
| 500 | |
| 501 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! int32_tcxx . . $ int32_t# JSImmediatecxx . . $ QTJSC/JSImmediate#::getTruncatedInt32cxx . . $ QTJSC/JSImmediate#getTruncatedInt32(189d27cfa844892c).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 502 | { |
| 503 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isIntegerNumber(v)); |
| 504 | return intValuecxx . . $ QTJSC/JSImmediate#intValue(189d27cfa844892c).(v); |
| 505 | } |
| 506 | |
| 507 | ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! double JSImmediatecxx . . $ QTJSC/JSImmediate#::toDoublecxx . . $ QTJSC/JSImmediate#toDouble(4dcc3f5c9d69f4c5).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 508 | { |
| 509 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isImmediate(v)); |
| 510 | |
| 511 | if (isIntegerNumbercxx . . $ QTJSC/JSImmediate#isIntegerNumber(a6f765323ba532ee).(v)) |
| 512 | return intValuecxx . . $ QTJSC/JSImmediate#intValue(189d27cfa844892c).(v); |
| 513 | |
| 514 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 515 | if (isNumbercxx . . $ QTJSC/JSImmediate#isNumber(a6f765323ba532ee).(v)) { |
| 516 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isDouble(v)); |
| 517 | return doubleValuecxx . . $ QTJSC/JSImmediate#doubleValue(4dcc3f5c9d69f4c5).(v); |
| 518 | } |
| 519 | #else |
| 520 | ASSERT(!isNumber(v)); |
| 521 | #endif |
| 522 | |
| 523 | if (rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) == FullTagTypeUndefinedcxx . . $ QTJSC/JSImmediate#FullTagTypeUndefined.) |
| 524 | return nonInlineNaNcxx . . $ QTJSC/nonInlineNaN(31fa7155c10fdd13).(); |
| 525 | |
| 526 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(JSImmediate::isBoolean(v) || (v == JSImmediate::nullImmediate())); |
| 527 | return rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) >> ExtendedPayloadShiftcxx . . $ QTJSC/JSImmediate#ExtendedPayloadShift.; |
| 528 | } |
| 529 | |
| 530 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool JSImmediatecxx . . $ QTJSC/JSImmediate#::getUInt32cxx . . $ QTJSC/JSImmediate#getUInt32(1d8491c85861700e).(JSValuecxx . . $ QTJSC/JSValue# v, uint32_tcxx . . $ uint32_t#& i) |
| 531 | { |
| 532 | i = uintValuecxx . . $ QTJSC/JSImmediate#uintValue(f8626af870e21f8f).(v); |
| 533 | return isPositiveIntegerNumbercxx . . $ QTJSC/JSImmediate#isPositiveIntegerNumber(a6f765323ba532ee).(v); |
| 534 | } |
| 535 | |
| 536 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool JSImmediatecxx . . $ QTJSC/JSImmediate#::getTruncatedInt32cxx . . $ QTJSC/JSImmediate#getTruncatedInt32(b9efe7b44e1ee653).(JSValuecxx . . $ QTJSC/JSValue# v, int32_tcxx . . $ int32_t#& i) |
| 537 | { |
| 538 | i = intValuecxx . . $ QTJSC/JSImmediate#intValue(189d27cfa844892c).(v); |
| 539 | return isIntegerNumbercxx . . $ QTJSC/JSImmediate#isIntegerNumber(a6f765323ba532ee).(v); |
| 540 | } |
| 541 | |
| 542 | ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool JSImmediatecxx . . $ QTJSC/JSImmediate#::getTruncatedUInt32cxx . . $ QTJSC/JSImmediate#getTruncatedUInt32(1d8491c85861700e).(JSValuecxx . . $ QTJSC/JSValue# v, uint32_tcxx . . $ uint32_t#& i) |
| 543 | { |
| 544 | return getUInt32cxx . . $ QTJSC/JSImmediate#getUInt32(1d8491c85861700e).(v, i); |
| 545 | } |
| 546 | |
| 547 | inline JSValuecxx . . $ QTJSC/JSValue#::JSValuecxx . . $ QTJSC/JSValue#JSValue(37ab548c3cdfc9e9).(JSNullTagcxx . . $ QTJSC/JSValue#JSNullTag#) |
| 548 | { |
| 549 | *this =cxx . . $ QTJSC/JSValue#`operator=`(5dfb8b6405afb35f). JSImmediatecxx . . $ QTJSC/JSImmediate#::nullImmediatecxx . . $ QTJSC/JSImmediate#nullImmediate(ad9afe69d7bf6378).(); |
| 550 | } |
| 551 | |
| 552 | inline JSValuecxx . . $ QTJSC/JSValue#::JSValuecxx . . $ QTJSC/JSValue#JSValue(5f552fe036637431).(JSUndefinedTagcxx . . $ QTJSC/JSValue#JSUndefinedTag#) |
| 553 | { |
| 554 | *this =cxx . . $ QTJSC/JSValue#`operator=`(5dfb8b6405afb35f). JSImmediatecxx . . $ QTJSC/JSImmediate#::undefinedImmediatecxx . . $ QTJSC/JSImmediate#undefinedImmediate(ad9afe69d7bf6378).(); |
| 555 | } |
| 556 | |
| 557 | inline JSValuecxx . . $ QTJSC/JSValue#::JSValuecxx . . $ QTJSC/JSValue#JSValue(5bd6d0ca826b6bde).(JSTrueTagcxx . . $ QTJSC/JSValue#JSTrueTag#) |
| 558 | { |
| 559 | *this =cxx . . $ QTJSC/JSValue#`operator=`(5dfb8b6405afb35f). JSImmediatecxx . . $ QTJSC/JSImmediate#::trueImmediatecxx . . $ QTJSC/JSImmediate#trueImmediate(ad9afe69d7bf6378).(); |
| 560 | } |
| 561 | |
| 562 | inline JSValuecxx . . $ QTJSC/JSValue#::JSValuecxx . . $ QTJSC/JSValue#JSValue(8b2a8a8ac6f8a35a).(JSFalseTagcxx . . $ QTJSC/JSValue#JSFalseTag#) |
| 563 | { |
| 564 | *this =cxx . . $ QTJSC/JSValue#`operator=`(5dfb8b6405afb35f). JSImmediatecxx . . $ QTJSC/JSImmediate#::falseImmediatecxx . . $ QTJSC/JSImmediate#falseImmediate(ad9afe69d7bf6378).(); |
| 565 | } |
| 566 | |
| 567 | inline bool JSValuecxx . . $ QTJSC/JSValue#::isUndefinedOrNullcxx . . $ QTJSC/JSValue#isUndefinedOrNull(50ce9a9e25b4a850).() const |
| 568 | { |
| 569 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::isUndefinedOrNullcxx . . $ QTJSC/JSImmediate#isUndefinedOrNull(a6f765323ba532ee).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 570 | } |
| 571 | |
| 572 | inline bool JSValuecxx . . $ QTJSC/JSValue#::isBooleancxx . . $ QTJSC/JSValue#isBoolean(50ce9a9e25b4a850).() const |
| 573 | { |
| 574 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::isBooleancxx . . $ QTJSC/JSImmediate#isBoolean(a6f765323ba532ee).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 575 | } |
| 576 | |
| 577 | inline bool JSValuecxx . . $ QTJSC/JSValue#::isTruecxx . . $ QTJSC/JSValue#isTrue(50ce9a9e25b4a850).() const |
| 578 | { |
| 579 | return asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).() ==cxx . . $ QTJSC/JSValue#`operator==`(b7c0ea8ebb120a64). JSImmediatecxx . . $ QTJSC/JSImmediate#::trueImmediatecxx . . $ QTJSC/JSImmediate#trueImmediate(ad9afe69d7bf6378).(); |
| 580 | } |
| 581 | |
| 582 | inline bool JSValuecxx . . $ QTJSC/JSValue#::isFalsecxx . . $ QTJSC/JSValue#isFalse(50ce9a9e25b4a850).() const |
| 583 | { |
| 584 | return asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).() ==cxx . . $ QTJSC/JSValue#`operator==`(b7c0ea8ebb120a64). JSImmediatecxx . . $ QTJSC/JSImmediate#::falseImmediatecxx . . $ QTJSC/JSImmediate#falseImmediate(ad9afe69d7bf6378).(); |
| 585 | } |
| 586 | |
| 587 | inline bool JSValuecxx . . $ QTJSC/JSValue#::getBooleancxx . . $ QTJSC/JSValue#getBoolean(dadd4ad61e27fbc).(bool& v) const |
| 588 | { |
| 589 | if (JSImmediatecxx . . $ QTJSC/JSImmediate#::isBooleancxx . . $ QTJSC/JSImmediate#isBoolean(a6f765323ba532ee).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).())) { |
| 590 | v = JSImmediatecxx . . $ QTJSC/JSImmediate#::toBooleancxx . . $ QTJSC/JSImmediate#toBoolean(a6f765323ba532ee).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 591 | return true; |
| 592 | } |
| 593 | |
| 594 | return false; |
| 595 | } |
| 596 | |
| 597 | inline bool JSValuecxx . . $ QTJSC/JSValue#::getBooleancxx . . $ QTJSC/JSValue#getBoolean(50ce9a9e25b4a850).() const |
| 598 | { |
| 599 | return asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).() ==cxx . . $ QTJSC/JSValue#`operator==`(b7c0ea8ebb120a64). jsBooleancxx . . $ QTJSC/jsBoolean(b805946c4147dfe1).(true); |
| 600 | } |
| 601 | |
| 602 | inline bool JSValuecxx . . $ QTJSC/JSValue#::isCellcxx . . $ QTJSC/JSValue#isCell(50ce9a9e25b4a850).() const |
| 603 | { |
| 604 | return !JSImmediatecxx . . $ QTJSC/JSImmediate#::isImmediatecxx . . $ QTJSC/JSImmediate#isImmediate(a6f765323ba532ee).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 605 | } |
| 606 | |
| 607 | inline bool JSValuecxx . . $ QTJSC/JSValue#::isInt32cxx . . $ QTJSC/JSValue#isInt32(50ce9a9e25b4a850).() const |
| 608 | { |
| 609 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::isIntegerNumbercxx . . $ QTJSC/JSImmediate#isIntegerNumber(a6f765323ba532ee).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 610 | } |
| 611 | |
| 612 | inline int32_tcxx . . $ int32_t# JSValuecxx . . $ QTJSC/JSValue#::asInt32cxx . . $ QTJSC/JSValue#asInt32(455f465bc33b4cdf).() const |
| 613 | { |
| 614 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isInt32()); |
| 615 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::getTruncatedInt32cxx . . $ QTJSC/JSImmediate#getTruncatedInt32(189d27cfa844892c).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 616 | } |
| 617 | |
| 618 | inline bool JSValuecxx . . $ QTJSC/JSValue#::isUInt32cxx . . $ QTJSC/JSValue#isUInt32(50ce9a9e25b4a850).() const |
| 619 | { |
| 620 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::isPositiveIntegerNumbercxx . . $ QTJSC/JSImmediate#isPositiveIntegerNumber(a6f765323ba532ee).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 621 | } |
| 622 | |
| 623 | inline uint32_tcxx . . $ uint32_t# JSValuecxx . . $ QTJSC/JSValue#::asUInt32cxx . . $ QTJSC/JSValue#asUInt32(ddd8539a2fcdd4ce).() const |
| 624 | { |
| 625 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(isUInt32()); |
| 626 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::getTruncatedUInt32cxx . . $ QTJSC/JSImmediate#getTruncatedUInt32(f8626af870e21f8f).(asValuecxx . . $ QTJSC/JSValue#asValue(2b3a0f51c71d9b1b).()); |
| 627 | } |
| 628 | |
| 629 | class JSFastMathcxx . . $ QTJSC/JSFastMath# { |
| 630 | public: |
| 631 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool canDoFastBitwiseOperationscxx . . $ QTJSC/JSFastMath#canDoFastBitwiseOperations(3e6f526f6125e4e1).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 632 | { |
| 633 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::areBothImmediateIntegerNumberscxx . . $ QTJSC/JSImmediate#areBothImmediateIntegerNumbers(3e6f526f6125e4e1).(v1, v2); |
| 634 | } |
| 635 | |
| 636 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# equalcxx . . $ QTJSC/JSFastMath#equal(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 637 | { |
| 638 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastBitwiseOperations(v1, v2)); |
| 639 | return jsBooleancxx . . $ QTJSC/jsBoolean(b805946c4147dfe1).(v1 ==cxx . . $ QTJSC/JSValue#`operator==`(b7c0ea8ebb120a64). v2); |
| 640 | } |
| 641 | |
| 642 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# notEqualcxx . . $ QTJSC/JSFastMath#notEqual(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 643 | { |
| 644 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastBitwiseOperations(v1, v2)); |
| 645 | return jsBooleancxx . . $ QTJSC/jsBoolean(b805946c4147dfe1).(v1 !=cxx . . $ QTJSC/JSValue#`operator!=`(b7c0ea8ebb120a64). v2); |
| 646 | } |
| 647 | |
| 648 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# andImmediateNumberscxx . . $ QTJSC/JSFastMath#andImmediateNumbers(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 649 | { |
| 650 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastBitwiseOperations(v1, v2)); |
| 651 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) & JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v2)); |
| 652 | } |
| 653 | |
| 654 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# xorImmediateNumberscxx . . $ QTJSC/JSFastMath#xorImmediateNumbers(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 655 | { |
| 656 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastBitwiseOperations(v1, v2)); |
| 657 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).((JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) ^ JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v2)) | JSImmediatecxx . . $ QTJSC/JSImmediate#::TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.); |
| 658 | } |
| 659 | |
| 660 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# orImmediateNumberscxx . . $ QTJSC/JSFastMath#orImmediateNumbers(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 661 | { |
| 662 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastBitwiseOperations(v1, v2)); |
| 663 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) | JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v2)); |
| 664 | } |
| 665 | |
| 666 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool canDoFastRshiftcxx . . $ QTJSC/JSFastMath#canDoFastRshift(3e6f526f6125e4e1).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 667 | { |
| 668 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::areBothImmediateIntegerNumberscxx . . $ QTJSC/JSImmediate#areBothImmediateIntegerNumbers(3e6f526f6125e4e1).(v1, v2); |
| 669 | } |
| 670 | |
| 671 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool canDoFastUrshiftcxx . . $ QTJSC/JSFastMath#canDoFastUrshift(3e6f526f6125e4e1).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 672 | { |
| 673 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::areBothImmediateIntegerNumberscxx . . $ QTJSC/JSImmediate#areBothImmediateIntegerNumbers(3e6f526f6125e4e1).(v1, v2) && !(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) & JSImmediatecxx . . $ QTJSC/JSImmediate#::signBitcxx . . $ QTJSC/JSImmediate#signBit.); |
| 674 | } |
| 675 | |
| 676 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# rightShiftImmediateNumberscxx . . $ QTJSC/JSFastMath#rightShiftImmediateNumbers(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# val, JSValuecxx . . $ QTJSC/JSValue# shift) |
| 677 | { |
| 678 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastRshift(val, shift) || canDoFastUrshift(val, shift)); |
| 679 | #if USEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Platform.h:55:9`!(JSVALUE64) |
| 680 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(static_cast<intptr_tcxx . . $ intptr_t#>(static_cast<uint32_tcxx . . $ uint32_t#>(static_cast<int32_tcxx . . $ int32_t#>(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(val)) >> ((JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(shift) >> JSImmediatecxx . . $ QTJSC/JSImmediate#::IntegerPayloadShiftcxx . . $ QTJSC/JSImmediate#IntegerPayloadShift.) & 0x1f))) | JSImmediatecxx . . $ QTJSC/JSImmediate#::TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.); |
| 681 | #else |
| 682 | return JSImmediate::makeValue((JSImmediate::rawValue(val) >> ((JSImmediate::rawValue(shift) >> JSImmediate::IntegerPayloadShift) & 0x1f)) | JSImmediate::TagTypeNumber); |
| 683 | #endif |
| 684 | } |
| 685 | |
| 686 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool canDoFastAdditiveOperationscxx . . $ QTJSC/JSFastMath#canDoFastAdditiveOperations(a6f765323ba532ee).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 687 | { |
| 688 | // Number is non-negative and an operation involving two of these can't overflow. |
| 689 | // Checking for allowed negative numbers takes more time than it's worth on SunSpider. |
| 690 | return (JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) & (JSImmediatecxx . . $ QTJSC/JSImmediate#::TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber. + (JSImmediatecxx . . $ QTJSC/JSImmediate#::signBitcxx . . $ QTJSC/JSImmediate#signBit. | (JSImmediatecxx . . $ QTJSC/JSImmediate#::signBitcxx . . $ QTJSC/JSImmediate#signBit. >> 1)))) == JSImmediatecxx . . $ QTJSC/JSImmediate#::TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.; |
| 691 | } |
| 692 | |
| 693 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! bool canDoFastAdditiveOperationscxx . . $ QTJSC/JSFastMath#canDoFastAdditiveOperations(3e6f526f6125e4e1).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 694 | { |
| 695 | // Number is non-negative and an operation involving two of these can't overflow. |
| 696 | // Checking for allowed negative numbers takes more time than it's worth on SunSpider. |
| 697 | return canDoFastAdditiveOperationscxx . . $ QTJSC/JSFastMath#canDoFastAdditiveOperations(a6f765323ba532ee).(v1) && canDoFastAdditiveOperationscxx . . $ QTJSC/JSFastMath#canDoFastAdditiveOperations(a6f765323ba532ee).(v2); |
| 698 | } |
| 699 | |
| 700 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# addImmediateNumberscxx . . $ QTJSC/JSFastMath#addImmediateNumbers(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 701 | { |
| 702 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastAdditiveOperations(v1, v2)); |
| 703 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) + JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v2) - JSImmediatecxx . . $ QTJSC/JSImmediate#::TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.); |
| 704 | } |
| 705 | |
| 706 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# subImmediateNumberscxx . . $ QTJSC/JSFastMath#subImmediateNumbers(587f35469ae1331).(JSValuecxx . . $ QTJSC/JSValue# v1, JSValuecxx . . $ QTJSC/JSValue# v2) |
| 707 | { |
| 708 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastAdditiveOperations(v1, v2)); |
| 709 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v1) - JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v2) + JSImmediatecxx . . $ QTJSC/JSImmediate#::TagTypeNumbercxx . . $ QTJSC/JSImmediate#TagTypeNumber.); |
| 710 | } |
| 711 | |
| 712 | static ALWAYS_INLINEcxx . . $ `../3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# incImmediateNumbercxx . . $ QTJSC/JSFastMath#incImmediateNumber(19277d6b13852c07).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 713 | { |
| 714 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastAdditiveOperations(v)); |
| 715 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) + (1 << JSImmediatecxx . . $ QTJSC/JSImmediate#::IntegerPayloadShiftcxx . . $ QTJSC/JSImmediate#IntegerPayloadShift.)); |
| 716 | } |
| 717 | |
| 718 | static ALWAYS_INLINEcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/AlwaysInline.h:25:9`! JSValuecxx . . $ QTJSC/JSValue# decImmediateNumbercxx . . $ QTJSC/JSFastMath#decImmediateNumber(19277d6b13852c07).(JSValuecxx . . $ QTJSC/JSValue# v) |
| 719 | { |
| 720 | ASSERTcxx . . $ `src/3rdparty/javascriptcore/JavaScriptCore/wtf/Assertions.h:184:9`!(canDoFastAdditiveOperations(v)); |
| 721 | return JSImmediatecxx . . $ QTJSC/JSImmediate#::makeValuecxx . . $ QTJSC/JSImmediate#makeValue(48382e65e89b9a3).(JSImmediatecxx . . $ QTJSC/JSImmediate#::rawValuecxx . . $ QTJSC/JSImmediate#rawValue(47c39e911e54edb3).(v) - (1 << JSImmediatecxx . . $ QTJSC/JSImmediate#::IntegerPayloadShiftcxx . . $ QTJSC/JSImmediate#IntegerPayloadShift.)); |
| 722 | } |
| 723 | }; |
| 724 | |
| 725 | } // namespace JSC |
| 726 | |
| 727 | #endif // !USE(JSVALUE32_64) |
| 728 | |
| 729 | #endif // JSImmediate_h |