Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow for jitting aliased methods

We can simply use the original executable if we encounter an alias.
  • Loading branch information...
commit e1ba0825269e9a5ee5c77e2437d652d141d87428 1 parent a0614ed
@dbussink dbussink authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 vm/llvm/inline.cpp
View
5 vm/llvm/inline.cpp
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.