https://bugs.webkit.org/show_bug.cgi?id=75812
Reviewed by Csaba Osztrogonác.
* dfg/DFGOperations.cpp:
(JSC):
* jit/HostCallReturnValue.h:
(JSC::initializeHostCallReturnValue):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108326
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2012-02-21 Filip Pizlo <fpizlo@apple.com>
+ Fix massive crashes in all tests introduced by previous build fix, and fix non-DFG build.
+ https://bugs.webkit.org/show_bug.cgi?id=75812
+
+ Reviewed by Csaba Osztrogonác.
+
+ * dfg/DFGOperations.cpp:
+ (JSC):
+ * jit/HostCallReturnValue.h:
+ (JSC::initializeHostCallReturnValue):
+
+2012-02-21 Filip Pizlo <fpizlo@apple.com>
+
Attempted build fix for ELF platforms.
* dfg/DFGOperations.cpp:
#include "config.h"
#include "DFGOperations.h"
-#if ENABLE(DFG_JIT)
-
#include "CodeBlock.h"
#include "DFGOSRExit.h"
#include "DFGRepatch.h"
#include "JSGlobalData.h"
#include "Operations.h"
+#if ENABLE(DFG_JIT)
+
#if CPU(X86_64)
#define FUNCTION_WRAPPER_WITH_RETURN_ADDRESS(function, register) \
#endif
} // extern "C"
-} // namespace DFG
+} } // namespace JSC::DFG
+
+#endif
#if COMPILER(GCC)
+namespace JSC {
+
#if CPU(X86_64)
asm (
".globl " SYMBOL_STRING(getHostCallReturnValue) "\n"
return JSValue::encode(exec->globalData().hostCallReturnValue);
}
-#endif // COMPILER(GCC)
-
} // namespace JSC
-#endif
+#endif // COMPILER(GCC)
+
inline void initializeHostCallReturnValue()
{
- getHostCallReturnValue();
getHostCallReturnValueWithExecState(0);
}