Ignore:
Timestamp:
Jul 24, 2013, 8:58:38 PM (12 years ago)
Author:
[email protected]
Message:

fourthTier: Landing the initial FTL logic in a single commit to avoid spurious
broken builds.

Location:
trunk/Source/JavaScriptCore/ftl
Files:
1 added
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ftl/FTLState.cpp

    r153120 r153121  
    2424 */
    2525
    26 #ifndef DFGOSRExitCompilerCommon_h
    27 #define DFGOSRExitCompilerCommon_h
     26#include "config.h"
     27#include "FTLState.h"
    2828
    29 #include <wtf/Platform.h>
     29#if ENABLE(FTL_JIT)
    3030
    31 #if ENABLE(DFG_JIT)
     31#include "CodeBlockWithJITType.h"
    3232
    33 #include "DFGCCallHelpers.h"
    34 #include "DFGOSRExit.h"
     33namespace JSC { namespace FTL {
    3534
    36 namespace JSC { namespace DFG {
     35using namespace DFG;
    3736
    38 void handleExitCounts(CCallHelpers&, const OSRExit&);
    39 void reifyInlinedCallFrames(CCallHelpers&, const OSRExit&);
    40 void adjustAndJumpToTarget(CCallHelpers&, const OSRExit&);
     37State::State(Graph& graph)
     38    : graph(graph)
     39    , module(0)
     40    , function(0)
     41    , jitCode(adoptRef(new JITCode()))
     42{
     43}
    4144
    42 } } // namespace JSC::DFG
     45void State::dumpState(const char* when)
     46{
     47    dataLog("LLVM IR for ", CodeBlockWithJITType(graph.m_codeBlock, FTL::JITCode::FTLJIT), " ", when, ":\n");
     48    dumpModule(module);
     49}
    4350
    44 #endif // ENABLE(DFG_JIT)
     51} } // namespace JSC::FTL
    4552
    46 #endif // DFGOSRExitCompilerCommon_h
     53#endif // ENABLE(FTL_JIT)
    4754
Note: See TracChangeset for help on using the changeset viewer.