author | simonjin |
Mon, 31 May 2010 08:36:21 +0000 | |
changeset 2722 | 29423611b7fb |
parent 2663 | a8edf8722649 |
child 3325 | 33ece2659d50 |
permissions | -rw-r--r-- |
2663 | 1 |
diff -r d2a07bdc6744 JavaScriptCore/jsc.cpp |
2 |
--- a/JavaScriptCore/jsc.cpp Tue May 18 19:09:56 2010 +0800 |
|
3 |
+++ b/JavaScriptCore/jsc.cpp Tue May 18 19:38:43 2010 +0800 |
|
4 |
@@ -304,6 +304,10 @@ |
|
2315 | 5 |
// Without this, Visual Studio will complain that this method does not return a value. |
6 |
return jsUndefined(); |
|
7 |
#endif |
|
8 |
+ |
|
9 |
+#if COMPILER(SUNCC) |
|
10 |
+ return jsUndefined(); |
|
11 |
+#endif |
|
12 |
} |
|
13 |
||
14 |
// Use SEH for Release builds only to get rid of the crash report dialog |
|
2663 | 15 |
diff -r d2a07bdc6744 JavaScriptCore/wtf/FastMalloc.cpp |
16 |
--- a/JavaScriptCore/wtf/FastMalloc.cpp Tue May 18 19:09:56 2010 +0800 |
|
17 |
+++ b/JavaScriptCore/wtf/FastMalloc.cpp Tue May 18 19:38:43 2010 +0800 |
|
18 |
@@ -1495,7 +1495,7 @@ |
|
2315 | 19 |
void* TCMalloc_PageHeap::runScavengerThread(void* context) |
20 |
{ |
|
21 |
static_cast<TCMalloc_PageHeap*>(context)->scavengerThread(); |
|
22 |
-#if COMPILER(MSVC) |
|
23 |
+#if COMPILER(MSVC) || COMPILER(SUNCC) |
|
24 |
// Without this, Visual Studio will complain that this method does not return a value. |
|
25 |
return 0; |
|
26 |
#endif |
|
2722
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
27 |
diff -r 7f0899abd82d JavaScriptCore/wtf/FastMalloc.cpp |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
28 |
--- a/JavaScriptCore/wtf/FastMalloc.cpp Fri May 21 01:19:20 2010 +0800 |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
29 |
+++ b/JavaScriptCore/wtf/FastMalloc.cpp Fri May 21 01:20:53 2010 +0800 |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
30 |
@@ -3506,8 +3506,8 @@ |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
31 |
} |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
32 |
if (!ret) { |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
33 |
#ifdef WTF_CHANGES |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
34 |
- if (crashOnFailure) // This branch should be optimized out by the compiler. |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
35 |
- CRASH(); |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
36 |
+ //if (crashOnFailure) // This branch should be optimized out by the compiler. |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
37 |
+ // CRASH(); |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
38 |
#else |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
39 |
errno = ENOMEM; |
29423611b7fb
fix d.o.o: Bug 16002 - webkitgtk 1.1.90 initialize failed
simonjin
parents:
2663
diff
changeset
|
40 |
#endif |