FASTCALL for Windows
authorshaver@mozilla.org
Thu, 10 Jul 2008 17:16:31 -0400
changeset 17582 7f92daca9d4b07f5b93c35541ceb2e52ad0670c2
parent 17581 9a43f36e5cb1ec415c4ecaa9727b552dc5e9a9a9
child 17583 584d2a3dbb9c0691471eb9cf1d2f8e7e3a66bbf9
push id1452
push usershaver@mozilla.com
push dateFri, 22 Aug 2008 00:08:22 +0000
treeherdermozilla-central@d13bb0868596 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9.1a1pre
FASTCALL for Windows
js/src/nanojit/avmplus.h
--- a/js/src/nanojit/avmplus.h
+++ b/js/src/nanojit/avmplus.h
@@ -36,21 +36,23 @@
 #include <assert.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include "jstypes.h"
 
 #ifdef _MSC_VER
 #define __msvc_only(x)  x
+#define FASTCALL __fastcall
 #else
 #define __msvc_only(x)
+#define FASTCALL __attribute__((fastcall))
 #endif
 
-#define FASTCALL __attribute__((fastcall))
+
 
 #ifdef DEBUG
 #define _DEBUG
 #define NJ_VERBOSE
 #define NJ_PROFILE
 #include <stdarg.h>
 #endif