Changeset 237063 in webkit for trunk/Source/JavaScriptCore/assembler/MacroAssemblerPrinter.cpp
- Timestamp:
- Oct 11, 2018, 7:51:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/assembler/MacroAssemblerPrinter.cpp
r236805 r237063 132 132 } 133 133 134 // assuming memory is not malformed, it originally pointed to a value 135 // of the size with which we use it below, so the bitwise_casts should 136 // be safe, including regarding alignment. 134 137 if (memory.dumpStyle == Memory::SingleWordDump) { 135 138 if (memory.numBytes == sizeof(int8_t)) { … … 139 142 } 140 143 if (memory.numBytes == sizeof(int16_t)) { 141 auto p = reinterpret_cast<int16_t*>(ptr);144 auto p = bitwise_cast<int16_t*>(ptr); 142 145 out.printf("%p:<0x%04x %d>", p, *p, *p); 143 146 return; 144 147 } 145 148 if (memory.numBytes == sizeof(int32_t)) { 146 auto p = reinterpret_cast<int32_t*>(ptr);149 auto p = bitwise_cast<int32_t*>(ptr); 147 150 out.printf("%p:<0x%08x %d>", p, *p, *p); 148 151 return; 149 152 } 150 153 if (memory.numBytes == sizeof(int64_t)) { 151 auto p = reinterpret_cast<int64_t*>(ptr);154 auto p = bitwise_cast<int64_t*>(ptr); 152 155 out.printf("%p:<0x%016" PRIx64 " %" PRId64 ">", p, *p, *p); 153 156 return;
Note:
See TracChangeset
for help on using the changeset viewer.