Changeset 235021 in webkit
- Timestamp:
- Aug 19, 2018 5:24:47 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r235018 r235021 1 2018-08-19 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r234852. 4 https://bugs.webkit.org/show_bug.cgi?id=188736 5 6 Workaround is not correct (Requested by yusukesuzuki on 7 #webkit). 8 9 Reverted changeset: 10 11 "[JSC] Should not rotate constant with 64" 12 https://bugs.webkit.org/show_bug.cgi?id=188556 13 https://trac.webkit.org/changeset/234852 14 1 15 2018-08-19 Yusuke Suzuki <yusukesuzuki@slowstart.org> 2 16 -
trunk/Source/JavaScriptCore/assembler/MacroAssembler.h
r234984 r235021 1291 1291 return shouldBlindPointerForSpecificArch(value); 1292 1292 } 1293 1294 uint8_t generateRotationSeed(size_t widthInBits)1295 {1296 // Generate the seed in [0, widthInBits). We should not generate widthInBits1297 // since it leads to `<< widthInBits`, which is an undefined behavior.1298 return random() % (widthInBits - 1);1299 }1300 1293 1301 1294 struct RotatedImmPtr { … … 1311 1304 RotatedImmPtr rotationBlindConstant(ImmPtr imm) 1312 1305 { 1313 uint8_t rotation = generateRotationSeed(sizeof(void*) * 8);1306 uint8_t rotation = random() % (sizeof(void*) * 8); 1314 1307 uintptr_t value = imm.asTrustedImmPtr().asIntptr(); 1315 1308 value = (value << rotation) | (value >> (sizeof(void*) * 8 - rotation)); … … 1379 1372 RotatedImm64 rotationBlindConstant(Imm64 imm) 1380 1373 { 1381 uint8_t rotation = generateRotationSeed(sizeof(int64_t) * 8);1374 uint8_t rotation = random() % (sizeof(int64_t) * 8); 1382 1375 uint64_t value = imm.asTrustedImm64().m_value; 1383 1376 value = (value << rotation) | (value >> (sizeof(int64_t) * 8 - rotation));
Note: See TracChangeset
for help on using the changeset viewer.