Skip to content
  • fpizlo@apple.com's avatar
    CodeBlock::m_numParameters should be encapsulated · c4d5496c
    fpizlo@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=75985
    <rdar://problem/10671020>
    
    Reviewed by Oliver Hunt.
            
    Encapsulated CodeBlock::m_numParameters and hooked argument profile creation
    into it.  This appears to be performance neutral.
    
    * bytecode/CodeBlock.cpp:
    (JSC::CodeBlock::CodeBlock):
    (JSC::CodeBlock::setNumParameters):
    (JSC::CodeBlock::addParameter):
    * bytecode/CodeBlock.h:
    (JSC::CodeBlock::numParameters):
    (JSC::CodeBlock::addressOfNumParameters):
    (JSC::CodeBlock::offsetOfNumParameters):
    (JSC::CodeBlock::numberOfArgumentValueProfiles):
    * bytecompiler/BytecodeGenerator.cpp:
    (JSC::BytecodeGenerator::BytecodeGenerator):
    (JSC::BytecodeGenerator::addParameter):
    (JSC::BytecodeGenerator::emitReturn):
    * dfg/DFGAbstractState.cpp:
    (JSC::DFG::AbstractState::AbstractState):
    * dfg/DFGByteCodeParser.cpp:
    (JSC::DFG::ByteCodeParser::ByteCodeParser):
    (JSC::DFG::ByteCodeParser::InlineStackEntry::InlineStackEntry):
    * dfg/DFGGraph.cpp:
    (JSC::DFG::Graph::predictArgumentTypes):
    * dfg/DFGJITCompiler.cpp:
    (JSC::DFG::JITCompiler::compileFunction):
    * dfg/DFGOperations.cpp:
    * dfg/DFGSpeculativeJIT.cpp:
    (JSC::DFG::SpeculativeJIT::checkArgumentTypes):
    * dfg/DFGSpeculativeJIT.h:
    (JSC::DFG::SpeculativeJIT::SpeculativeJIT):
    * interpreter/Interpreter.cpp:
    (JSC::Interpreter::slideRegisterWindowForCall):
    (JSC::Interpreter::dumpRegisters):
    (JSC::Interpreter::execute):
    (JSC::Interpreter::prepareForRepeatCall):
    * jit/JIT.cpp:
    (JSC::JIT::privateCompile):
    * jit/JITStubs.cpp:
    (JSC::arityCheckFor):
    (JSC::lazyLinkFor):
    * runtime/Executable.cpp:
    (JSC::FunctionExecutable::compileForCallInternal):
    (JSC::FunctionExecutable::compileForConstructInternal):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@104630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c4d5496c