2012-10-08 08:25:21 +00:00
|
|
|
#include <config.h>
|
2012-09-23 08:28:13 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2012-09-23 08:44:12 +00:00
|
|
|
#include <qdebug.h>
|
|
|
|
|
2012-09-23 08:28:13 +00:00
|
|
|
namespace WTF {
|
|
|
|
|
2012-10-09 08:28:59 +00:00
|
|
|
void* fastMalloc(size_t size)
|
2012-09-23 08:28:13 +00:00
|
|
|
{
|
|
|
|
return malloc(size);
|
|
|
|
}
|
|
|
|
|
2012-10-10 20:40:16 +00:00
|
|
|
void* fastRealloc(void* ptr, size_t size)
|
|
|
|
{
|
|
|
|
return realloc(ptr, size);
|
|
|
|
}
|
|
|
|
|
2012-09-23 08:28:13 +00:00
|
|
|
void fastFree(void* ptr)
|
|
|
|
{
|
|
|
|
free(ptr);
|
|
|
|
}
|
|
|
|
|
2012-10-08 08:25:21 +00:00
|
|
|
uint32_t cryptographicallyRandomNumber()
|
2012-09-23 08:28:13 +00:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-10-12 06:51:02 +00:00
|
|
|
static FILE* s_dataFile = stderr;
|
2012-10-09 06:17:47 +00:00
|
|
|
|
|
|
|
void setDataFile(FILE* f)
|
|
|
|
{
|
|
|
|
s_dataFile = f;
|
|
|
|
}
|
|
|
|
|
2012-09-23 08:28:13 +00:00
|
|
|
FILE* dataFile()
|
|
|
|
{
|
2012-10-09 06:17:47 +00:00
|
|
|
return s_dataFile;
|
2012-09-23 08:28:13 +00:00
|
|
|
}
|
|
|
|
|
2012-09-23 08:44:12 +00:00
|
|
|
void dataLogV(const char* format, va_list args)
|
2012-09-23 08:28:13 +00:00
|
|
|
{
|
2012-09-23 08:44:12 +00:00
|
|
|
qDebug(format, args);
|
2012-09-23 08:28:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void dataLog(const char* format, ...)
|
|
|
|
{
|
2012-09-23 08:44:12 +00:00
|
|
|
va_list args;
|
|
|
|
va_start(args, format);
|
|
|
|
qDebug(format, args);
|
|
|
|
va_end(args);
|
2012-09-23 08:28:13 +00:00
|
|
|
}
|
|
|
|
|
2012-09-23 08:44:12 +00:00
|
|
|
void dataLogString(const char* str)
|
2012-09-23 08:28:13 +00:00
|
|
|
{
|
2012-09-23 08:44:12 +00:00
|
|
|
qDebug("%s", str);
|
2012-09-23 08:28:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2012-10-08 08:25:21 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
|
|
void WTFReportAssertionFailure(const char* file, int line, const char* function, const char* assertion)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void WTFReportBacktrace()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void WTFInvokeCrashHook()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLE(ASSEMBLER) && CPU(X86) && !OS(MAC_OS_X)
|
|
|
|
#include <MacroAssemblerX86Common.h>
|
|
|
|
|
|
|
|
JSC::MacroAssemblerX86Common::SSE2CheckState JSC::MacroAssemblerX86Common::s_sse2CheckState = JSC::MacroAssemblerX86Common::NotCheckedSSE2;
|
|
|
|
#endif
|
|
|
|
|