Skip to content

Commit

Permalink
Remove method for manual block jitting
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Feb 8, 2013
1 parent 2c6dc9a commit 61a8e71
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
5 changes: 0 additions & 5 deletions kernel/bootstrap/rubinius.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ def self.inc_global_serial
raise PrimitiveFailure, "Rubinius.vm_inc_global_serial primitive failed"
end

def self.jit_block(be, show)
Rubinius.primitive :vm_jit_block
raise PrimitiveFailure, "Rubinius.vm_jit_block primitive failed"
end

def self.deoptimize_inliners(exec)
Rubinius.primitive :vm_deoptimize_inliners
raise PrimitiveFailure, "Rubinius.vm_deoptimize_inliners primitive failed"
Expand Down
22 changes: 0 additions & 22 deletions vm/builtin/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1069,28 +1069,6 @@ namespace rubinius {
return Fixnum::from(state->shared().inc_global_serial(state));
}

Object* System::vm_jit_block(STATE, GCToken gct, BlockEnvironment* env,
Object* show)
{
#ifdef ENABLE_LLVM
LLVMState* ls = LLVMState::get(state);

OnStack<2> os(state, env, show);

MachineCode* mcode = env->machine_code(state, gct);

Context ctx(ls);
jit::Compiler jit(&ctx);
jit.compile_block(env->compiled_code(), mcode);

if(show->true_p()) {
jit.show_machine_code();
}
#endif

return show;
}

Object* System::vm_deoptimize_inliners(STATE, Executable* exec) {
exec->clear_inliners(state);
return cTrue;
Expand Down
4 changes: 0 additions & 4 deletions vm/builtin/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,6 @@ namespace rubinius {
// Rubinius.primitive :vm_show_backtrace
static Object* vm_show_backtrace(STATE, CallFrame* calling_environment);

// Compile a block with the JIT
// Rubinius.primitive :vm_jit_block
static Object* vm_jit_block(STATE, GCToken gct, BlockEnvironment* env, Object* show);

// Deoptimze any method that inlined exec
// Rubinius.primitive :vm_deoptimize_inliners
static Object* vm_deoptimize_inliners(STATE, Executable* exec);
Expand Down

0 comments on commit 61a8e71

Please sign in to comment.