Ignore:
Timestamp:
Jul 24, 2013, 9:00:54 PM (12 years ago)
Author:
[email protected]
Message:

fourthTier: Rename getJITCode and getJITType to jitCode and jitType.

Rubber stampted by Mark Hahnenberg.

  • assembler/RepatchBuffer.h:

(JSC::RepatchBuffer::RepatchBuffer):

  • bytecode/CodeBlock.cpp:

(JSC::CodeBlock::dump):
(JSC::CodeBlock::visitAggregate):
(JSC::CodeBlock::finalizeUnconditionally):
(JSC::CodeBlock::resetStubInternal):
(JSC::CodeBlock::stronglyVisitWeakReferences):
(JSC::CodeBlock::baselineVersion):
(JSC::CodeBlock::hasOptimizedReplacement):
(JSC::CodeBlock::bytecodeOffset):
(JSC::CodeBlock::codeOriginForReturn):
(JSC::ProgramCodeBlock::compileOptimized):
(JSC::EvalCodeBlock::compileOptimized):
(JSC::FunctionCodeBlock::compileOptimized):
(JSC::ProgramCodeBlock::jettison):
(JSC::EvalCodeBlock::jettison):
(JSC::FunctionCodeBlock::jettison):
(JSC::ProgramCodeBlock::jitCompileImpl):
(JSC::EvalCodeBlock::jitCompileImpl):
(JSC::FunctionCodeBlock::jitCompileImpl):
(JSC::CodeBlock::setOptimizationThresholdBasedOnCompilationResult):
(JSC::CodeBlock::adjustedExitCountThreshold):
(JSC::CodeBlock::tallyFrequentExitSites):

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::getCallLinkInfo):
(JSC::CodeBlock::jitCode):
(JSC::CodeBlock::jitCodeWithArityCheck):
(JSC::CodeBlock::jitType):
(JSC::CodeBlock::hasBaselineJITProfiling):
(JSC::CodeBlock::jitCompile):
(JSC::CodeBlock::addFrequentExitSite):
(JSC::CodeBlock::shouldImmediatelyAssumeLivenessDuringScan):
(JSC::ExecState::isInlineCallFrame):

  • dfg/DFGAssemblyHelpers.cpp:

(JSC::DFG::AssemblyHelpers::decodedCodeMapFor):

  • dfg/DFGAssemblyHelpers.h:

(JSC::DFG::AssemblyHelpers::AssemblyHelpers):

  • dfg/DFGDriver.cpp:

(JSC::DFG::compile):

  • dfg/DFGOSREntry.cpp:

(JSC::DFG::prepareOSREntry):

  • dfg/DFGOSRExit.cpp:

(JSC::DFG::OSRExit::codeLocationForRepatch):

  • dfg/DFGOSRExitCompiler.cpp:
  • dfg/DFGOSRExitCompilerCommon.cpp:

(JSC::DFG::reifyInlinedCallFrames):
(JSC::DFG::adjustAndJumpToTarget):

  • dfg/DFGOperations.cpp:
  • dfg/DFGVariableEventStream.cpp:

(JSC::DFG::VariableEventStream::reconstruct):

  • ftl/FTLOSRExit.cpp:

(JSC::FTL::OSRExit::codeLocationForRepatch):

  • ftl/FTLOSRExitCompiler.cpp:

(JSC::FTL::compileFTLOSRExit):

  • heap/DFGCodeBlocks.cpp:

(JSC::DFGCodeBlocks::~DFGCodeBlocks):
(JSC::DFGCodeBlocks::jettison):
(JSC::DFGCodeBlocks::clearMarks):
(JSC::DFGCodeBlocks::deleteUnmarkedJettisonedCodeBlocks):
(JSC::DFGCodeBlocks::traceMarkedCodeBlocks):

  • interpreter/Interpreter.cpp:

(JSC::getLineNumberForCallFrame):
(JSC::getCallerInfo):

  • jit/JITDriver.h:

(JSC::jitCompileIfAppropriateImpl):
(JSC::jitCompileFunctionIfAppropriateImpl):

  • jit/JITStubs.cpp:

(JSC::DEFINE_STUB_FUNCTION):

  • llint/LLIntSlowPaths.cpp:

(JSC::LLInt::entryOSR):
(JSC::LLInt::LLINT_SLOW_PATH_DECL):

  • runtime/Executable.cpp:

(JSC::jettisonCodeBlock):
(JSC::EvalExecutable::compileOptimized):
(JSC::EvalExecutable::jettisonOptimizedCode):
(JSC::ProgramExecutable::compileOptimized):
(JSC::ProgramExecutable::jettisonOptimizedCode):
(JSC::FunctionExecutable::baselineCodeBlockFor):
(JSC::FunctionExecutable::compileOptimizedForCall):
(JSC::FunctionExecutable::compileOptimizedForConstruct):
(JSC::FunctionExecutable::jettisonOptimizedCodeForCall):
(JSC::FunctionExecutable::jettisonOptimizedCodeForConstruct):

  • tools/CodeProfile.cpp:

(JSC::CodeProfile::sample):

File:
1 edited

Legend:

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

    r153170 r153177  
    118118void CodeBlock::dump(PrintStream& out) const
    119119{
    120     dumpAssumingJITType(out, getJITType());
     120    dumpAssumingJITType(out, jitType());
    121121}
    122122
     
    20532053{
    20542054#if ENABLE(PARALLEL_GC) && ENABLE(DFG_JIT)
    2055     if (JITCode::isOptimizingJIT(getJITType())) {
     2055    if (JITCode::isOptimizingJIT(jitType())) {
    20562056        DFG::CommonData* dfgCommon = m_jitCode->dfgCommon();
    20572057       
     
    23022302#if ENABLE(JIT)
    23032303    // Handle inline caches.
    2304     if (!!getJITCode()) {
     2304    if (!!jitCode()) {
    23052305        RepatchBuffer repatchBuffer(this);
    23062306        for (unsigned i = 0; i < numberOfCallLinkInfos(); ++i) {
     
    23622362        dataLog("Clearing structure cache (kind ", static_cast<int>(stubInfo.accessType), ") in ", *this, ".\n");
    23632363
    2364     switch (getJITType()) {
     2364    switch (jitType()) {
    23652365    case JITCode::BaselineJIT:
    23662366        if (isGetByIdAccess(accessType))
     
    24132413
    24142414#if ENABLE(DFG_JIT)
    2415     if (!JITCode::isOptimizingJIT(getJITType()))
     2415    if (!JITCode::isOptimizingJIT(jitType()))
    24162416        return;
    24172417   
     
    24362436    // to get its replacement. But we'll know that it's the original baseline code
    24372437    // block because it won't have JIT code yet and it won't have an alternative.
    2438     if (getJITType() == JITCode::None && !alternative())
     2438    if (jitType() == JITCode::None && !alternative())
    24392439        return this;
    24402440   
     
    24442444        result = result->alternative();
    24452445    ASSERT(result);
    2446     ASSERT(JITCode::isBaselineCode(result->getJITType()));
     2446    ASSERT(JITCode::isBaselineCode(result->jitType()));
    24472447    return result;
    24482448#else
     
    24542454bool CodeBlock::hasOptimizedReplacement()
    24552455{
    2456     ASSERT(JITCode::isBaselineCode(getJITType()));
    2457     bool result = JITCode::isHigherTier(replacement()->getJITType(), getJITType());
     2456    ASSERT(JITCode::isBaselineCode(jitType()));
     2457    bool result = JITCode::isHigherTier(replacement()->jitType(), jitType());
    24582458    if (result)
    2459         ASSERT(JITCode::isOptimizingJIT(replacement()->getJITType()));
     2459        ASSERT(JITCode::isOptimizingJIT(replacement()->jitType()));
    24602460    else {
    2461         ASSERT(JITCode::isBaselineCode(replacement()->getJITType()));
     2461        ASSERT(JITCode::isBaselineCode(replacement()->jitType()));
    24622462        ASSERT(replacement() == this);
    24632463    }
     
    27092709        RELEASE_ASSERT(exec->codeBlock());
    27102710        RELEASE_ASSERT(exec->codeBlock() == this);
    2711         RELEASE_ASSERT(JITCode::isBaselineCode(getJITType()));
     2711        RELEASE_ASSERT(JITCode::isBaselineCode(jitType()));
    27122712        Instruction* instruction = exec->currentVPC();
    27132713        RELEASE_ASSERT(instruction);
     
    27252725        return 1;
    27262726   
    2727     if (getJITCode()->contains(returnAddress.value())) {
    2728         unsigned callReturnOffset = getJITCode()->offsetOf(returnAddress.value());
     2727    if (jitCode()->contains(returnAddress.value())) {
     2728        unsigned callReturnOffset = jitCode()->offsetOf(returnAddress.value());
    27292729        CallReturnOffsetToBytecodeOffset* result =
    27302730            binarySearch<CallReturnOffsetToBytecodeOffset, unsigned>(
     
    27592759        return false;
    27602760
    2761     if (!getJITCode()->contains(returnAddress.value())) {
     2761    if (!jitCode()->contains(returnAddress.value())) {
    27622762        ClosureCallStubRoutine* stub = findClosureCallForReturnPC(returnAddress);
    27632763        ASSERT(stub);
     
    27682768    }
    27692769   
    2770     unsigned offset = getJITCode()->offsetOf(returnAddress.value());
     2770    unsigned offset = jitCode()->offsetOf(returnAddress.value());
    27712771    CodeOriginAtCallReturnOffset* entry =
    27722772        tryBinarySearch<CodeOriginAtCallReturnOffset, unsigned>(
     
    28422842JSObject* ProgramCodeBlock::compileOptimized(ExecState* exec, JSScope* scope, CompilationResult& result, unsigned bytecodeIndex)
    28432843{
    2844     if (JITCode::isHigherTier(replacement()->getJITType(), getJITType())) {
     2844    if (JITCode::isHigherTier(replacement()->jitType(), jitType())) {
    28452845        result = CompilationNotNeeded;
    28462846        return 0;
     
    28572857JSObject* EvalCodeBlock::compileOptimized(ExecState* exec, JSScope* scope, CompilationResult& result, unsigned bytecodeIndex)
    28582858{
    2859     if (JITCode::isHigherTier(replacement()->getJITType(), getJITType())) {
     2859    if (JITCode::isHigherTier(replacement()->jitType(), jitType())) {
    28602860        result = CompilationNotNeeded;
    28612861        return 0;
     
    28722872JSObject* FunctionCodeBlock::compileOptimized(ExecState* exec, JSScope* scope, CompilationResult& result, unsigned bytecodeIndex)
    28732873{
    2874     if (JITCode::isHigherTier(replacement()->getJITType(), getJITType())) {
     2874    if (JITCode::isHigherTier(replacement()->jitType(), jitType())) {
    28752875        result = CompilationNotNeeded;
    28762876        return 0;
     
    29042904void CodeBlock::jettison()
    29052905{
    2906     ASSERT(JITCode::isOptimizingJIT(getJITType()));
     2906    ASSERT(JITCode::isOptimizingJIT(jitType()));
    29072907    ASSERT(this == replacement());
    29082908    alternative()->optimizeAfterWarmUp();
     
    29202920void EvalCodeBlock::jettisonImpl()
    29212921{
     2922    ASSERT(JITCode::isOptimizingJIT(jitType()));
     2923    ASSERT(this == replacement());
     2924    if (DFG::shouldShowDisassembly())
     2925        dataLog("Jettisoning ", *this, ".\n");
    29222926    static_cast<EvalExecutable*>(ownerExecutable())->jettisonOptimizedCode(*vm());
    29232927}
     
    29252929void FunctionCodeBlock::jettisonImpl()
    29262930{
     2931    ASSERT(JITCode::isOptimizingJIT(jitType()));
     2932    ASSERT(this == replacement());
     2933    if (DFG::shouldShowDisassembly())
     2934        dataLog("Jettisoning ", *this, ".\n");
    29272935    static_cast<FunctionExecutable*>(ownerExecutable())->jettisonOptimizedCodeFor(*vm(), m_isConstructor ? CodeForConstruct : CodeForCall);
    29282936}
     
    29302938CompilationResult ProgramCodeBlock::jitCompileImpl(ExecState* exec)
    29312939{
    2932     ASSERT(getJITType() == JITCode::InterpreterThunk);
     2940    ASSERT(jitType() == JITCode::InterpreterThunk);
    29332941    ASSERT(this == replacement());
    29342942    return static_cast<ProgramExecutable*>(ownerExecutable())->jitCompile(exec);
     
    29372945CompilationResult EvalCodeBlock::jitCompileImpl(ExecState* exec)
    29382946{
    2939     ASSERT(getJITType() == JITCode::InterpreterThunk);
     2947    ASSERT(jitType() == JITCode::InterpreterThunk);
    29402948    ASSERT(this == replacement());
    29412949    return static_cast<EvalExecutable*>(ownerExecutable())->jitCompile(exec);
     
    29442952CompilationResult FunctionCodeBlock::jitCompileImpl(ExecState* exec)
    29452953{
    2946     ASSERT(getJITType() == JITCode::InterpreterThunk);
     2954    ASSERT(jitType() == JITCode::InterpreterThunk);
    29472955    ASSERT(this == replacement());
    29482956    return static_cast<FunctionExecutable*>(ownerExecutable())->jitCompileFor(exec, m_isConstructor ? CodeForConstruct : CodeForCall);
     
    31483156void CodeBlock::setOptimizationThresholdBasedOnCompilationResult(CompilationResult result)
    31493157{
    3150     RELEASE_ASSERT(getJITType() == JITCode::BaselineJIT);
     3158    RELEASE_ASSERT(jitType() == JITCode::BaselineJIT);
    31513159    RELEASE_ASSERT((result == CompilationSuccessful) == (replacement() != this));
    31523160    switch (result) {
    31533161    case CompilationSuccessful:
    3154         RELEASE_ASSERT(JITCode::isOptimizingJIT(replacement()->getJITType()));
     3162        RELEASE_ASSERT(JITCode::isOptimizingJIT(replacement()->jitType()));
    31553163        optimizeNextInvocation();
    31563164        break;
     
    31803188uint32_t CodeBlock::adjustedExitCountThreshold(uint32_t desiredThreshold)
    31813189{
    3182     ASSERT(JITCode::isOptimizingJIT(getJITType()));
     3190    ASSERT(JITCode::isOptimizingJIT(jitType()));
    31833191    // Compute this the lame way so we don't saturate. This is called infrequently
    31843192    // enough that this loop won't hurt us.
     
    33253333void CodeBlock::tallyFrequentExitSites()
    33263334{
    3327     ASSERT(JITCode::isOptimizingJIT(getJITType()));
    3328     ASSERT(alternative()->getJITType() == JITCode::BaselineJIT);
     3335    ASSERT(JITCode::isOptimizingJIT(jitType()));
     3336    ASSERT(alternative()->jitType() == JITCode::BaselineJIT);
    33293337   
    33303338    CodeBlock* profiledBlock = alternative();
    33313339   
    3332     switch (getJITType()) {
     3340    switch (jitType()) {
    33333341    case JITCode::DFGJIT: {
    33343342        DFG::JITCode* jitCode = m_jitCode->dfg();
Note: See TracChangeset for help on using the changeset viewer.