Permalink
Browse files

Allow for jitting aliased methods

We can simply use the original executable if we encounter an alias.
  • Loading branch information...
1 parent a0614ed commit e1ba0825269e9a5ee5c77e2437d652d141d87428 @dbussink dbussink committed Nov 15, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 vm/llvm/inline.cpp
View
@@ -8,6 +8,7 @@
#include "llvm/stack_args.hpp"
+#include "builtin/alias.hpp"
#include "builtin/methodtable.hpp"
#include "builtin/nativefunction.hpp"
#include "builtin/lookuptable.hpp"
@@ -118,6 +119,10 @@ namespace rubinius {
return false;
}
+ if(Alias* alias = try_as<Alias>(meth)) {
+ meth = alias->original_exec();
+ }
+
if(AccessVariable* acc = try_as<AccessVariable>(meth)) {
if(acc->write()->true_p()) {
inline_ivar_write(klass, acc);

0 comments on commit e1ba082

Please sign in to comment.