try to make alloca work for Windows
authorshaver@mozilla.org
Thu, 10 Jul 2008 21:37:49 -0400
changeset 17597 4328f13132c4e9b455733616e51c568ea49cd711
parent 17594 b9585554a05fd81e656fd6abaf704689bf2291bf
child 17598 16e78256f19320365c5cd52a79b17b2d2f621296
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
try to make alloca work for Windows
js/src/jstracer.cpp
--- a/js/src/jstracer.cpp
+++ b/js/src/jstracer.cpp
@@ -47,16 +47,20 @@
 #include "jscntxt.h"
 #include "jsscript.h"
 #include "jsprf.h"
 #include "jsinterp.h"
 #include "jsscope.h"
 
 #include "jsautooplen.h"
 
+#ifdef _MSC_VER
+  __inline void * alloca(size_t size) { return _alloca(size); }
+#endif
+
 using namespace avmplus;
 using namespace nanojit;
 
 static GC gc = GC();
 static avmplus::AvmCore* core = new (&gc) avmplus::AvmCore();
 
 template<typename T>
 Tracker<T>::Tracker()