Changeset 37651 in webkit for trunk/JavaScriptCore
- Timestamp:
- Oct 17, 2008, 3:15:10 AM (17 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r37650 r37651 1 2008-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 1 18 2008-10-17 Maciej Stachowiak <[email protected]> 2 19 -
trunk/JavaScriptCore/VM/CTI.cpp
r37650 r37651 3037 3037 // We don't want to repatch more than once - in future go to cti_op_get_by_id_generic. 3038 3038 // 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)); 3040 3040 3041 3041 // Repatch the offset into the propoerty map to load from, then repatch the StructureID to look for. … … 3050 3050 // We don't want to repatch more than once - in future go to cti_op_put_by_id_generic. 3051 3051 // 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)); 3053 3053 3054 3054 // Repatch the offset into the propoerty map to load from, then repatch the StructureID to look for. -
trunk/JavaScriptCore/VM/Machine.cpp
r37625 r37651 3997 3997 // Uncacheable: give up. 3998 3998 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)); 4000 4000 return; 4001 4001 } … … 4005 4005 4006 4006 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)); 4008 4008 return; 4009 4009 } … … 4019 4019 // If baseCell != base, then baseCell must be a proxy for another object. 4020 4020 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)); 4022 4022 return; 4023 4023 } … … 4080 4080 // FIXME: Cache property access for immediates. 4081 4081 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)); 4083 4083 return; 4084 4084 } … … 4101 4101 // Uncacheable: give up. 4102 4102 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)); 4104 4104 return; 4105 4105 } … … 4109 4109 4110 4110 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)); 4112 4112 return; 4113 4113 } … … 4378 4378 ARG_src1->put(callFrame, ident, ARG_src3, slot); 4379 4379 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)); 4381 4381 4382 4382 VM_CHECK_EXCEPTION_AT_END(); … … 4407 4407 4408 4408 // 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)); 4410 4410 4411 4411 VM_CHECK_EXCEPTION_AT_END(); … … 4421 4421 JSValue* result = baseValue->get(callFrame, ident, slot); 4422 4422 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)); 4424 4424 4425 4425 VM_CHECK_EXCEPTION_AT_END(); … … 4465 4465 4466 4466 // 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)); 4468 4468 4469 4469 VM_CHECK_EXCEPTION_AT_END();
Note:
See TracChangeset
for help on using the changeset viewer.