Ignore:
Timestamp:
Jan 9, 2009, 4:14:25 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-01-09 Gavin Barraclough <[email protected]>

Reviewed by Oliver Hunt.

Stage two of converting JSValue from a pointer to a class type.
Remove the class JSValue. The functionallity has been transitioned
into the wrapper class type JSValuePtr.

The last stage will be to rename JSValuePtr to JSValue, remove the
overloaded -> operator, and switch operations on JSValuePtrs from
using '->' to use '.' instead.

  • API/APICast.h:
  • JavaScriptCore.exp:
  • runtime/JSCell.h: (JSC::asCell): (JSC::JSValuePtr::asCell): (JSC::JSValuePtr::isNumber): (JSC::JSValuePtr::isString): (JSC::JSValuePtr::isGetterSetter): (JSC::JSValuePtr::isObject): (JSC::JSValuePtr::getNumber): (JSC::JSValuePtr::getString): (JSC::JSValuePtr::getObject): (JSC::JSValuePtr::getCallData): (JSC::JSValuePtr::getConstructData): (JSC::JSValuePtr::getUInt32): (JSC::JSValuePtr::getTruncatedInt32): (JSC::JSValuePtr::getTruncatedUInt32): (JSC::JSValuePtr::mark): (JSC::JSValuePtr::marked): (JSC::JSValuePtr::toPrimitive): (JSC::JSValuePtr::getPrimitiveNumber): (JSC::JSValuePtr::toBoolean): (JSC::JSValuePtr::toNumber): (JSC::JSValuePtr::toString): (JSC::JSValuePtr::toObject): (JSC::JSValuePtr::toThisObject): (JSC::JSValuePtr::needsThisConversion): (JSC::JSValuePtr::toThisString): (JSC::JSValuePtr::getJSNumber):
  • runtime/JSImmediate.h: (JSC::JSValuePtr::isUndefined): (JSC::JSValuePtr::isNull): (JSC::JSValuePtr::isUndefinedOrNull): (JSC::JSValuePtr::isBoolean): (JSC::JSValuePtr::getBoolean): (JSC::JSValuePtr::toInt32): (JSC::JSValuePtr::toUInt32):
  • runtime/JSNumberCell.h: (JSC::JSValuePtr::uncheckedGetNumber): (JSC::JSValuePtr::toJSNumber):
  • runtime/JSObject.h: (JSC::JSValuePtr::isObject): (JSC::JSValuePtr::get): (JSC::JSValuePtr::put):
  • runtime/JSString.h: (JSC::JSValuePtr::toThisJSString):
  • runtime/JSValue.cpp: (JSC::JSValuePtr::toInteger): (JSC::JSValuePtr::toIntegerPreserveNaN): (JSC::JSValuePtr::toInt32SlowCase): (JSC::JSValuePtr::toUInt32SlowCase):
  • runtime/JSValue.h: (JSC::JSValuePtr::makeImmediate): (JSC::JSValuePtr::immediateValue): (JSC::JSValuePtr::JSValuePtr): (JSC::JSValuePtr::operator->): (JSC::JSValuePtr::operator bool): (JSC::JSValuePtr::operator==): (JSC::JSValuePtr::operator!=): (JSC::JSValuePtr::encode): (JSC::JSValuePtr::decode): (JSC::JSValuePtr::toFloat): (JSC::JSValuePtr::asValue): (JSC::operator==): (JSC::operator!=):

WebCore:

2009-01-09 Gavin Barraclough <[email protected]>

Reviewed by Oliver Hunt.

Delete references to JSValue, removing this class.

  • bindings/js/JSWorkerContextCustom.cpp: (WebCore::JSWorkerContext::self):
  • bindings/js/ScriptCallStack.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSImmediate.h

    r39738 r39769  
    3838    class JSCell;
    3939    class JSObject;
    40     class JSValue;
    4140    class UString;
    4241
     
    506505    uint32_t toUInt32SlowCase(double, bool& ok);
    507506
    508     inline bool JSValue::isUndefined() const
     507    inline bool JSValuePtr::isUndefined() const
    509508    {
    510509        return asValue() == jsUndefined();
    511510    }
    512511
    513     inline bool JSValue::isNull() const
     512    inline bool JSValuePtr::isNull() const
    514513    {
    515514        return asValue() == jsNull();
    516515    }
    517516
    518     inline bool JSValue::isUndefinedOrNull() const
     517    inline bool JSValuePtr::isUndefinedOrNull() const
    519518    {
    520519        return JSImmediate::isUndefinedOrNull(asValue());
    521520    }
    522521
    523     inline bool JSValue::isBoolean() const
     522    inline bool JSValuePtr::isBoolean() const
    524523    {
    525524        return JSImmediate::isBoolean(asValue());
    526525    }
    527526
    528     inline bool JSValue::getBoolean(bool& v) const
     527    inline bool JSValuePtr::getBoolean(bool& v) const
    529528    {
    530529        if (JSImmediate::isBoolean(asValue())) {
     
    536535    }
    537536
    538     inline bool JSValue::getBoolean() const
     537    inline bool JSValuePtr::getBoolean() const
    539538    {
    540539        return asValue() == jsBoolean(true);
    541540    }
    542541
    543     ALWAYS_INLINE int32_t JSValue::toInt32(ExecState* exec) const
     542    ALWAYS_INLINE int32_t JSValuePtr::toInt32(ExecState* exec) const
    544543    {
    545544        int32_t i;
     
    550549    }
    551550
    552     inline uint32_t JSValue::toUInt32(ExecState* exec) const
     551    inline uint32_t JSValuePtr::toUInt32(ExecState* exec) const
    553552    {
    554553        uint32_t i;
     
    577576    }
    578577
    579     inline int32_t JSValue::toInt32(ExecState* exec, bool& ok) const
     578    inline int32_t JSValuePtr::toInt32(ExecState* exec, bool& ok) const
    580579    {
    581580        int32_t i;
     
    587586    }
    588587
    589     inline uint32_t JSValue::toUInt32(ExecState* exec, bool& ok) const
     588    inline uint32_t JSValuePtr::toUInt32(ExecState* exec, bool& ok) const
    590589    {
    591590        uint32_t i;
Note: See TracChangeset for help on using the changeset viewer.