Changeset 70749 in webkit for trunk/JavaScriptCore/API/APICast.h


Ignore:
Timestamp:
Oct 28, 2010, 12:00:37 AM (15 years ago)
Author:
[email protected]
Message:

2010-10-28 Xan Lopez <[email protected]>

Reviewed by Oliver Hunt.

Do not have two different asCell APIs in JSValue
https://bugs.webkit.org/show_bug.cgi?id=47979

Remove JSCell* asCell(JSValue) in favor of only using
JSValue::asCell().

  • API/APICast.h: (toRef):
  • jit/JITPropertyAccess32_64.cpp: (JSC::JIT::testPrototype):
  • jit/JITStubs.cpp: (JSC::JITThunks::tryCachePutByID): (JSC::JITThunks::tryCacheGetByID): (JSC::DEFINE_STUB_FUNCTION):
  • runtime/GetterSetter.h: (JSC::asGetterSetter):
  • runtime/JSByteArray.h: (JSC::asByteArray):
  • runtime/JSCell.h: (JSC::JSCell::getCallData): (JSC::JSCell::getConstructData):
  • runtime/JSString.h: (JSC::RopeBuilder::appendValueInConstructAndIncrementLength): (JSC::asString):
  • runtime/JSValue.h:
  • runtime/Operations.cpp: (JSC::jsIsObjectType):
  • runtime/Operations.h: (JSC::normalizePrototypeChain):
  • runtime/Protect.h: (JSC::gcProtect): (JSC::gcUnprotect):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/APICast.h

    r55633 r70749  
    112112        return 0;
    113113    if (!v.isCell())
    114         return reinterpret_cast<JSValueRef>(asCell(JSC::jsAPIValueWrapper(exec, v)));
    115     return reinterpret_cast<JSValueRef>(asCell(v));
     114        return reinterpret_cast<JSValueRef>(JSC::jsAPIValueWrapper(exec, v).asCell());
     115    return reinterpret_cast<JSValueRef>(v.asCell());
    116116#else
    117117    UNUSED_PARAM(exec);
Note: See TracChangeset for help on using the changeset viewer.