Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't compile JIT primitives when LLVM disabled

  • Loading branch information...
commit 4a00b8c7c97972cccd80698764d698c5f552c23a 1 parent c601acf
@ryoqun ryoqun authored
Showing with 9 additions and 0 deletions.
  1. +3 −0  vm/jit_primitives.cpp
  2. +6 −0 vm/primitives.hpp
View
3  vm/jit_primitives.cpp
@@ -1,3 +1,5 @@
+#ifdef ENABLE_LLVM
+
#include "prelude.hpp"
#include "vm.hpp"
#include "primitives.hpp"
@@ -18,3 +20,4 @@ namespace rubinius {
#include "gen/jit_primitives.cpp"
#include "gen/jit_resolver.cpp"
}
+#endif
View
6 vm/primitives.hpp
@@ -20,6 +20,7 @@ namespace rubinius {
kPrimitiveFailed = ((unsigned int)-1) & ~TAG_REF_MASK
};
+#ifdef ENABLE_LLVM
class JITStubResults {
int arg_count_;
const char* name_;
@@ -67,6 +68,7 @@ namespace rubinius {
}
};
+#endif
class Primitives {
@@ -75,7 +77,9 @@ namespace rubinius {
return reinterpret_cast<Object*>(kPrimitiveFailed);
}
+#ifdef ENABLE_LLVM
static void queue_for_jit(STATE, CallFrame* call_frame, int which);
+#endif
/*
* The primitive generator emits one 'executor' function per
@@ -86,7 +90,9 @@ namespace rubinius {
*/
static executor resolve_primitive(STATE, Symbol* name, int* index = 0);
static Object* unknown_primitive(STATE, CallFrame* call_frame, Executable* exec, Module* mod, Arguments& args);
+#ifdef ENABLE_LLVM
static bool get_jit_stub(int index, JITStubResults& res);
+#endif
static InvokePrimitive get_invoke_stub(STATE, Symbol* name);
#include "gen/primitives_declare.hpp"
Please sign in to comment.
Something went wrong with that request. Please try again.