qtdeclarative/masm/stubs/WTFStubs.cpp

85 lines
1.2 KiB
C++
Raw Normal View History

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 {
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;
}
static FILE* s_dataFile = stderr;
void setDataFile(FILE* f)
{
s_dataFile = f;
}
2012-09-23 08:28:13 +00:00
FILE* dataFile()
{
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