Changeset 220416 in webkit for trunk/Source/JavaScriptCore/jit/AssemblyHelpers.h
- Timestamp:
- Aug 8, 2017, 12:44:20 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/AssemblyHelpers.h
r220404 r220416 1310 1310 storeFence(); 1311 1311 ok.link(this); 1312 } 1313 1314 void cage(Gigacage::Kind kind, GPRReg storage) 1315 { 1316 #if GIGACAGE_ENABLED 1317 if (!Gigacage::shouldBeEnabled()) 1318 return; 1319 1320 andPtr(TrustedImmPtr(static_cast<size_t>(GIGACAGE_MASK)), storage); 1321 addPtr(TrustedImmPtr(Gigacage::basePtr(kind)), storage); 1322 #else 1323 UNUSED_PARAM(kind); 1324 UNUSED_PARAM(storage); 1325 #endif 1326 } 1327 1328 void cageConditionally(Gigacage::Kind kind, GPRReg storage, GPRReg scratch) 1329 { 1330 #if GIGACAGE_ENABLED 1331 if (!Gigacage::shouldBeEnabled()) 1332 return; 1333 1334 if (kind != Gigacage::Primitive || Gigacage::isDisablingPrimitiveGigacageDisabled()) 1335 return cage(kind, storage); 1336 1337 loadPtr(&Gigacage::basePtr(kind), scratch); 1338 Jump done = branchTestPtr(Zero, scratch); 1339 andPtr(TrustedImmPtr(static_cast<size_t>(GIGACAGE_MASK)), storage); 1340 addPtr(scratch, storage); 1341 done.link(this); 1342 #else 1343 UNUSED_PARAM(kind); 1344 UNUSED_PARAM(storage); 1345 UNUSED_PARAM(scratch); 1346 #endif 1312 1347 } 1313 1348
Note:
See TracChangeset
for help on using the changeset viewer.