Changeset 43839 in webkit for trunk/JavaScriptCore/bytecode


Ignore:
Timestamp:
May 18, 2009, 1:22:52 PM (16 years ago)
Author:
[email protected]
Message:

2009-05-18 Jan Michael Alonzo <[email protected]>

Reviewed by Xan Lopez.

[Gtk] Various autotools build refactoring and fixes
https://bugs.webkit.org/show_bug.cgi?id=25286

Add -no-install and -no-fast-install to programs and tests that we
don't install. Also remove -O2 since this is already handled at
configure time.

  • GNUmakefile.am:
Location:
trunk/JavaScriptCore/bytecode
Files:
2 edited

Legend:

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

    r43837 r43839  
    14641464#if ENABLE(JIT)
    14651465            JIT::compile(m_globalData, &newCodeBlock);
    1466             ASSERT(newFunctionBody->generatedJITCode().size() == ownerNode()->generatedJITCode().size());
     1466            ASSERT(newCodeBlock.m_jitCode.codeSize == m_jitCode.codeSize);
    14671467#endif
    14681468
     
    14851485#if ENABLE(JIT)
    14861486            JIT::compile(m_globalData, &newCodeBlock);
    1487             ASSERT(newEvalBody->generatedJITCode().size() == ownerNode()->generatedJITCode().size());
     1487            ASSERT(newCodeBlock.m_jitCode.codeSize == m_jitCode.codeSize);
    14881488#endif
    14891489
     
    16791679
    16801680#if ENABLE(JIT)
    1681 void CodeBlock::setJITCode(JITCode jitCode)
    1682 {
    1683     ownerNode()->setJITCode(jitCode);
     1681void CodeBlock::setJITCode(JITCodeRef& jitCode)
     1682{
     1683    m_jitCode = jitCode;
    16841684#if !ENABLE(OPCODE_SAMPLING)
    16851685    if (!BytecodeGenerator::dumpsGeneratedCode())
  • trunk/JavaScriptCore/bytecode/CodeBlock.h

    r43837 r43839  
    6464    };
    6565
     66#if ENABLE(JIT)
     67    // The code, and the associated pool from which it was allocated.
     68    struct JITCodeRef {
     69        JITCode code;
     70#ifndef NDEBUG
     71        unsigned codeSize;
     72#endif
     73        RefPtr<ExecutablePool> executablePool;
     74
     75        JITCodeRef()
     76            : code(0)
     77#ifndef NDEBUG
     78            , codeSize(0)
     79#endif
     80        {
     81        }
     82       
     83        JITCodeRef(void* code, PassRefPtr<ExecutablePool> executablePool)
     84            : code(code)
     85#ifndef NDEBUG
     86            , codeSize(0)
     87#endif
     88            , executablePool(executablePool)
     89        {
     90        }
     91    };
     92#endif
     93
    6694    struct ExpressionRangeInfo {
    6795        enum {
     
    285313        {
    286314            reparseForExceptionInfoIfNecessary(callFrame);
    287             return binaryChop<CallReturnOffsetToBytecodeIndex, unsigned, getCallReturnOffset>(m_exceptionInfo->m_callReturnIndexVector.begin(), m_exceptionInfo->m_callReturnIndexVector.size(), ownerNode()->generatedJITCode().offsetOf(nativePC))->bytecodeIndex;
     315            return binaryChop<CallReturnOffsetToBytecodeIndex, unsigned, getCallReturnOffset>(m_exceptionInfo->m_callReturnIndexVector.begin(), m_exceptionInfo->m_callReturnIndexVector.size(), m_jitCode.code.offsetOf(nativePC))->bytecodeIndex;
    288316        }
    289317       
     
    300328
    301329#if ENABLE(JIT)
    302         void setJITCode(JITCode);
    303         ExecutablePool* executablePool() { return ownerNode()->getExecutablePool(); }
     330        void setJITCode(JITCodeRef& jitCode);
     331        JITCode jitCode() { return m_jitCode.code; }
     332        ExecutablePool* executablePool() { return m_jitCode.executablePool.get(); }
    304333#endif
    305334
     
    445474        unsigned m_instructionCount;
    446475#endif
     476#if ENABLE(JIT)
     477        JITCodeRef m_jitCode;
     478#endif
    447479
    448480        int m_thisRegister;
Note: See TracChangeset for help on using the changeset viewer.