Changeset 43839 in webkit for trunk/JavaScriptCore/jit/JITCode.h


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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITCode.h

    r43837 r43839  
    3333#include "CallFrame.h"
    3434#include "JSValue.h"
    35 #include "MacroAssembler.h"
    3635#include "Profiler.h"
    3736
     
    4241
    4342    class JITCode {
    44         typedef MacroAssembler::CodeRef CodeRef;
    4543    public:
    46         JITCode()
     44        JITCode(void* code)
     45            : code(code)
    4746        {
    4847        }
    4948
    50         JITCode(const CodeRef ref)
    51             : m_ref(ref)
     49        operator bool() const
    5250        {
    53         }
    54 
    55         bool operator !() const
    56         {
    57             return !m_ref.m_code;
     51            return code != 0;
    5852        }
    5953
    6054        void* addressForCall()
    6155        {
    62             return m_ref.m_code;
     56            return code;
    6357        }
    6458
     
    6862        unsigned offsetOf(void* pointerIntoCode)
    6963        {
    70             intptr_t result = reinterpret_cast<intptr_t>(pointerIntoCode) - reinterpret_cast<intptr_t>(m_ref.m_code);
     64            intptr_t result = reinterpret_cast<intptr_t>(pointerIntoCode) - reinterpret_cast<intptr_t>(code);
    7165            ASSERT(static_cast<intptr_t>(static_cast<unsigned>(result)) == result);
    7266            return static_cast<unsigned>(result);
     
    8074                0, 0, 0, 0, 0, 0,
    8175#endif
    82                 m_ref.m_code, registerFile, callFrame, exception, Profiler::enabledProfilerReference(), globalData));
    83         }
    84 
    85 #ifndef NDEBUG
    86         size_t size()
    87         {
    88             ASSERT(m_ref.m_code);
    89             return m_ref.m_size;
    90         }
    91 #endif
    92 
    93         ExecutablePool* getExecutablePool()
    94         {
    95             return m_ref.m_executablePool.get();
    96         }
    97 
    98         // Host functions are a bit special; they have a m_code pointer but they
    99         // do not individully ref the executable pool containing the trampoline.
    100         static JITCode HostFunction(void* code)
    101         {
    102             return JITCode(code, 0, 0);
     76                code, registerFile, callFrame, exception, Profiler::enabledProfilerReference(), globalData));
    10377        }
    10478
    10579    private:
    106         JITCode(void* code, PassRefPtr<ExecutablePool> executablePool, size_t size)
    107             : m_ref(code, executablePool, size)
    108         {
    109         }
    110 
    111         CodeRef m_ref;
     80        void* code;
    11281    };
    11382
Note: See TracChangeset for help on using the changeset viewer.