Changeset 44711 in webkit for trunk/JavaScriptCore/jit/JITStubs.cpp
- Timestamp:
- Jun 15, 2009, 10:35:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITStubs.cpp
r44705 r44711 932 932 if (stubInfo->opcodeID == op_get_by_id_self) { 933 933 ASSERT(!stubInfo->stubRoutine); 934 polymorphicStructureList = new PolymorphicAccessStructureList( MacroAssembler::CodeLocationLabel(), stubInfo->u.getByIdSelf.baseObjectStructure);934 polymorphicStructureList = new PolymorphicAccessStructureList(CodeLocationLabel(), stubInfo->u.getByIdSelf.baseObjectStructure); 935 935 stubInfo->initGetByIdSelfList(polymorphicStructureList, 2); 936 936 } else { … … 958 958 case op_get_by_id_proto: 959 959 prototypeStructureList = new PolymorphicAccessStructureList(stubInfo->stubRoutine, stubInfo->u.getByIdProto.baseObjectStructure, stubInfo->u.getByIdProto.prototypeStructure); 960 stubInfo->stubRoutine .reset();960 stubInfo->stubRoutine = CodeLocationLabel(); 961 961 stubInfo->initGetByIdProtoList(prototypeStructureList, 2); 962 962 break; 963 963 case op_get_by_id_chain: 964 964 prototypeStructureList = new PolymorphicAccessStructureList(stubInfo->stubRoutine, stubInfo->u.getByIdChain.baseObjectStructure, stubInfo->u.getByIdChain.chain); 965 stubInfo->stubRoutine .reset();965 stubInfo->stubRoutine = CodeLocationLabel(); 966 966 stubInfo->initGetByIdProtoList(prototypeStructureList, 2); 967 967 break; … … 2334 2334 2335 2335 stackFrame.callFrame = callFrame; 2336 void* catchRoutine = handler->nativeCode. addressForExceptionHandler();2336 void* catchRoutine = handler->nativeCode.executableAddress(); 2337 2337 ASSERT(catchRoutine); 2338 2338 STUB_SET_RETURN_ADDRESS(catchRoutine); … … 2542 2542 2543 2543 if (scrutinee.isInt32Fast()) 2544 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(scrutinee.getInt32Fast()). addressForSwitch();2544 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(scrutinee.getInt32Fast()).executableAddress(); 2545 2545 else { 2546 2546 double value; 2547 2547 int32_t intValue; 2548 2548 if (scrutinee.getNumber(value) && ((intValue = static_cast<int32_t>(value)) == value)) 2549 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(intValue). addressForSwitch();2549 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(intValue).executableAddress(); 2550 2550 else 2551 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault. addressForSwitch();2551 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault.executableAddress(); 2552 2552 } 2553 2553 } … … 2562 2562 CodeBlock* codeBlock = callFrame->codeBlock(); 2563 2563 2564 void* result = codeBlock->characterSwitchJumpTable(tableIndex).ctiDefault. addressForSwitch();2564 void* result = codeBlock->characterSwitchJumpTable(tableIndex).ctiDefault.executableAddress(); 2565 2565 2566 2566 if (scrutinee.isString()) { 2567 2567 UString::Rep* value = asString(scrutinee)->value().rep(); 2568 2568 if (value->size() == 1) 2569 result = codeBlock->characterSwitchJumpTable(tableIndex).ctiForValue(value->data()[0]). addressForSwitch();2569 result = codeBlock->characterSwitchJumpTable(tableIndex).ctiForValue(value->data()[0]).executableAddress(); 2570 2570 } 2571 2571 … … 2582 2582 CodeBlock* codeBlock = callFrame->codeBlock(); 2583 2583 2584 void* result = codeBlock->stringSwitchJumpTable(tableIndex).ctiDefault. addressForSwitch();2584 void* result = codeBlock->stringSwitchJumpTable(tableIndex).ctiDefault.executableAddress(); 2585 2585 2586 2586 if (scrutinee.isString()) { 2587 2587 UString::Rep* value = asString(scrutinee)->value().rep(); 2588 result = codeBlock->stringSwitchJumpTable(tableIndex).ctiForValue(value). addressForSwitch();2588 result = codeBlock->stringSwitchJumpTable(tableIndex).ctiForValue(value).executableAddress(); 2589 2589 } 2590 2590 … … 2690 2690 2691 2691 stackFrame.callFrame = callFrame; 2692 void* catchRoutine = handler->nativeCode. addressForExceptionHandler();2692 void* catchRoutine = handler->nativeCode.executableAddress(); 2693 2693 ASSERT(catchRoutine); 2694 2694 STUB_SET_RETURN_ADDRESS(catchRoutine);
Note:
See TracChangeset
for help on using the changeset viewer.