Skip to content

Instantly share code, notes, and snippets.

@sarahhodne
Created January 4, 2012 09:06
Show Gist options
  • Save sarahhodne/1559209 to your computer and use it in GitHub Desktop.
Save sarahhodne/1559209 to your computer and use it in GitHub Desktop.
diff --git a/vm/arguments.hpp b/vm/arguments.hpp
index 094bdb9..ea13d71 100644
--- a/vm/arguments.hpp
+++ b/vm/arguments.hpp
@@ -111,7 +111,13 @@ namespace rubinius {
}
void use_array(Array* ary) {
- use_tuple(ary->tuple(), ary->size());
+ use_tuple(ary->tuple(), ary->size(), ary->start()->to_int());
+ }
+
+ void use_tuple(Tuple* tup, int size, uint32_t offset) {
+ total_ = size;
+ arguments_ = &(tup->field[offset]);
+ argument_container_ = tup;
}
void use_tuple(Tuple* tup, int size) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment