Skip to content

Instantly share code, notes, and snippets.

@wanabe
Created December 9, 2012 05:55
Show Gist options
  • Select an option

  • Save wanabe/4243515 to your computer and use it in GitHub Desktop.

Select an option

Save wanabe/4243515 to your computer and use it in GitHub Desktop.
Index: compile.c
===================================================================
--- compile.c (revision 38278)
+++ compile.c (working copy)
@@ -4981,8 +4981,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
RSTRING_PTR(iseq->location.label), (void *)iseq,
iseq->compile_data->flip_cnt++);
- hide_obj(key);
- iseq_add_mark_object_compile_time(iseq, key);
+ key = ID2SYM(rb_intern_str(key));
ADD_INSN2(ret, nd_line(node), getspecial, key, INT2FIX(0));
ADD_INSNL(ret, nd_line(node), branchif, lend);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment