1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
ko1 d3aad15922 Return same ISeq object for one src.
* iseq.c: before this patch, RubyVM::InstructionSequence.of(src) (ISeq in
  short) returns different ISeq (wrapper) objects point to one ISeq internal
  object. This patch changes this behavior to cache created ISeq (wrapper)
  objects and return same ISeq object for an internal ISeq object.

* iseq.h (ISEQ_EXECUTABLE_P): introduced to check executable ISeq objects.

* iseq.h (ISEQ_COMPILE_DATA_ALLOC): reordr setting flag line to avoid
  ISEQ_USE_COMPILE_DATA but compiled_data == NULL case.

* vm_core.h (rb_iseq_t): introduce `rb_iseq_t::wrapper` and
  `rb_iseq_t::aux::exec`.  Move `rb_iseq_t::local_hooks` to
  `rb_iseq_t::aux::exec::local_hooks`.

* test/ruby/test_iseq.rb: add ISeq.of() tests.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-06 10:52:27 +00:00
..
-ext- Show diff in failure messages 2018-12-06 05:29:07 +00:00
base64
benchmark
bigdecimal Import bigdecimal 1.4.0.pre.20181205a 2018-12-05 11:30:24 +00:00
cgi
coverage ext/coverage/: add the oneshot mode 2018-10-20 05:33:04 +00:00
csv
date date_core.c: respect COMPLEX_DAT bit 2018-11-13 04:29:31 +00:00
dbm
digest
drb Just skip on armv7l-linux 2018-11-03 23:08:08 +00:00
dtrace
erb erb.rb: warn invalid trim_mode [Misc #15294] 2018-11-12 00:37:15 +00:00
etc
excludes test/excludes/_appveyor: exclude memory-inefficient 2018-12-04 09:37:23 +00:00
fiddle test_function.rb: loosen delta boundary 2018-11-13 06:17:57 +00:00
fileutils
gdbm
io io + socket: make pipes and sockets nonblocking by default 2018-11-22 08:46:51 +00:00
irb
json Fix JSON::Parser against bigdecimal updates 2018-12-02 05:21:57 +00:00
lib mjit_build_dir: separate MJIT_BUILD_DIR 2018-11-07 02:49:26 +00:00
logger
matrix lib/matrix.rb: Make Matrix & Vector mutable. Add #[]=, #map!. 2018-11-02 17:52:51 +00:00
minitest object.c: Deprecate Object#=~ and add NilClass#=~` 2018-11-26 07:55:07 +00:00
misc
mkmf test/mkmf/base.rb: use CC_WRAPPER same as the toplevel 2018-11-17 01:42:30 +00:00
monitor lib/monitor.rb: avoid race conditions by Thread.handle_interrupt 2018-11-28 01:51:44 +00:00
net test_ftp.rb: loosen another timeout requirement 2018-11-14 08:21:05 +00:00
nkf
objspace
open-uri
openssl openssl: sync with upstream repository 2018-10-18 00:24:49 +00:00
optparse
ostruct
pathname Pathname: Have #relative_path_from accept String argument. 2018-11-13 06:20:06 +00:00
psych Make rubygems follow the upstream of psych 2018-11-11 00:20:27 +00:00
rdoc Merge rdoc-6.1.0.bata2 2018-11-27 07:02:36 +00:00
readline
resolv Fix a typo [ci skip] 2018-11-11 11:58:38 +00:00
rexml
rinda
ripper parse.y: remove "shadowing outer local variable" warning 2018-10-26 03:10:02 +00:00
rss
ruby Return same ISeq object for one src. 2018-12-06 10:52:27 +00:00
rubygems Re-commit r65722 2018-12-04 11:45:05 +00:00
scanf
sdbm
shell
socket disable non-blocking pipes and sockets by default 2018-11-29 20:00:00 +00:00
stringio
strscan
syslog
testunit test/testunit/test_parallel.rb: respect subprocess timeout scale 2018-11-30 03:56:34 +00:00
uri
webrick webrick: fix tests on Debian sid/unstable with OpenSSL 1.1.1a 2018-12-03 04:51:08 +00:00
win32ole test_win32ole_event.rb: retry #test_s_new_loop with sleep 2018-11-01 04:20:26 +00:00
yaml
zlib
colors
runner.rb
test_abbrev.rb
test_cmath.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb test_pp.rb: show the node when failed 2018-12-03 00:57:06 +00:00
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sync.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb