1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/-ext-
normal 9581954a96 mostly fix rb_iseq_load
This allows reporters commenters of [Feature #8543] to load
instruction sequences directly.  Some test cases are still failing
but documented in test/-ext-/iseq_load/test_iseq_load.rb.

* compile.c (rb_iseq_build_from_exception): entry->sp is unsigned
  (iseq_build_callinfo_from_hash): account for kw_arg
  (iseq_build_from_ary_body): update for r35459
  (CHECK_STRING, CHECK_INTEGER): remove unused checks
  (int_param): new function for checking new `params' hash
  (iseq_build_kw): new function for loading rb_iseq_param_keyword
  (rb_iseq_build_from_ary): account for `misc' entry and general
   structure changes
  [Feature #8543]
* iseq.c (CHECK_HASH): new macro (for `misc' and `param' entries)
  (iseq_load): account for `misc' and `params' hashes
  (iseq_data_to_ary): add final opt to arg_opt_labels,
   fix kw support, account for unsigned entry->sp
* ext/-test-/iseq_load/iseq_load.c: new ext for test
* ext/-test-/iseq_load/extconf.rb: ditto
* test/-ext-/iseq_load/test_iseq_load.rb: new test

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-03 22:16:58 +00:00
..
array
bignum * bignum.c (SIZEOF_BDIGIT): Renamed from SIZEOF_BDIGITS. 2014-04-13 03:48:17 +00:00
bug_reporter * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
class variable.c: real class name 2013-10-19 20:24:30 +00:00
debug * vm_backtrace.c (rb_profile_frame_classpath): handle singleton 2013-10-27 19:17:24 +00:00
exception * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
file file.c: export rb_stat_new 2013-10-01 11:54:53 +00:00
float * configure.in: Check nextafter() availability. 2014-05-18 00:37:10 +00:00
funcall
hash test/-ext-/hash/test_delete.rb: assert deleted values 2014-10-23 14:18:32 +00:00
iseq_load mostly fix rb_iseq_load 2014-12-03 22:16:58 +00:00
iter vm_eval.c: blockarg 2013-11-30 04:21:26 +00:00
load
marshal * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
method proc.c: original arity 2013-01-29 07:49:22 +00:00
num2int More tests. 2013-04-22 03:13:50 +00:00
path_to_class
postponed_job test/-ext-: suppress warnings 2013-10-14 19:14:27 +00:00
proc vm_eval.c: rb_current_receiver 2014-11-16 10:38:15 +00:00
rational * rational.c: Include gmp.h if GMP is used. 2013-09-06 12:07:08 +00:00
st st: test packed-to-unpacked transitions during iteration 2014-10-09 07:16:19 +00:00
string * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
struct * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
symbol process.c: get rid of inadvertent ID pindown 2014-11-24 03:44:45 +00:00
tracepoint * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
typeddata test/unit/assertions.rb: return exception 2013-10-09 08:43:12 +00:00
wait_for_single_fd test: use assert_raise 2013-10-09 08:41:13 +00:00
win32 * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_bug-3571.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_bug-3662.rb
test_bug-5832.rb
test_printf.rb * ext/-test-/printf/printf.c, test/-ext-/test_printf.rb: remove 2014-11-04 05:03:50 +00:00
test_recursion.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00