Lines Matching full:jsvalue
84 Added a fast (non-virtual) mechanism to determine if a non-immediate JSValue*
1117 and its clients for registers that don't contain JSValue*s.
1121 1. Register::jsValue() clients, including ArgList clients, must now supply
1123 will need to create a JSValue* on the fly.
1125 2. Register clients that definitely don't want to create a JSValue* on
1127 the register contains a JSValue*, and v() for clients who just want a
1377 entries as registers, not JSValue*s.
1529 to a JSValue*, or a Register& to a JSValue*&, or to access the union
1542 x.u.jsValue = y;
1550 x = y.u.jsValue;
1554 x = y.jsValue();
1557 control generic by treating a Register& as a JSValue*&. This had the
1565 4. I changed ArgList to be a buffer of Registers, not JSValue*'s, and I
1566 changed ArgList iterator clients to iterate Registers, not JSValue*'s.
1909 * kjs/CallData.cpp: Copied from kjs/JSValue.cpp.
1910 * kjs/ConstructData.cpp: Copied from kjs/JSValue.cpp.
1911 * kjs/JSValue.cpp:
2880 Split JSCell and JSNumberCell class declarations out of JSValue.h
2889 * kjs/JSCell.cpp: Copied from JavaScriptCore/kjs/JSValue.cpp.
2890 * kjs/JSCell.h: Copied from JavaScriptCore/kjs/JSValue.h.
2891 (KJS::JSValue::getJSNumber):
2893 * kjs/JSNumberCell.h: Copied from JavaScriptCore/kjs/JSValue.h.
2899 (KJS::JSValue::toThisJSString):
2900 * kjs/JSValue.cpp:
2901 * kjs/JSValue.h:
3129 * kjs/JSValue.cpp:
3163 * kjs/JSValue.cpp:
3855 (KJS::JSValue::get): Use prototype instead of toObject to avoid creating
3862 * kjs/JSValue.cpp:
3869 * kjs/JSValue.h:
3870 (KJS::JSValue::toThisString): Added.
3871 (KJS::JSValue::toThisJSString): Added.
3872 (KJS::JSValue::getJSNumber): Added.
4411 - Changed the "this" argument to native functions to be a JSValue rather
4577 * kjs/JSValue.cpp:
4581 * kjs/JSValue.h:
5107 * kjs/ExecState.h: Shuffle includes, making it possible to include ExecState.h in JSValue.h.
5152 (KJS::Heap::heap): Added a method to determine which heap a JSValue is in, if any.
5181 Moved from JSvalue.h, to make these usable in files that cannot include JSValue.h (such
5272 * kjs/JSValue.cpp:
5276 * kjs/JSValue.h:
5283 (KJS::JSValue::toJSNumber):
6225 * kjs/JSValue.h:
6309 * kjs/JSValue.cpp: Copied from JavaScriptCore/kjs/value.cpp.
6310 * kjs/JSValue.h: Copied from JavaScriptCore/kjs/value.h.
6572 to complement JSValue and JSObject
6724 (KJS::JSValue::uncheckedGetNumber):
7147 in asssert, since the type of slotBase() is now JSValue, not JSObject.
7171 (KJS::staticFunctionGetter): Updated since slotBase() is now a JSValue rather
7179 (KJS::PropertySlot::functionGetter): Updated since slot.slotBase() is now a JSValue*
7182 (KJS::PropertySlot::PropertySlot): Changed base to JSValue* intead of JSCell*.
7189 (KJS::PropertySlot::setBase): Changed to JSValue*.
7968 put functions where possible, instead calling directly with JSValue and letting
7969 the JSValue and JSCell calls handle toObject. Same for toThisObject.
8041 (KJS::JSValue::get): Added. Here because it calls through to JSObject.
8042 A version of JSObject::get that also handles the other types of JSValue
8044 (KJS::JSValue::put): Ditto.
8045 (KJS::JSValue::deleteProperty): Ditto.
8112 * kjs/value.h: Added get, put, and toThisObject to both JSValue
8717 Change List to store a JSValue*** pointer + an offset instead of a JSValue** pointer to protect against the case where
9993 (KJS::JSValue::safeGetNumber):
12763 (KJS::JSValue::toNumber):
13337 (KJS::JSValue::getConstructData):
13362 Wrapper for JSValue::isObject and exception creation (these need
13427 imply something more than just a JSValue.
14325 Don't use -1 as the deleted value for JSValue*-keyed hashtables,
16267 (KJS::JSValue::toJSNumber):
16447 (KJS::Heap::heap): Added a method to find which heap a JSValue is allocated in.
16789 (KJS::JSValue::toJSNumber):
23239 hitStatement protected, changed return value of execute to a JSValue,
23595 (KJS::ArrayInstance::sort): Convert JSValue's to strings once up front and then sort the
26361 (KJS::JSValue::toInt32SlowCase):
26362 (KJS::JSValue::toUInt32SlowCase):
26364 (KJS::JSValue::asCell):
26365 (KJS::JSValue::toInt32):
26366 (KJS::JSValue::toUInt32):
26645 (KJS::JSValue::getPrimitiveNumber):
27636 Added toJSNumber, a fast path for converting a JSValue to a JS number,
27654 (KJS::JSValue::toJSNumber):
28262 * kjs/value.h: (KJS::JSValue::isNumber): Add parentheses.
29140 (KJS::JSValue::toInteger):
29141 (KJS::JSValue::toInt32SlowCase):
29142 (KJS::JSValue::toUInt32SlowCase):
29719 (KJS::JSValue::getUInt32):
29720 (KJS::JSValue::getTruncatedInt32):
29721 (KJS::JSValue::toNumber):
29857 (KJS::JSValue::toInt32): Changed to call getTruncatedInt32 in a way that works
29859 (KJS::JSValue::toUInt32): Ditto.
29861 (KJS::JSValue::toInteger): Moved the logic from roundValue here, with a couple
29865 (KJS::JSValue::toIntegerPreserveNaN): Added. Like toInteger, but without the
29867 (KJS::JSValue::toInt32SlowCase): Call toNumber instead of roundValue. The
29870 (KJS::JSValue::toUInt32SlowCase): Ditto.
29871 (KJS::JSValue::toUInt16): Removed.
29939 (KJS::JSValue::toPrimitive): Fixed formatting.
29940 (KJS::JSValue::getPrimitiveNumber): New method - this simultaneously converts
30369 Add ImmediateNumberNode to hold a JSValue* instead of a double for numbers
30575 (KJS::JSValue::getUInt32):
30576 (KJS::JSValue::getTruncatedInt32): Added.
30577 (KJS::JSValue::getTruncatedUInt32): Added.
30578 (KJS::JSValue::toInt32): Changed getInt32 call to getTruncatedInt32.
30579 (KJS::JSValue::toUInt32): Changed getUInt32 call to getTruncatedUInt32.
30583 (KJS::JSValue
30584 (KJS::JSValue::toInt32SlowCase): Removed extra getInt32 call I accidentally
30586 (KJS::JSValue::toUInt32SlowCase): Ditto.
30587 (KJS::JSValue::toUInt16): Changed getUInt32 call to getTruncatedUInt32.
30618 (KJS::JSValue::getInt32): Updated for name change.
30619 (KJS::JSValue::getUInt32): Ditto.
30620 (KJS::JSValue::toInt32): Ditto.
30621 (KJS::JSValue::toUInt32): Ditto.
30658 (KJS::JSValue::getUInt32): Call JSImmediate::toUInt32.
30664 stolen from JSValue.
30669 (KJS::JSValue::getInt32): Added.
30670 (KJS::JSValue::getUInt32): Changed to call the new JSImmediate::toUInt32
30672 (KJS::JSValue::toInt32): Made inline, separated out the slow case.
30673 (KJS::JSValue::toUInt32): Ditto.
30676 (KJS::JSValue::toInt32SlowCase): Renamed from toInt32. Changed to use the
30678 (KJS::JSValue::toUInt32SlowCase): Ditto.
30679 (KJS::JSValue::toUInt16): Added a faster case for in-range numbers.