Changeset 55684 in webkit for trunk/JavaScriptCore/jit/JITOpcodes.cpp
- Timestamp:
- Mar 8, 2010, 2:45:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITOpcodes.cpp
r55615 r55684 517 517 // Check that baseVal 'ImplementsDefaultHasInstance'. 518 518 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT0); 519 addSlowCase(branchTest 32(Zero, Address(regT0, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(ImplementsDefaultHasInstance)));519 addSlowCase(branchTest8(Zero, Address(regT0, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(ImplementsDefaultHasInstance))); 520 520 521 521 // Optimistically load the result true, and start looping. … … 870 870 // First, handle JSCell cases - check MasqueradesAsUndefined bit on the structure. 871 871 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 872 addJump(branchTest 32(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target);872 addJump(branchTest8(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target); 873 873 874 874 Jump wasNotImmediate = jump(); … … 897 897 // First, handle JSCell cases - check MasqueradesAsUndefined bit on the structure. 898 898 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 899 addJump(branchTest 32(Zero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target);899 addJump(branchTest8(Zero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target); 900 900 901 901 Jump wasNotImmediate = jump(); … … 1210 1210 if (base != m_codeBlock->thisRegister()) { 1211 1211 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 1212 isNotObject.append(branch 32(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_type)), Imm32(ObjectType)));1212 isNotObject.append(branch8(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_type)), Imm32(ObjectType))); 1213 1213 } 1214 1214 … … 1489 1489 1490 1490 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 1491 addSlowCase(branchTest 32(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(NeedsThisConversion)));1491 addSlowCase(branchTest8(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(NeedsThisConversion))); 1492 1492 1493 1493 map(m_bytecodeIndex + OPCODE_LENGTH(op_convert_this), thisRegister, regT1, regT0); … … 1993 1993 // Check that baseVal 'ImplementsDefaultHasInstance'. 1994 1994 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT0); 1995 addSlowCase(branchTest 32(Zero, Address(regT0, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(ImplementsDefaultHasInstance)));1995 addSlowCase(branchTest8(Zero, Address(regT0, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(ImplementsDefaultHasInstance))); 1996 1996 1997 1997 // Optimistically load the result true, and start looping. … … 2154 2154 emitJumpSlowCaseIfNotJSCell(regT0); 2155 2155 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 2156 addSlowCase(branch 32(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo) + OBJECT_OFFSETOF(TypeInfo,m_type)), Imm32(ObjectType)));2156 addSlowCase(branch8(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_type)), Imm32(ObjectType))); 2157 2157 2158 2158 } … … 2263 2263 // First, handle JSCell cases - check MasqueradesAsUndefined bit on the structure. 2264 2264 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 2265 addJump(branchTest 32(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target);2265 addJump(branchTest8(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target); 2266 2266 Jump wasNotImmediate = jump(); 2267 2267 … … 2284 2284 // First, handle JSCell cases - check MasqueradesAsUndefined bit on the structure. 2285 2285 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 2286 addJump(branchTest 32(Zero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target);2286 addJump(branchTest8(Zero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined)), target); 2287 2287 Jump wasNotImmediate = jump(); 2288 2288 … … 2440 2440 if (base != m_codeBlock->thisRegister()) { 2441 2441 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 2442 isNotObject.append(branch 32(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_type)), Imm32(ObjectType)));2442 isNotObject.append(branch8(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_type)), Imm32(ObjectType))); 2443 2443 } 2444 2444 … … 2591 2591 emitJumpSlowCaseIfNotJSCell(regT0, srcVReg); 2592 2592 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 2593 addSlowCase(branch 32(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_type)), Imm32(NumberType)));2593 addSlowCase(branch8(NotEqual, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_type)), Imm32(NumberType))); 2594 2594 2595 2595 wasImmediate.link(this); … … 2702 2702 2703 2703 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 2704 setTest 32(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined), regT0);2704 setTest8(NonZero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined), regT0); 2705 2705 2706 2706 Jump wasNotImmediate = jump(); … … 2727 2727 2728 2728 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT2); 2729 setTest 32(Zero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined), regT0);2729 setTest8(Zero, Address(regT2, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(MasqueradesAsUndefined), regT0); 2730 2730 2731 2731 Jump wasNotImmediate = jump(); … … 2787 2787 emitJumpSlowCaseIfNotJSCell(regT0); 2788 2788 loadPtr(Address(regT0, OBJECT_OFFSETOF(JSCell, m_structure)), regT1); 2789 addSlowCase(branchTest 32(NonZero, Address(regT1, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(NeedsThisConversion)));2789 addSlowCase(branchTest8(NonZero, Address(regT1, OBJECT_OFFSETOF(Structure, m_typeInfo.m_flags)), Imm32(NeedsThisConversion))); 2790 2790 2791 2791 }
Note:
See TracChangeset
for help on using the changeset viewer.