aboutsummaryrefslogtreecommitdiffstats
path: root/masm/stubs/WTFStubs.cpp
blob: e4009b8315da313fdb1eae52d2db13c1305c80db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#include <config.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>

#include <qdebug.h>

namespace WTF {

void* fastMalloc(size_t size)
{
    return malloc(size);
}

void* fastRealloc(void* ptr, size_t size)
{
    return realloc(ptr, size);
}

void fastFree(void* ptr)
{
    free(ptr);
}

uint32_t cryptographicallyRandomNumber()
{
    return 0;
}

static FILE* s_dataFile = stderr;

void setDataFile(FILE* f)
{
    s_dataFile = f;
}

FILE* dataFile()
{
    return s_dataFile;
}

void dataLogV(const char* format, va_list args)
{
    qDebug(format, args);
}

void dataLog(const char* format, ...)
{
    va_list args;
    va_start(args, format);
    qDebug(format, args);
    va_end(args);
}

void dataLogString(const char* str)
{
    qDebug("%s", str);
}

}

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