Changeset 277942 in webkit
- Timestamp:
- May 23, 2021, 9:59:35 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/Source/JavaScriptCore/ChangeLog ¶
r277936 r277942 1 2021-05-23 Mark Lam <mark.lam@apple.com> 2 3 Remove some now invalid tests in testmasm. 4 https://bugs.webkit.org/show_bug.cgi?id=226155 5 6 Reviewed by Yusuke Suzuki. 7 8 The ARM64E tests were checking that cageConditionallyAndUntag() would fail to 9 produce a caged pointer if fed invalid values. These tests are no longer feasible 10 because on ARM64E, feeding cageConditionallyAndUntag() invalid values will now 11 result in a crash. This patch removes these tests. 12 13 * assembler/testmasm.cpp: 14 (JSC::testCagePreservesPACFailureBit): 15 1 16 2021-05-23 Mark Lam <mark.lam@apple.com> 2 17 -
TabularUnified trunk/Source/JavaScriptCore/assembler/testmasm.cpp ¶
r277936 r277942 1 1 /* 2 * Copyright (C) 2017-202 0Apple Inc. All rights reserved.2 * Copyright (C) 2017-2021 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 2447 2447 auto cage = compile([] (CCallHelpers& jit) { 2448 2448 emitFunctionPrologue(jit); 2449 jit.cageConditionallyAndUntag(Gigacage::Primitive, GPRInfo::argumentGPR0, GPRInfo::argumentGPR1, GPRInfo::argumentGPR2); 2449 constexpr GPRReg storageGPR = GPRInfo::argumentGPR0; 2450 constexpr GPRReg lengthGPR = GPRInfo::argumentGPR1; 2451 constexpr GPRReg scratchGPR = GPRInfo::argumentGPR2; 2452 jit.cageConditionallyAndUntag(Gigacage::Primitive, storageGPR, lengthGPR, scratchGPR); 2450 2453 jit.move(GPRInfo::argumentGPR0, GPRInfo::returnValueGPR); 2451 2454 emitFunctionEpilogue(jit); … … 2460 2463 void* taggedNotCagedPtr = tagArrayPtr(notCagedPtr, 1); 2461 2464 2462 if (isARM64E()) { 2463 CHECK_NOT_EQ(invoke<void*>(cage, taggedPtr, 2), ptr); 2464 CHECK_NOT_EQ(invoke<void*>(cage, taggedNotCagedPtr, 1), ptr); 2465 void* cagedTaggedNotCagedPtr = invoke<void*>(cage, taggedNotCagedPtr, 1); 2466 CHECK_NOT_EQ(cagedTaggedNotCagedPtr, removeArrayPtrTag(cagedTaggedNotCagedPtr)); 2467 } else 2465 if (!isARM64E()) 2468 2466 CHECK_EQ(invoke<void*>(cage, taggedPtr, 2), ptr); 2469 2467
Note:
See TracChangeset
for help on using the changeset viewer.