Ignore:
Timestamp:
Sep 21, 2014, 12:18:40 PM (11 years ago)
Author:
[email protected]
Message:

Structure::getConcurrently() doesn't need to take a VM& argument.

Rubber stamped by Dan Bernstein.

Removed the extra argument, and then removed similar arguments from other methods until
I could build successfully again. It turned out that many methods took a VM& argument
just for calling getConcurrently().

  • bytecode/CodeBlock.cpp:

(JSC::dumpStructure):
(JSC::dumpChain):
(JSC::CodeBlock::printGetByIdCacheStatus):
(JSC::CodeBlock::printPutByIdCacheStatus):

  • bytecode/ComplexGetStatus.cpp:

(JSC::ComplexGetStatus::computeFor):

  • bytecode/GetByIdStatus.cpp:

(JSC::GetByIdStatus::computeFromLLInt):
(JSC::GetByIdStatus::computeForStubInfo):
(JSC::GetByIdStatus::computeFor):

  • bytecode/GetByIdStatus.h:
  • bytecode/PutByIdStatus.cpp:

(JSC::PutByIdStatus::computeFromLLInt):
(JSC::PutByIdStatus::computeForStubInfo):
(JSC::PutByIdStatus::computeFor):

  • bytecode/PutByIdStatus.h:
  • dfg/DFGAbstractInterpreterInlines.h:

(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::parseBlock):

  • dfg/DFGConstantFoldingPhase.cpp:

(JSC::DFG::ConstantFoldingPhase::foldConstants):

  • dfg/DFGFixupPhase.cpp:

(JSC::DFG::FixupPhase::isStringPrototypeMethodSane):

  • runtime/IntendedStructureChain.cpp:

(JSC::IntendedStructureChain::mayInterceptStoreTo):

  • runtime/IntendedStructureChain.h:
  • runtime/Structure.cpp:

(JSC::Structure::getConcurrently):

  • runtime/Structure.h:
  • runtime/StructureInlines.h:

(JSC::Structure::getConcurrently):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/PutByIdStatus.cpp

    r173069 r173797  
    7676    if (instruction[0].u.opcode == LLInt::getOpcode(op_put_by_id)
    7777        || 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);
    7979        if (!isValidOffset(offset))
    8080            return PutByIdStatus(NoInformation);
     
    9595    ASSERT(chain);
    9696   
    97     PropertyOffset offset = newStructure->getConcurrently(*profiledBlock->vm(), uid);
     97    PropertyOffset offset = newStructure->getConcurrently(uid);
    9898    if (!isValidOffset(offset))
    9999        return PutByIdStatus(NoInformation);
     
    147147    case access_put_by_id_replace: {
    148148        PropertyOffset offset =
    149             stubInfo->u.putByIdReplace.baseObjectStructure->getConcurrently(
    150                 *profiledBlock->vm(), uid);
     149            stubInfo->u.putByIdReplace.baseObjectStructure->getConcurrently(uid);
    151150        if (isValidOffset(offset)) {
    152151            return PutByIdVariant::replace(
     
    160159        ASSERT(stubInfo->u.putByIdTransition.previousStructure->transitionWatchpointSetHasBeenInvalidated());
    161160        PropertyOffset offset =
    162             stubInfo->u.putByIdTransition.structure->getConcurrently(
    163                 *profiledBlock->vm(), uid);
     161            stubInfo->u.putByIdTransition.structure->getConcurrently(uid);
    164162        if (isValidOffset(offset)) {
    165163            RefPtr<IntendedStructureChain> chain;
     
    205203            case PutByIdAccess::Replace: {
    206204                Structure* structure = access.structure();
    207                 PropertyOffset offset = structure->getConcurrently(*profiledBlock->vm(), uid);
     205                PropertyOffset offset = structure->getConcurrently(uid);
    208206                if (!isValidOffset(offset))
    209207                    return PutByIdStatus(slowPathState);
     
    214212            case PutByIdAccess::Transition: {
    215213                PropertyOffset offset =
    216                     access.newStructure()->getConcurrently(*profiledBlock->vm(), uid);
     214                    access.newStructure()->getConcurrently(uid);
    217215                if (!isValidOffset(offset))
    218216                    return PutByIdStatus(slowPathState);
     
    311309}
    312310
    313 PutByIdStatus PutByIdStatus::computeFor(VM& vm, JSGlobalObject* globalObject, const StructureSet& set, StringImpl* uid, bool isDirect)
     311PutByIdStatus PutByIdStatus::computeFor(JSGlobalObject* globalObject, const StructureSet& set, StringImpl* uid, bool isDirect)
    314312{
    315313    if (toUInt32FromStringImpl(uid) != PropertyName::NotAnIndex)
     
    331329   
    332330        unsigned attributes;
    333         PropertyOffset offset = structure->getConcurrently(vm, uid, attributes);
     331        PropertyOffset offset = structure->getConcurrently(uid, attributes);
    334332        if (isValidOffset(offset)) {
    335333            if (attributes & CustomAccessor)
     
    371369       
    372370            // If the prototype chain has setters or read-only properties, then give up.
    373             if (chain->mayInterceptStoreTo(vm, uid))
     371            if (chain->mayInterceptStoreTo(uid))
    374372                return PutByIdStatus(TakesSlowPath);
    375373       
Note: See TracChangeset for help on using the changeset viewer.