mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* compile.c (compile_massign_opt): fix to skip massign optimization
with global variables. * bootstraptest/test_massign.rb: add some tests for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
901343a761
commit
b285d26a16
4 changed files with 18 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
|||
Sat Aug 25 00:08:43 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* compile.c (compile_massign_opt): fix to skip massign optimization
|
||||
with global variables.
|
||||
|
||||
* bootstraptest/test_massign.rb: add some tests for above.
|
||||
|
||||
Fri Aug 24 18:42:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
|
||||
|
|
|
@ -4,6 +4,14 @@ assert_equal '[[1], 2, 3]', '*v1,(*), (a, b) = [1,:x,[2, 3]]; [v1, a, b]'
|
|||
assert_equal '[]', '*a = *nil; a'
|
||||
assert_equal '[nil]', '*a = nil; a'
|
||||
assert_equal '2', 'a, a = 1, 2; a', "[ruby-dev:31522]"
|
||||
assert_equal '[1, 2]', 'a, b = 1, 2'
|
||||
assert_equal '[1, 2]', %q{
|
||||
ans = []
|
||||
trace_var(:$a){|v| ans << v}
|
||||
trace_var(:$b){|v| ans << v}
|
||||
$a, $b = 1, 2
|
||||
ans
|
||||
}
|
||||
|
||||
=begin
|
||||
# generated by this script:
|
||||
|
|
|
@ -2032,9 +2032,6 @@ compile_massign_opt(rb_iseq_t *iseq, LINK_ANCHOR *ret,
|
|||
case NODE_CVASGN:
|
||||
MEMORY(ln->nd_vid);
|
||||
break;
|
||||
case NODE_GASGN:
|
||||
MEMORY((VALUE)ln->nd_entry);
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.9.0"
|
||||
#define RUBY_RELEASE_DATE "2007-08-24"
|
||||
#define RUBY_RELEASE_DATE "2007-08-25"
|
||||
#define RUBY_VERSION_CODE 190
|
||||
#define RUBY_RELEASE_CODE 20070824
|
||||
#define RUBY_RELEASE_CODE 20070825
|
||||
#define RUBY_PATCHLEVEL 0
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2007
|
||||
#define RUBY_RELEASE_MONTH 8
|
||||
#define RUBY_RELEASE_DAY 24
|
||||
#define RUBY_RELEASE_DAY 25
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Reference in a new issue