Changeset 44886 in webkit for trunk/JavaScriptCore/assembler/MacroAssemblerCodeRef.h
- Timestamp:
- Jun 19, 2009, 6:07:06 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/assembler/MacroAssemblerCodeRef.h
r44711 r44886 38 38 // ASSERT_VALID_CODE_POINTER checks that ptr is a non-null pointer, and that it is a valid 39 39 // instruction address on the platform (for example, check any alignment requirements). 40 #if PLATFORM (ARM_V7)40 #if PLATFORM_ARM_ARCH(7) 41 41 // ARM/thumb instructions must be 16-bit aligned, but all code pointers to be loaded 42 42 // into the processor are decorated with the bottom bit set, indicating that this is … … 125 125 126 126 explicit MacroAssemblerCodePtr(void* value) 127 #if PLATFORM (ARM_V7)127 #if PLATFORM_ARM_ARCH(7) 128 128 // Decorate the pointer as a thumb code pointer. 129 129 : m_value(reinterpret_cast<char*>(value) + 1) … … 142 142 143 143 void* executableAddress() const { return m_value; } 144 #if PLATFORM (ARM_V7)144 #if PLATFORM_ARM_ARCH(7) 145 145 // To use this pointer as a data address remove the decoration. 146 146 void* dataLocation() const { ASSERT_VALID_CODE_POINTER(m_value); return reinterpret_cast<char*>(m_value) - 1; }
Note:
See TracChangeset
for help on using the changeset viewer.