Changeset 37651 in webkit for trunk/JavaScriptCore/VM/Machine.cpp


Ignore:
Timestamp:
Oct 17, 2008, 3:15:10 AM (17 years ago)
Author:
[email protected]
Message:

2008-10-17 Cameron Zwarich <[email protected]>

Rubber-stamped by Maciej Stachowiak.

Remove some C style casts.

  • VM/CTI.cpp: (JSC::CTI::patchGetByIdSelf): (JSC::CTI::patchPutByIdReplace):
  • VM/Machine.cpp: (JSC::Machine::tryCTICachePutByID): (JSC::Machine::tryCTICacheGetByID): (JSC::Machine::cti_op_put_by_id): (JSC::Machine::cti_op_put_by_id_fail): (JSC::Machine::cti_op_get_by_id): (JSC::Machine::cti_op_get_by_id_fail):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.cpp

    r37625 r37651  
    39973997    // Uncacheable: give up.
    39983998    if (!slot.isCacheable()) {
    3999         ctiRepatchCallByReturnAddress(returnAddress, (void*)cti_op_put_by_id_generic);
     3999        ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(cti_op_put_by_id_generic));
    40004000        return;
    40014001    }
     
    40054005
    40064006    if (structureID->isDictionary()) {
    4007         ctiRepatchCallByReturnAddress(returnAddress, (void*)cti_op_put_by_id_generic);
     4007        ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(cti_op_put_by_id_generic));
    40084008        return;
    40094009    }
     
    40194019    // If baseCell != base, then baseCell must be a proxy for another object.
    40204020    if (baseCell != slot.base()) {
    4021         ctiRepatchCallByReturnAddress(returnAddress, (void*)cti_op_put_by_id_generic);
     4021        ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(cti_op_put_by_id_generic));
    40224022        return;
    40234023    }
     
    40804080    // FIXME: Cache property access for immediates.
    40814081    if (JSImmediate::isImmediate(baseValue)) {
    4082         ctiRepatchCallByReturnAddress(returnAddress, (void*)cti_op_get_by_id_generic);
     4082        ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(cti_op_get_by_id_generic));
    40834083        return;
    40844084    }
     
    41014101    // Uncacheable: give up.
    41024102    if (!slot.isCacheable()) {
    4103         ctiRepatchCallByReturnAddress(returnAddress, (void*)cti_op_get_by_id_generic);
     4103        ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(cti_op_get_by_id_generic));
    41044104        return;
    41054105    }
     
    41094109
    41104110    if (structureID->isDictionary()) {
    4111         ctiRepatchCallByReturnAddress(returnAddress, (void*)cti_op_get_by_id_generic);
     4111        ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(cti_op_get_by_id_generic));
    41124112        return;
    41134113    }
     
    43784378    ARG_src1->put(callFrame, ident, ARG_src3, slot);
    43794379
    4380     ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, (void*)cti_op_put_by_id_second);
     4380    ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_put_by_id_second));
    43814381
    43824382    VM_CHECK_EXCEPTION_AT_END();
     
    44074407
    44084408    // should probably uncachePutByID() ... this would mean doing a vPC lookup - might be worth just bleeding this until the end.
    4409     ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, (void*)cti_op_put_by_id_generic);
     4409    ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_put_by_id_generic));
    44104410
    44114411    VM_CHECK_EXCEPTION_AT_END();
     
    44214421    JSValue* result = baseValue->get(callFrame, ident, slot);
    44224422
    4423     ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, (void*)cti_op_get_by_id_second);
     4423    ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_get_by_id_second));
    44244424
    44254425    VM_CHECK_EXCEPTION_AT_END();
     
    44654465
    44664466    // should probably uncacheGetByID() ... this would mean doing a vPC lookup - might be worth just bleeding this until the end.
    4467     ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, (void*)cti_op_get_by_id_generic);
     4467    ctiRepatchCallByReturnAddress(CTI_RETURN_ADDRESS, reinterpret_cast<void*>(cti_op_get_by_id_generic));
    44684468
    44694469    VM_CHECK_EXCEPTION_AT_END();
Note: See TracChangeset for help on using the changeset viewer.