Changeset 173797 in webkit for trunk/Source/JavaScriptCore/bytecode/PutByIdStatus.cpp
- Timestamp:
- Sep 21, 2014, 12:18:40 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/PutByIdStatus.cpp
r173069 r173797 76 76 if (instruction[0].u.opcode == LLInt::getOpcode(op_put_by_id) 77 77 || instruction[0].u.opcode == LLInt::getOpcode(op_put_by_id_out_of_line)) { 78 PropertyOffset offset = structure->getConcurrently( *profiledBlock->vm(),uid);78 PropertyOffset offset = structure->getConcurrently(uid); 79 79 if (!isValidOffset(offset)) 80 80 return PutByIdStatus(NoInformation); … … 95 95 ASSERT(chain); 96 96 97 PropertyOffset offset = newStructure->getConcurrently( *profiledBlock->vm(),uid);97 PropertyOffset offset = newStructure->getConcurrently(uid); 98 98 if (!isValidOffset(offset)) 99 99 return PutByIdStatus(NoInformation); … … 147 147 case access_put_by_id_replace: { 148 148 PropertyOffset offset = 149 stubInfo->u.putByIdReplace.baseObjectStructure->getConcurrently( 150 *profiledBlock->vm(), uid); 149 stubInfo->u.putByIdReplace.baseObjectStructure->getConcurrently(uid); 151 150 if (isValidOffset(offset)) { 152 151 return PutByIdVariant::replace( … … 160 159 ASSERT(stubInfo->u.putByIdTransition.previousStructure->transitionWatchpointSetHasBeenInvalidated()); 161 160 PropertyOffset offset = 162 stubInfo->u.putByIdTransition.structure->getConcurrently( 163 *profiledBlock->vm(), uid); 161 stubInfo->u.putByIdTransition.structure->getConcurrently(uid); 164 162 if (isValidOffset(offset)) { 165 163 RefPtr<IntendedStructureChain> chain; … … 205 203 case PutByIdAccess::Replace: { 206 204 Structure* structure = access.structure(); 207 PropertyOffset offset = structure->getConcurrently( *profiledBlock->vm(),uid);205 PropertyOffset offset = structure->getConcurrently(uid); 208 206 if (!isValidOffset(offset)) 209 207 return PutByIdStatus(slowPathState); … … 214 212 case PutByIdAccess::Transition: { 215 213 PropertyOffset offset = 216 access.newStructure()->getConcurrently( *profiledBlock->vm(),uid);214 access.newStructure()->getConcurrently(uid); 217 215 if (!isValidOffset(offset)) 218 216 return PutByIdStatus(slowPathState); … … 311 309 } 312 310 313 PutByIdStatus PutByIdStatus::computeFor( VM& vm,JSGlobalObject* globalObject, const StructureSet& set, StringImpl* uid, bool isDirect)311 PutByIdStatus PutByIdStatus::computeFor(JSGlobalObject* globalObject, const StructureSet& set, StringImpl* uid, bool isDirect) 314 312 { 315 313 if (toUInt32FromStringImpl(uid) != PropertyName::NotAnIndex) … … 331 329 332 330 unsigned attributes; 333 PropertyOffset offset = structure->getConcurrently( vm,uid, attributes);331 PropertyOffset offset = structure->getConcurrently(uid, attributes); 334 332 if (isValidOffset(offset)) { 335 333 if (attributes & CustomAccessor) … … 371 369 372 370 // If the prototype chain has setters or read-only properties, then give up. 373 if (chain->mayInterceptStoreTo( vm,uid))371 if (chain->mayInterceptStoreTo(uid)) 374 372 return PutByIdStatus(TakesSlowPath); 375 373
Note:
See TracChangeset
for help on using the changeset viewer.