Changeset 177401 in webkit for trunk/Source/JavaScriptCore/jit/Repatch.cpp
- Timestamp:
- Dec 16, 2014, 3:08:24 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/Repatch.cpp
r177380 r177401 1225 1225 } 1226 1226 1227 static InlineCacheAction tryCachePutByID(ExecState* exec, JSValue baseValue, Structure* structure,const Identifier& ident, const PutPropertySlot& slot, StructureStubInfo& stubInfo, PutKind putKind)1227 static InlineCacheAction tryCachePutByID(ExecState* exec, JSValue baseValue, const Identifier& ident, const PutPropertySlot& slot, StructureStubInfo& stubInfo, PutKind putKind) 1228 1228 { 1229 1229 if (Options::forceICFailure()) … … 1236 1236 return GiveUpOnCache; 1237 1237 JSCell* baseCell = baseValue.asCell(); 1238 1239 if (baseCell->structure(*vm)->id() != structure->id()) 1240 return GiveUpOnCache; 1241 1238 Structure* structure = baseCell->structure(*vm); 1242 1239 Structure* oldStructure = structure->previousID(); 1243 1240 … … 1337 1334 } 1338 1335 1339 void repatchPutByID(ExecState* exec, JSValue baseValue, Structure* structure,const Identifier& propertyName, const PutPropertySlot& slot, StructureStubInfo& stubInfo, PutKind putKind)1336 void repatchPutByID(ExecState* exec, JSValue baseValue, const Identifier& propertyName, const PutPropertySlot& slot, StructureStubInfo& stubInfo, PutKind putKind) 1340 1337 { 1341 1338 GCSafeConcurrentJITLocker locker(exec->codeBlock()->m_lock, exec->vm().heap); 1342 1339 1343 if (tryCachePutByID(exec, baseValue, structure,propertyName, slot, stubInfo, putKind) == GiveUpOnCache)1340 if (tryCachePutByID(exec, baseValue, propertyName, slot, stubInfo, putKind) == GiveUpOnCache) 1344 1341 repatchCall(exec->codeBlock(), stubInfo.callReturnLocation, appropriateGenericPutByIdFunction(slot, putKind)); 1345 1342 }
Note:
See TracChangeset
for help on using the changeset viewer.