Ignore:
Timestamp:
May 25, 2010, 9:51:59 AM (15 years ago)
Author:
[email protected]
Message:

2010-05-25 Kwang Yul Seo <[email protected]>

Reviewed by Darin Adler.

Build fix for JSFunction
https://bugs.webkit.org/show_bug.cgi?id=39658

MSVC can't compile one of JSFunction constructors when JIT is disabled.
"PassRefPtr<NativeExecutable>" causes the compile error as NativeExecutable is not defined.
Add ENABLE(JIT) guard to the constructor.

  • runtime/JSFunction.cpp: (JSC::JSFunction::JSFunction):
  • runtime/JSFunction.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/JSFunction.h

    r60117 r60170  
    4646    public:
    4747        JSFunction(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, int length, const Identifier&, NativeFunction);
     48#if ENABLE(JIT)
    4849        JSFunction(ExecState*, JSGlobalObject*, NonNullPassRefPtr<Structure>, int length, const Identifier&, PassRefPtr<NativeExecutable>);
     50#endif
    4951        JSFunction(ExecState*, NonNullPassRefPtr<FunctionExecutable>, ScopeChainNode*);
    5052        virtual ~JSFunction();
Note: See TracChangeset for help on using the changeset viewer.