Changeset 266251 in webkit for trunk/Source/JavaScriptCore/jit/JITOperations.cpp
- Timestamp:
- Aug 27, 2020, 1:11:57 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITOperations.cpp
r265600 r266251 213 213 214 214 CodeBlock* codeBlock = callFrame->codeBlock(); 215 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier) && !slot.isTaintedByOpaqueObject() && (slot.isCacheableValue() || slot.isCacheableGetter() || slot.isUnset()))215 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier) && !slot.isTaintedByOpaqueObject() && (slot.isCacheableValue() || slot.isCacheableGetter() || slot.isUnset())) 216 216 repatchGetBy(globalObject, codeBlock, baseValue, identifier, slot, *stubInfo, GetByKind::Try); 217 217 … … 272 272 273 273 CodeBlock* codeBlock = callFrame->codeBlock(); 274 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier))274 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier)) 275 275 repatchGetBy(globalObject, codeBlock, baseValue, identifier, slot, *stubInfo, GetByKind::Direct); 276 276 … … 335 335 336 336 CodeBlock* codeBlock = callFrame->codeBlock(); 337 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier))337 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier)) 338 338 repatchGetBy(globalObject, codeBlock, baseValue, identifier, slot, *stubInfo, GetByKind::Normal); 339 339 return found ? slot.getValue(globalObject, ident) : jsUndefined(); … … 395 395 396 396 CodeBlock* codeBlock = callFrame->codeBlock(); 397 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier))397 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier)) 398 398 repatchGetBy(globalObject, codeBlock, baseValue, identifier, slot, *stubInfo, GetByKind::WithThis); 399 399 return found ? slot.getValue(globalObject, ident) : jsUndefined(); … … 2147 2147 2148 2148 CacheableIdentifier identifier = CacheableIdentifier::createFromCell(subscript.asCell()); 2149 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier))2149 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier)) 2150 2150 repatchGetBy(globalObject, codeBlock, baseValue, identifier, slot, *stubInfo, GetByKind::NormalByVal); 2151 2151 return found ? slot.getValue(globalObject, propertyName) : jsUndefined(); … … 2244 2244 2245 2245 CacheableIdentifier identifier = CacheableIdentifier::createFromCell(fieldNameValue.asCell()); 2246 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier))2246 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier)) 2247 2247 repatchGetBy(globalObject, codeBlock, baseValue, identifier, slot, *stubInfo, GetByKind::PrivateName); 2248 2248 return JSValue::encode(slot.getValue(globalObject, fieldName)); … … 2359 2359 2360 2360 DeletePropertySlot slot; 2361 Structure* oldStructure = baseValue.structureOrNull( );2361 Structure* oldStructure = baseValue.structureOrNull(vm); 2362 2362 2363 2363 CacheableIdentifier identifier = CacheableIdentifier::createFromRawBits(rawCacheableIdentifier); … … 2370 2370 if (!parseIndex(ident)) { 2371 2371 CodeBlock* codeBlock = callFrame->codeBlock(); 2372 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier))2372 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier)) 2373 2373 repatchDeleteBy(globalObject, codeBlock, slot, baseValue, oldStructure, identifier, *stubInfo, DelByKind::Normal, ecmaMode); 2374 2374 } … … 2423 2423 2424 2424 DeletePropertySlot slot; 2425 Structure* oldStructure = baseValue.structureOrNull( );2425 Structure* oldStructure = baseValue.structureOrNull(vm); 2426 2426 2427 2427 bool result = deleteByVal(globalObject, vm, slot, baseValue, subscript, ecmaMode); … … 2435 2435 CodeBlock* codeBlock = callFrame->codeBlock(); 2436 2436 CacheableIdentifier identifier = CacheableIdentifier::createFromCell(subscript.asCell()); 2437 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull( ), identifier))2437 if (stubInfo->considerCachingBy(vm, codeBlock, baseValue.structureOrNull(vm), identifier)) 2438 2438 repatchDeleteBy(globalObject, codeBlock, slot, baseValue, oldStructure, identifier, *stubInfo, DelByKind::NormalByVal, ecmaMode); 2439 2439 } … … 2515 2515 2516 2516 CodeBlock* codeBlock = callFrame->codeBlock(); 2517 if (stubInfo->considerCachingGeneric(vm, codeBlock, value.structureOrNull( )))2517 if (stubInfo->considerCachingGeneric(vm, codeBlock, value.structureOrNull(vm))) 2518 2518 repatchInstanceOf(globalObject, codeBlock, value, proto, *stubInfo, result); 2519 2519
Note:
See TracChangeset
for help on using the changeset viewer.