BUILD FIX when building only the interpreter
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 May 2011 15:43:38 +0000 (15:43 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 28 May 2011 15:43:38 +0000 (15:43 +0000)
Fixes the following compiler warning:

    JavaScriptCore/runtime/JSGlobalData.cpp:462:6: error: no previous prototype for function 'releaseExecutableMemory' [-Werror,-Wmissing-prototypes,3]
     void releaseExecutableMemory(JSGlobalData& globalData)
          ^

* jit/ExecutableAllocator.h: Moved declaration of
JSC::releaseExecutableMemory().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@87614 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/ExecutableAllocator.h

index cfc7ceec3904616ba39be875449acb1208729959..615467d6e095e24113de360623545a7657f71813 100644 (file)
@@ -1,3 +1,16 @@
+2011-05-28  David Kilzer  <ddkilzer@apple.com>
+
+        BUILD FIX when building only the interpreter
+
+        Fixes the following compiler warning:
+
+            JavaScriptCore/runtime/JSGlobalData.cpp:462:6: error: no previous prototype for function 'releaseExecutableMemory' [-Werror,-Wmissing-prototypes,3]
+             void releaseExecutableMemory(JSGlobalData& globalData)
+                  ^
+
+        * jit/ExecutableAllocator.h: Moved declaration of
+        JSC::releaseExecutableMemory().
+
 2011-05-28  David Kilzer  <ddkilzer@apple.com>
 
         BUILD FIX after r87527 with ENABLE(BRANCH_COMPACTION)
index 2389813b95004f14fe185c8061f99a6828ec7481..f93ce8ad89df1d043238627489309abb09d0dd0e 100644 (file)
@@ -78,6 +78,9 @@ extern "C" __declspec(dllimport) void CacheRangeFlush(LPVOID pAddr, DWORD dwLeng
 
 namespace JSC {
 
+class JSGlobalData;
+void releaseExecutableMemory(JSGlobalData&);
+
 inline size_t roundUpAllocationSize(size_t request, size_t granularity)
 {
     if ((std::numeric_limits<size_t>::max() - granularity) <= request)
@@ -96,9 +99,6 @@ inline size_t roundUpAllocationSize(size_t request, size_t granularity)
 
 namespace JSC {
 
-class JSGlobalData;
-void releaseExecutableMemory(JSGlobalData&);
-
 class ExecutablePool : public RefCounted<ExecutablePool> {
 public:
 #if ENABLE(EXECUTABLE_ALLOCATOR_DEMAND)