Changeset 37651 in webkit for trunk/JavaScriptCore


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):
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37650 r37651  
     12008-10-17  Cameron Zwarich  <[email protected]>
     2
     3        Rubber-stamped by Maciej Stachowiak.
     4
     5        Remove some C style casts.
     6
     7        * VM/CTI.cpp:
     8        (JSC::CTI::patchGetByIdSelf):
     9        (JSC::CTI::patchPutByIdReplace):
     10        * VM/Machine.cpp:
     11        (JSC::Machine::tryCTICachePutByID):
     12        (JSC::Machine::tryCTICacheGetByID):
     13        (JSC::Machine::cti_op_put_by_id):
     14        (JSC::Machine::cti_op_put_by_id_fail):
     15        (JSC::Machine::cti_op_get_by_id):
     16        (JSC::Machine::cti_op_get_by_id_fail):
     17
    1182008-10-17  Maciej Stachowiak  <[email protected]>
    219
  • trunk/JavaScriptCore/VM/CTI.cpp

    r37650 r37651  
    30373037    // We don't want to repatch more than once - in future go to cti_op_get_by_id_generic.
    30383038    // Should probably go to Machine::cti_op_get_by_id_fail, but that doesn't do anything interesting right now.
    3039     ctiRepatchCallByReturnAddress(returnAddress, (void*)(Machine::cti_op_get_by_id_generic));
     3039    ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(Machine::cti_op_get_by_id_generic));
    30403040
    30413041    // Repatch the offset into the propoerty map to load from, then repatch the StructureID to look for.
     
    30503050    // We don't want to repatch more than once - in future go to cti_op_put_by_id_generic.
    30513051    // Should probably go to Machine::cti_op_put_by_id_fail, but that doesn't do anything interesting right now.
    3052     ctiRepatchCallByReturnAddress(returnAddress, (void*)(Machine::cti_op_put_by_id_generic));
     3052    ctiRepatchCallByReturnAddress(returnAddress, reinterpret_cast<void*>(Machine::cti_op_put_by_id_generic));
    30533053
    30543054    // Repatch the offset into the propoerty map to load from, then repatch the StructureID to look for.
  • 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.