1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* tool/compile_prelude.rb: evaluates in the main context.

[ruby-core:25474]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-09-08 09:10:49 +00:00
parent a31c632299
commit c6b3a96fbb
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Tue Sep 8 18:10:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* tool/compile_prelude.rb: evaluates in the main context.
[ruby-core:25474]
Tue Sep 8 11:53:58 2009 Koichi Sasada <ko1@atdot.net>
* iseq.c (iseq_mark): no need to mark inline cache entries.

View file

@ -100,7 +100,7 @@ void
Init_<%=init_name%>(void)
{
% lines_list.each_with_index {|(setup_lines, lines), i|
rb_iseq_eval(rb_iseq_compile(
rb_iseq_eval_main(rb_iseq_compile(
rb_usascii_str_new(prelude_code<%=i%>, sizeof(prelude_code<%=i%>) - 1),
rb_usascii_str_new(prelude_name<%=i%>, sizeof(prelude_name<%=i%>) - 1),
INT2FIX(<%=1-setup_lines.length%>)));