JavaScriptCore/ChangeLog

 12010-04-08 Patrick Gansterer <paroga@paroga.com>
 2
 3 Reviewed by NOBODY (OOPS!).
 4
 5 Implement NO_RETURN for COMPILER(MSVC).
 6 https://bugs.webkit.org/show_bug.cgi?id=33056
 7
 8 Added NO_VALUE_RETURN for functions with non-void return type.
 9
 10 * jsc.cpp:
 11 * wtf/AlwaysInline.h:
 12 * wtf/FastMalloc.cpp:
 13
1142010-04-08 Kwang Yul Seo <skyul@company100.net>
215
316 Reviewed by Simon Hausmann.
57283

JavaScriptCore/jsc.cpp

@@static JSValue JSC_HOST_CALL functionRun
7979static JSValue JSC_HOST_CALL functionLoad(ExecState*, JSObject*, JSValue, const ArgList&);
8080static JSValue JSC_HOST_CALL functionCheckSyntax(ExecState*, JSObject*, JSValue, const ArgList&);
8181static JSValue JSC_HOST_CALL functionReadline(ExecState*, JSObject*, JSValue, const ArgList&);
82 static NO_RETURN JSValue JSC_HOST_CALL functionQuit(ExecState*, JSObject*, JSValue, const ArgList&);
 82static NO_VALUE_RETURN JSValue JSC_HOST_CALL functionQuit(ExecState*, JSObject*, JSValue, const ArgList&);
8383
8484#if ENABLE(SAMPLING_FLAGS)
8585static JSValue JSC_HOST_CALL functionSetSamplingFlags(ExecState*, JSObject*, JSValue, const ArgList&);
57283

JavaScriptCore/wtf/AlwaysInline.h

5959#ifndef NO_RETURN
6060#if COMPILER(GCC)
6161#define NO_RETURN __attribute((__noreturn__))
62 #elif COMPILER(RVCT)
 62#elif COMPILER(MSVC) || COMPILER(RVCT)
6363#define NO_RETURN __declspec(noreturn)
6464#else
6565#define NO_RETURN
6666#endif
6767#endif
 68
 69#ifndef NO_VALUE_RETURN
 70#if !COMPILER(MSVC)
 71#define NO_VALUE_RETURN NO_RETURN
 72#else
 73#define NO_VALUE_RETURN
 74#endif
 75#endif
57283

JavaScriptCore/wtf/FastMalloc.cpp

@@class TCMalloc_PageHeap {
14311431 ALWAYS_INLINE bool shouldScavenge() const;
14321432
14331433#if !HAVE(DISPATCH_H)
1434  static NO_RETURN void* runScavengerThread(void*);
 1434 static NO_VALUE_RETURN void* runScavengerThread(void*);
14351435 NO_RETURN void scavengerThread();
14361436
14371437 // Keeps track of whether the background thread is actively scavenging memory every kScavengeDelayInSeconds, or
57283