Changeset 172149 in webkit for trunk/Source/JavaScriptCore/ftl


Ignore:
Timestamp:
Aug 6, 2014, 8:44:57 AM (11 years ago)
Author:
Dániel Bátyai
Message:

[JSC] Build fix for FTL on EFL after ftlopt merge
https://bugs.webkit.org/show_bug.cgi?id=135565

Reviewed by Mark Lam.

Source/JavaScriptCore:

Adding an enable guard for native inlining, since it now requires the bitcode
emitted from Clang, and we don't have a good way of creating it from other compilers.

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::handleCall):

  • ftl/FTLLowerDFGToLLVM.cpp:

(JSC::FTL::LowerDFGToLLVM::compileNode):

  • ftl/FTLState.cpp:

(JSC::FTL::State::State):

  • ftl/FTLState.h:

Source/WTF:

Added ENABLE(FTL_NATIVE_CALL_INLINING).

  • wtf/Platform.h:
Location:
trunk/Source/JavaScriptCore/ftl
Files:
3 edited

Legend:

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

    r172129 r172149  
    2929#if ENABLE(FTL_JIT)
    3030
    31 #include "BundlePath.h"
    3231#include "CodeBlockWithJITType.h"
    3332#include "DFGAbstractInterpreterInlines.h"
     
    4948#include <llvm/InitializeLLVM.h>
    5049#include <wtf/ProcessID.h>
     50
     51#if ENABLE(FTL_NATIVE_CALL_INLINING)
     52#include "BundlePath.h"
     53#endif
    5154
    5255namespace JSC { namespace FTL {
     
    632635            compileCallOrConstruct();
    633636            break;
     637#if ENABLE(FTL_NATIVE_CALL_INLINING)
    634638        case NativeCall:
    635639        case NativeConstruct:
    636640            compileNativeCallOrConstruct();
    637641            break;
     642#endif
    638643        case Jump:
    639644            compileJump();
     
    36313636        setBoolean(m_out.bitNot(boolify(m_node->child1())));
    36323637    }
    3633 
     3638#if ENABLE(FTL_NATIVE_CALL_INLINING)
    36343639    void compileNativeCallOrConstruct()
    36353640    {
     
    36853690        setJSValue(call);
    36863691    }
     3692#endif
    36873693
    36883694    void compileCallOrConstruct()
     
    40974103    }
    40984104   
     4105#if ENABLE(FTL_NATIVE_CALL_INLINING)
    40994106    LValue getFunctionBySymbol(const CString symbol)
    41004107    {
     
    41964203        return true;
    41974204    }
     4205#endif
    41984206
    41994207    bool isInlinableSize(LValue function)
  • trunk/Source/JavaScriptCore/ftl/FTLState.cpp

    r171391 r172149  
    3333#include "FTLJITCode.h"
    3434#include "FTLJITFinalizer.h"
    35 #include "InlineRuntimeSymbolTable.h"
    3635#include <llvm/InitializeLLVM.h>
    3736#include <stdio.h>
     37
     38#if ENABLE(FTL_NATIVE_CALL_INLINING)
     39#include "InlineRuntimeSymbolTable.h"
     40#endif
    3841
    3942namespace JSC { namespace FTL {
     
    5154{
    5255
     56#if ENABLE(FTL_NATIVE_CALL_INLINING)
    5357#define SYMBOL_TABLE_ADD(symbol, file) \
    5458    symbolTable.fastAdd(symbol, file);
    5559    FOR_EACH_LIBRARY_SYMBOL(SYMBOL_TABLE_ADD)
    5660#undef SYMBOL_TABLE_ADD
     61#endif
    5762   
    5863    switch (graph.m_plan.mode) {
  • trunk/Source/JavaScriptCore/ftl/FTLState.h

    r172129 r172149  
    8585
    8686    HashSet<CString> nativeLoadedLibraries;
     87
     88#if ENABLE(FTL_NATIVE_CALL_INLINING)
    8789    HashMap<CString, CString> symbolTable;
     90#endif
    8891};
    8992
Note: See TracChangeset for help on using the changeset viewer.