2005-03-03 12:44:33 +03:00
|
|
|
bin: $(PROGRAM) $(WPROGRAM)
|
2007-01-04 07:44:48 +03:00
|
|
|
lib: $(LIBRUBY)
|
|
|
|
dll: $(LIBRUBY_SO)
|
2004-03-25 08:01:15 +03:00
|
|
|
|
2012-11-16 19:22:37 +04:00
|
|
|
.SUFFIXES: .inc .h .c .y .i .$(DTRACE_EXT)
|
2007-01-05 14:22:25 +03:00
|
|
|
|
2010-11-11 15:46:23 +03:00
|
|
|
# V=0 quiet, V=1 verbose. other values don't work.
|
|
|
|
V = 0
|
|
|
|
Q1 = $(V:1=)
|
|
|
|
Q = $(Q1:0=@)
|
2015-02-04 05:12:45 +03:00
|
|
|
ECHO0 = $(ECHO1:0=echo)
|
|
|
|
ECHO = @$(ECHO0)
|
2010-11-11 15:46:23 +03:00
|
|
|
|
2017-02-10 09:12:22 +03:00
|
|
|
mflags = $(MFLAGS)
|
2017-02-03 15:52:09 +03:00
|
|
|
gnumake_recursive =
|
2017-05-31 09:03:13 +03:00
|
|
|
enable_shared = $(ENABLE_SHARED:no=)
|
2017-02-03 15:52:09 +03:00
|
|
|
|
2018-10-16 10:53:37 +03:00
|
|
|
UNICODE_VERSION = 10.0.0
|
2017-12-02 06:12:51 +03:00
|
|
|
UNICODE_EMOJI_VERSION = 5.0
|
2014-10-30 10:39:51 +03:00
|
|
|
|
2016-07-17 14:59:26 +03:00
|
|
|
### set the following environment variable or uncomment the line if
|
|
|
|
### the Unicode data files should be updated completely on every update ('make up',...).
|
|
|
|
# ALWAYS_UPDATE_UNICODE = yes
|
2017-12-02 06:12:51 +03:00
|
|
|
UNICODE_DATA_DIR = enc/unicode/data/$(UNICODE_VERSION)/ucd
|
2016-07-17 14:59:26 +03:00
|
|
|
UNICODE_SRC_DATA_DIR = $(srcdir)/$(UNICODE_DATA_DIR)
|
2017-12-02 06:12:51 +03:00
|
|
|
UNICODE_SRC_EMOJI_DATA_DIR = $(srcdir)/enc/unicode/data/emoji/$(UNICODE_EMOJI_VERSION)
|
2016-08-16 15:04:34 +03:00
|
|
|
UNICODE_HDR_DIR = $(srcdir)/enc/unicode/$(UNICODE_VERSION)
|
2016-07-17 14:59:26 +03:00
|
|
|
UNICODE_DATA_HEADERS = \
|
2016-08-16 11:53:49 +03:00
|
|
|
$(UNICODE_HDR_DIR)/casefold.h \
|
|
|
|
$(UNICODE_HDR_DIR)/name2ctype.h \
|
2016-07-17 14:59:26 +03:00
|
|
|
$(empty)
|
|
|
|
|
2015-12-25 18:02:14 +03:00
|
|
|
RUBY_RELEASE_DATE = $(RUBY_RELEASE_YEAR)-$(RUBY_RELEASE_MONTH)-$(RUBY_RELEASE_DAY)
|
2012-11-19 11:08:13 +04:00
|
|
|
RUBYLIB = $(PATH_SEPARATOR)
|
2008-05-12 07:32:12 +04:00
|
|
|
RUBYOPT = -
|
2011-07-09 03:39:42 +04:00
|
|
|
RUN_OPTS = --disable-gems
|
2005-03-31 03:26:00 +04:00
|
|
|
|
2016-08-16 11:53:49 +03:00
|
|
|
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(UNICODE_HDR_DIR)
|
2016-07-16 15:41:23 +03:00
|
|
|
|
2015-09-26 20:52:46 +03:00
|
|
|
GEM_HOME =
|
|
|
|
GEM_PATH =
|
|
|
|
GEM_VENDOR =
|
|
|
|
|
benchmark: introduce benchmark_driver.gem
Makefile.in: Clone benchmark-driver repository in benchmark/benchmark-driver
`make update-benchmark-driver`, like simplecov.
win32/Makefile.sub: Roughly do the same thing.
.gitignore: Ignore the cloned repository.
common.mk: Trigger `make update-benchmark-driver` to run `make benchmark`
and adjust arguments for benchmark_driver.gem.
benchmark/require.yml: renamed from benchmark/bm_require.rb, benchmark/prepare_require.rb
benchmark/require_thread.yml: renamed from benchmark/bm_require_thread.rb, benchmark/prepare_require_thread.rb
benchmark/so_count_words.yml: renamed from benchmark/bm_so_count_words.rb, benchmark/prepare_so_count_words.rb,
benchmark/wc.input.base
benchmark/so_k_nucleotide.yml: renamed from benchmark/bm_so_k_nucleotide.rb, benchmark/prepare_so_k_nucleotide.rb,
benchmark/make_fasta_output.rb
benchmark/so_reverse_complement.yml: renamed from benchmark/bm_so_reverse_complement.rb, benchmark/prepare_so_reverse_complement.rb,
benchmark/make_fasta_output.rb
I'm sorry but I made some duplications between benchmark/require.yml and benchmark/require_thread.yml,
and between benchmark/so_k_nucleotide.yml and benchmark/so_reverse_complement.yml.
If you're not comfortable with it, please combine these YAMLs to share
the same prelude. One YAML file can have multiple benchmark definitions
sharing prelude.
benchmark/driver.rb: Replace its core feature with benchmark_driver.gem.
Some old features are gone for now, but I'll add them again later.
[Misc #14902]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-08 17:38:05 +03:00
|
|
|
BENCHMARK_DRIVER_GIT_URL = https://github.com/benchmark-driver/benchmark-driver
|
2018-09-29 10:21:30 +03:00
|
|
|
BENCHMARK_DRIVER_GIT_REF = v0.14.11
|
2018-07-28 06:34:30 +03:00
|
|
|
SIMPLECOV_GIT_URL = https://github.com/colszowka/simplecov.git
|
2017-09-06 10:46:31 +03:00
|
|
|
SIMPLECOV_GIT_REF = v0.15.0
|
2018-07-28 06:34:30 +03:00
|
|
|
SIMPLECOV_HTML_GIT_URL = https://github.com/colszowka/simplecov-html.git
|
2017-09-06 10:46:31 +03:00
|
|
|
SIMPLECOV_HTML_GIT_REF = v0.10.2
|
2018-07-28 06:34:30 +03:00
|
|
|
DOCLIE_GIT_URL = https://github.com/ms-ati/docile.git
|
2015-11-09 11:38:20 +03:00
|
|
|
DOCLIE_GIT_REF = v1.1.5
|
2014-09-02 11:59:18 +04:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
STATIC_RUBY = static-ruby
|
|
|
|
|
2016-07-16 00:26:02 +03:00
|
|
|
TIMESTAMPDIR = $(EXTOUT)/.timestamp
|
2004-03-22 02:21:31 +03:00
|
|
|
EXTCONF = extconf.rb
|
2007-01-04 07:44:48 +03:00
|
|
|
LIBRUBY_EXTS = ./.libruby-with-ext.time
|
2009-03-16 06:30:01 +03:00
|
|
|
REVISION_H = ./.revision.time
|
2016-07-16 00:26:02 +03:00
|
|
|
PLATFORM_D = $(TIMESTAMPDIR)/.$(PLATFORM_DIR).time
|
|
|
|
ENC_TRANS_D = $(TIMESTAMPDIR)/.enc-trans.time
|
2007-01-04 07:44:48 +03:00
|
|
|
RDOCOUT = $(EXTOUT)/rdoc
|
2014-12-02 10:06:45 +03:00
|
|
|
HTMLOUT = $(EXTOUT)/html
|
2010-09-19 17:10:25 +04:00
|
|
|
CAPIOUT = doc/capi
|
2018-10-02 04:56:43 +03:00
|
|
|
INSTALL_DOC_OPTS = --rdoc-output="$(RDOCOUT)" --html-output="$(HTMLOUT)"
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2014-11-27 23:04:48 +03:00
|
|
|
INITOBJS = dmyext.$(OBJEXT) dmyenc.$(OBJEXT)
|
2007-12-25 10:15:18 +03:00
|
|
|
NORMALMAINOBJ = main.$(OBJEXT)
|
2007-12-25 10:04:30 +03:00
|
|
|
MAINOBJ = $(NORMALMAINOBJ)
|
2014-11-27 23:04:48 +03:00
|
|
|
DLDOBJS = $(INITOBJS)
|
2012-05-20 07:25:14 +04:00
|
|
|
EXTSOLIBS =
|
2015-03-08 09:30:32 +03:00
|
|
|
MINIOBJS = $(ARCHMINIOBJS) miniinit.$(OBJEXT) dmyext.$(OBJEXT) miniprelude.$(OBJEXT)
|
2008-09-26 12:06:59 +04:00
|
|
|
ENC_MK = enc.mk
|
2016-08-16 11:53:49 +03:00
|
|
|
MAKE_ENC = -f $(ENC_MK) V="$(V)" UNICODE_HDR_DIR="$(UNICODE_HDR_DIR)" \
|
2017-02-10 09:12:22 +03:00
|
|
|
RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(mflags)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2007-11-11 15:44:01 +03:00
|
|
|
COMMONOBJS = array.$(OBJEXT) \
|
2018-05-31 09:13:06 +03:00
|
|
|
ast.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
bignum.$(OBJEXT) \
|
|
|
|
class.$(OBJEXT) \
|
|
|
|
compar.$(OBJEXT) \
|
2016-05-24 06:43:59 +03:00
|
|
|
compile.$(OBJEXT) \
|
2008-03-16 03:23:43 +03:00
|
|
|
complex.$(OBJEXT) \
|
2016-05-24 06:43:59 +03:00
|
|
|
cont.$(OBJEXT) \
|
|
|
|
debug.$(OBJEXT) \
|
2017-02-21 11:18:15 +03:00
|
|
|
debug_counter.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
dir.$(OBJEXT) \
|
2010-02-24 03:55:03 +03:00
|
|
|
dln_find.$(OBJEXT) \
|
2013-07-14 21:47:25 +04:00
|
|
|
encoding.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
enum.$(OBJEXT) \
|
2005-07-14 19:33:15 +04:00
|
|
|
enumerator.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
error.$(OBJEXT) \
|
|
|
|
eval.$(OBJEXT) \
|
|
|
|
file.$(OBJEXT) \
|
|
|
|
gc.$(OBJEXT) \
|
|
|
|
hash.$(OBJEXT) \
|
|
|
|
inits.$(OBJEXT) \
|
|
|
|
io.$(OBJEXT) \
|
2016-05-24 06:43:59 +03:00
|
|
|
iseq.$(OBJEXT) \
|
|
|
|
load.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
marshal.$(OBJEXT) \
|
|
|
|
math.$(OBJEXT) \
|
mjit.c: merge MJIT infrastructure
that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great method JIT infrastructure for MRI as MJIT,
Lars Kanis <lars@greiz-reinsdorf.de> sent the patch to support MinGW
in MJIT. In addition to merging it, I ported pthread to Windows native
threads. Now this MJIT infrastructure can be compiled on Visual Studio.
This commit simplifies mjit.c to decrease code at initial merge. For
example, this commit does not provide multiple JIT threads support.
We can resurrect them later if we really want them, but I wanted to minimize
diff to make it easier to review this patch.
`/tmp/_mjitXXX` file is renamed to `/tmp/_ruby_mjitXXX` because non-Ruby
developers may not know the name "mjit" and the file name should make
sure it's from Ruby and not from some harmful programs. TODO: it may be
better to store this to some temporary directory which Ruby is already using
by Tempfile, if it's not bad for performance.
mjit.h: New. It has `mjit_exec` interface similar to `vm_exec`, which is
for triggering MJIT. This drops interface for AOT compared to the original
MJIT.
Makefile.in: define macros to let MJIT know the path of MJIT header.
Probably we can refactor this to reduce the number of macros (TODO).
win32/Makefile.sub: ditto.
common.mk: compile mjit.o and mjit_compile.o. Unlike original MJIT, this
commit separates MJIT infrastructure and JIT compiler code as independent
object files. As initial patch is NOT going to have ultra-fast JIT compiler,
it's likely to replace JIT compiler, e.g. original MJIT's compiler or some
future JIT impelementations which are not public now.
inits.c: define MJIT module. This is added because `MJIT.enabled?` was
necessary for testing.
test/lib/zombie_hunter.rb: skip if `MJIT.enabled?`. Obviously this
wouldn't work with current code when JIT is enabled.
test/ruby/test_io.rb: skip this too. This would make no sense with MJIT.
ruby.c: define MJIT CLI options. As major difference from original MJIT,
"-j:l"/"--jit:llvm" are renamed to "--jit-cc" because I want to support
not only gcc/clang but also cl.exe (Visual Studio) in the future. But it
takes only "--jit-cc=gcc", "--jit-cc=clang" for now. And only long "--jit"
options are allowed since some Ruby committers preferred it at Ruby
developers Meeting on January, and some of options are renamed.
This file also triggers to initialize MJIT thread and variables.
eval.c: finalize MJIT worker thread and variables.
test/ruby/test_rubyoptions.rb: fix number of CLI options for --jit.
thread_pthread.c: change for pthread abstraction in MJIT. Prefix rb_ for
functions which are used by other files.
thread_win32.c: ditto, for Windows. Those pthread porting is one of major
works that YARV-MJIT created, which is my fork of MJIT, in Feature 14235.
thread.c: follow rb_ prefix changes
vm.c: trigger MJIT call on VM invocation. Also trigger `mjit_mark` to avoid
SEGV by race between JIT and GC of ISeq. The improvement was provided by
wanabe <s.wanabe@gmail.com>.
In JIT compiler I created and am going to add in my next commit, I found
that having `mjit_exec` after `vm_loop_start:` is harmful because the
JIT-ed function doesn't proceed other ISeqs on RESTORE_REGS of leave insn.
Executing non-FINISH frame is unexpected for my JIT compiler and
`exception_handler` triggers executions of such ISeqs. So `mjit_exec`
here should be executed only when it directly comes from `vm_exec` call.
`RubyVM::MJIT` module and `.enabled?` method is added so that we can skip
some tests which don't expect JIT threads or compiler file descriptors.
vm_insnhelper.h: trigger MJIT on method calls during VM execution.
vm_core.h: add fields required for mjit.c. `bp` must be `cfp[6]` because
rb_control_frame_struct is likely to be casted to another struct. The
last position is the safest place to add the new field.
vm_insnhelper.c: save initial value of cfp->ep as cfp->bp. This is an
optimization which are done in both MJIT and YARV-MJIT. So this change
is added in this commit. Calculating bp from ep is a little heavy work,
so bp is kind of cache for it.
iseq.c: notify ISeq GC to MJIT. We should know which iseq in MJIT queue
is GCed to avoid SEGV. TODO: unload some GCed units in some safe way.
gc.c: add hooks so that MJIT can wait GC, and vice versa. Simultaneous
JIT and GC executions may cause SEGV and so we should synchronize them.
cont.c: save continuation information in MJIT worker. As MJIT shouldn't
unload JIT-ed code which is being used, MJIT wants to know full list of
saved execution contexts for continuation and detect ISeqs in use.
mjit_compile.c: added empty JIT compiler so that you can reuse this commit
to build your own JIT compiler. This commit tries to compile ISeqs but
all of them are considered as not supported in this commit. So you can't
use JIT compiler in this commit yet while we added --jit option now.
Patch author: Vladimir Makarov <vmakarov@redhat.com>.
Contributors:
Takashi Kokubun <takashikkbn@gmail.com>.
wanabe <s.wanabe@gmail.com>.
Lars Kanis <lars@greiz-reinsdorf.de>.
Part of Feature 12589 and 14235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 09:58:09 +03:00
|
|
|
mjit.$(OBJEXT) \
|
|
|
|
mjit_compile.$(OBJEXT) \
|
2009-12-09 17:05:59 +03:00
|
|
|
node.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
numeric.$(OBJEXT) \
|
|
|
|
object.$(OBJEXT) \
|
|
|
|
pack.$(OBJEXT) \
|
|
|
|
parse.$(OBJEXT) \
|
2016-05-24 06:43:59 +03:00
|
|
|
proc.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
process.$(OBJEXT) \
|
|
|
|
random.$(OBJEXT) \
|
|
|
|
range.$(OBJEXT) \
|
2008-03-16 03:23:43 +03:00
|
|
|
rational.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
re.$(OBJEXT) \
|
|
|
|
regcomp.$(OBJEXT) \
|
|
|
|
regenc.$(OBJEXT) \
|
|
|
|
regerror.$(OBJEXT) \
|
|
|
|
regexec.$(OBJEXT) \
|
|
|
|
regparse.$(OBJEXT) \
|
2007-05-23 10:38:46 +04:00
|
|
|
regsyntax.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
ruby.$(OBJEXT) \
|
2008-09-23 05:10:02 +04:00
|
|
|
safe.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
signal.$(OBJEXT) \
|
|
|
|
sprintf.$(OBJEXT) \
|
|
|
|
st.$(OBJEXT) \
|
2008-08-20 19:30:28 +04:00
|
|
|
strftime.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
string.$(OBJEXT) \
|
|
|
|
struct.$(OBJEXT) \
|
2014-07-09 12:07:32 +04:00
|
|
|
symbol.$(OBJEXT) \
|
2016-05-24 06:43:59 +03:00
|
|
|
thread.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
time.$(OBJEXT) \
|
2008-04-07 10:51:33 +04:00
|
|
|
transcode.$(OBJEXT) \
|
2018-10-31 00:53:56 +03:00
|
|
|
transient_heap.$(OBJEXT) \
|
2004-03-22 02:21:31 +03:00
|
|
|
util.$(OBJEXT) \
|
|
|
|
variable.$(OBJEXT) \
|
2013-05-15 11:56:39 +04:00
|
|
|
version.$(OBJEXT) \
|
2006-12-31 18:02:22 +03:00
|
|
|
vm.$(OBJEXT) \
|
2012-06-02 19:59:37 +04:00
|
|
|
vm_backtrace.$(OBJEXT) \
|
2016-05-24 06:43:59 +03:00
|
|
|
vm_dump.$(OBJEXT) \
|
2012-08-15 08:39:10 +04:00
|
|
|
vm_trace.$(OBJEXT) \
|
2015-01-30 14:45:29 +03:00
|
|
|
$(DTRACE_OBJ) \
|
2007-12-15 12:56:59 +03:00
|
|
|
$(BUILTIN_ENCOBJS) \
|
2008-08-24 19:58:43 +04:00
|
|
|
$(BUILTIN_TRANSOBJS) \
|
2004-03-22 02:21:31 +03:00
|
|
|
$(MISSING)
|
|
|
|
|
2012-11-23 19:00:12 +04:00
|
|
|
EXPORTOBJS = $(DLNOBJ) \
|
2013-07-14 21:47:25 +04:00
|
|
|
localeinit.$(OBJEXT) \
|
2013-05-15 11:56:39 +04:00
|
|
|
loadpath.$(OBJEXT) \
|
2007-11-12 10:49:36 +03:00
|
|
|
$(COMMONOBJS)
|
|
|
|
|
2009-08-09 11:37:22 +04:00
|
|
|
OBJS = $(EXPORTOBJS) prelude.$(OBJEXT)
|
2014-11-27 23:04:48 +03:00
|
|
|
ALLOBJS = $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(INITOBJS)
|
2009-08-09 11:37:22 +04:00
|
|
|
|
2007-12-25 10:04:30 +03:00
|
|
|
GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
|
|
|
|
|
2014-07-04 21:32:51 +04:00
|
|
|
DEFAULT_PRELUDES = $(GEM_PRELUDE)
|
2017-05-06 05:54:02 +03:00
|
|
|
PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(DEFAULT_PRELUDES)
|
2014-11-19 01:17:53 +03:00
|
|
|
GEM_PRELUDE = $(srcdir)/gem_prelude.rb
|
2014-11-11 12:46:32 +03:00
|
|
|
PRELUDES = {$(srcdir)}prelude.c {$(srcdir)}miniprelude.c
|
|
|
|
GOLFPRELUDES = {$(srcdir)}golf_prelude.c
|
2008-04-08 05:30:31 +04:00
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
|
2007-01-04 07:44:48 +03:00
|
|
|
--extout="$(EXTOUT)" \
|
2004-03-22 02:21:31 +03:00
|
|
|
--mflags="$(MFLAGS)" \
|
|
|
|
--make-flags="$(MAKEFLAGS)"
|
2008-12-15 09:02:27 +03:00
|
|
|
EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \
|
2015-11-18 18:55:39 +03:00
|
|
|
--make-flags="V=$(V) MINIRUBY='$(MINIRUBY)'" \
|
|
|
|
--gnumake=$(gnumake) --extflags="$(EXTLDFLAGS)" \
|
2014-07-03 07:38:13 +04:00
|
|
|
--
|
2013-09-06 19:15:07 +04:00
|
|
|
INSTRUBY = $(SUDO) $(RUNRUBY) -r./$(arch)-fake $(srcdir)/tool/rbinstall.rb
|
2008-02-13 18:49:56 +03:00
|
|
|
INSTRUBY_ARGS = $(SCRIPT_ARGS) \
|
|
|
|
--data-mode=$(INSTALL_DATA_MODE) \
|
|
|
|
--prog-mode=$(INSTALL_PROG_MODE) \
|
2011-11-28 19:14:14 +04:00
|
|
|
--installed-list $(INSTALLED_LIST) \
|
|
|
|
--mantype="$(MANTYPE)"
|
2008-02-13 18:49:56 +03:00
|
|
|
INSTALL_PROG_MODE = 0755
|
|
|
|
INSTALL_DATA_MODE = 0644
|
2006-10-01 20:25:37 +04:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
TESTSDIR = $(srcdir)/test
|
2016-03-21 14:18:31 +03:00
|
|
|
TEST_EXCLUDES = --excludes-dir=$(TESTSDIR)/excludes --name=!/memory_leak/
|
|
|
|
EXCLUDE_TESTFRAMEWORK = --exclude=/testunit/ --exclude=/minitest/
|
2007-01-04 07:44:48 +03:00
|
|
|
TESTWORKDIR = testwork
|
2015-02-24 17:02:38 +03:00
|
|
|
TESTOPTS = $(RUBY_TESTOPTS)
|
2007-01-04 07:44:48 +03:00
|
|
|
|
2011-06-10 09:47:38 +04:00
|
|
|
TESTRUN_SCRIPT = $(srcdir)/test.rb
|
2008-12-12 13:35:31 +03:00
|
|
|
|
2014-11-11 12:09:14 +03:00
|
|
|
COMPILE_PRELUDE = $(srcdir)/tool/generic_erb.rb $(srcdir)/template/prelude.c.tmpl
|
2008-05-30 07:18:45 +04:00
|
|
|
|
2015-10-22 17:56:37 +03:00
|
|
|
SHOWFLAGS = showflags
|
2009-02-24 13:01:08 +03:00
|
|
|
|
2018-02-07 16:45:14 +03:00
|
|
|
MAKE_LINK = $(MINIRUBY) -rfileutils -e "include FileUtils::Verbose" \
|
|
|
|
-e "src, dest = ARGV" \
|
|
|
|
-e "exit if File.identical?(src, dest) or cmp(src, dest) rescue nil" \
|
|
|
|
-e "def noraise; yield; rescue; rescue NotImplementedError; end" \
|
|
|
|
-e "noraise {ln_sf('../'*dest.count('/')+src, dest)} or" \
|
|
|
|
-e "noraise {ln(src, dest)} or" \
|
|
|
|
-e "cp(src, dest)"
|
|
|
|
|
|
|
|
|
2015-10-22 17:56:37 +03:00
|
|
|
all: $(SHOWFLAGS) main docs
|
|
|
|
|
2018-08-04 18:12:30 +03:00
|
|
|
main: $(SHOWFLAGS) exts $(ENCSTATIC:static=lib)encs
|
2011-03-08 03:33:05 +03:00
|
|
|
@$(NULLCMD)
|
2009-02-24 13:01:08 +03:00
|
|
|
|
2018-10-20 11:00:42 +03:00
|
|
|
mjit-headers: $(MJIT_SUPPORT)-mjit-headers
|
2018-10-19 15:31:02 +03:00
|
|
|
no-mjit-headers: PHONY
|
|
|
|
yes-mjit-headers: mjit_config.h PHONY
|
2018-02-10 09:22:38 +03:00
|
|
|
|
|
|
|
mjit.$(OBJEXT): mjit_config.h
|
|
|
|
mjit_config.h: Makefile
|
2018-02-04 16:47:07 +03:00
|
|
|
|
2018-08-08 17:34:24 +03:00
|
|
|
|
|
|
|
# These rules using MJIT_HEADER_SUFFIX must be in common.mk, not
|
|
|
|
# Makefile.in, in order to override the macro in defs/universal.mk.
|
|
|
|
|
|
|
|
# Other `-Dxxx`s preceding `-DMJIT_HEADER` will be removed in transform_mjit_header.rb.
|
|
|
|
# So `-DMJIT_HEADER` should be passed first when rb_mjit_header.h is generated.
|
2018-08-21 05:02:54 +03:00
|
|
|
$(TIMESTAMPDIR)/$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).time: probes.h vm.$(OBJEXT) \
|
|
|
|
$(TIMESTAMPDIR)/$(arch)/.time
|
2018-08-08 17:34:24 +03:00
|
|
|
$(ECHO) building $(@F:.time=.h)
|
|
|
|
$(Q) $(CPP) -DMJIT_HEADER $(MJIT_HEADER_FLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(srcdir)/vm.c $(CPPOUTFLAG)$(@F:.time=.h).new
|
|
|
|
$(Q) $(IFCHANGE) "--timestamp=$@" $(@F:.time=.h) $(@F:.time=.h).new
|
|
|
|
|
|
|
|
$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).h: $(TIMESTAMPDIR)/$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).time
|
|
|
|
|
2018-08-10 07:52:24 +03:00
|
|
|
$(MJIT_MIN_HEADER:.h=)$(MJIT_HEADER_SUFFIX).h: \
|
|
|
|
$(TIMESTAMPDIR)/$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).time \
|
|
|
|
$(srcdir)/tool/transform_mjit_header.rb $(PREP) \
|
|
|
|
$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).h
|
2018-08-08 17:34:24 +03:00
|
|
|
$(ECHO) building $@
|
|
|
|
$(MINIRUBY) $(srcdir)/tool/transform_mjit_header.rb "$(CC) $(ARCH_FLAG)" $(MJIT_HEADER:.h=)$(MJIT_HEADER_ARCH).h $@
|
|
|
|
$(Q) $(MAKEDIRS) $(MJIT_HEADER_INSTALL_DIR)
|
|
|
|
$(Q) $(MAKE_LINK) $@ $(MJIT_HEADER_INSTALL_DIR)/$(@F)
|
|
|
|
|
2010-11-11 17:56:48 +03:00
|
|
|
.PHONY: showflags
|
2015-10-22 17:56:37 +03:00
|
|
|
exts enc trans: $(SHOWFLAGS)
|
2010-11-11 17:56:48 +03:00
|
|
|
showflags:
|
2010-11-13 10:38:01 +03:00
|
|
|
$(MESSAGE_BEGIN) \
|
2018-01-30 15:03:28 +03:00
|
|
|
" BASERUBY = $(BASERUBY)" \
|
2011-01-10 15:34:15 +03:00
|
|
|
" CC = $(CC)" \
|
|
|
|
" LD = $(LD)" \
|
|
|
|
" LDSHARED = $(LDSHARED)" \
|
2010-11-13 10:38:01 +03:00
|
|
|
" CFLAGS = $(CFLAGS)" \
|
|
|
|
" XCFLAGS = $(XCFLAGS)" \
|
|
|
|
" CPPFLAGS = $(CPPFLAGS)" \
|
|
|
|
" DLDFLAGS = $(DLDFLAGS)" \
|
|
|
|
" SOLIBS = $(SOLIBS)" \
|
2017-06-02 18:38:28 +03:00
|
|
|
" LANG = $(LANG)" \
|
|
|
|
" LC_ALL = $(LC_ALL)" \
|
|
|
|
" LC_CTYPE = $(LC_CTYPE)" \
|
2010-11-13 10:38:01 +03:00
|
|
|
$(MESSAGE_END)
|
2013-03-22 11:57:09 +04:00
|
|
|
-@$(CC_VERSION)
|
2010-11-11 15:47:17 +03:00
|
|
|
|
2010-11-18 01:37:48 +03:00
|
|
|
.PHONY: showconfig
|
|
|
|
showconfig:
|
2013-02-09 19:16:15 +04:00
|
|
|
@$(ECHO_BEGIN) \
|
|
|
|
$(configure_args) \
|
|
|
|
$(ECHO_END)
|
2010-11-18 01:37:48 +03:00
|
|
|
|
2017-12-17 14:13:23 +03:00
|
|
|
EXTS_NOTE = -f $(EXTS_MK) $(mflags) RUBY="$(MINIRUBY)" top_srcdir="$(srcdir)" note
|
|
|
|
|
2011-03-08 03:33:05 +03:00
|
|
|
exts: build-ext
|
|
|
|
|
|
|
|
EXTS_MK = exts.mk
|
2017-05-06 03:54:22 +03:00
|
|
|
$(EXTS_MK): ext/configure-ext.mk $(TIMESTAMPDIR)/$(arch)/.time $(srcdir)/template/exts.mk.tmpl
|
2017-02-10 09:12:22 +03:00
|
|
|
$(Q)$(MAKE) -f ext/configure-ext.mk $(mflags) V=$(V) EXTSTATIC=$(EXTSTATIC) \
|
2017-03-03 09:22:47 +03:00
|
|
|
gnumake=$(gnumake) MINIRUBY="$(MINIRUBY)" \
|
|
|
|
EXTLDFLAGS="$(EXTLDFLAGS)" srcdir="$(srcdir)"
|
2012-05-16 09:39:06 +04:00
|
|
|
$(ECHO) generating makefile $@
|
2017-01-23 05:50:23 +03:00
|
|
|
$(Q)$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ -c \
|
2017-01-27 10:16:36 +03:00
|
|
|
$(srcdir)/template/exts.mk.tmpl --gnumake=$(gnumake)
|
2017-01-23 05:50:23 +03:00
|
|
|
|
2017-03-03 09:22:47 +03:00
|
|
|
ext/configure-ext.mk: $(PREP) all-incs $(MKFILES) $(RBCONFIG) $(LIBRUBY) \
|
|
|
|
$(srcdir)/template/configure-ext.mk.tmpl
|
2017-01-23 05:50:23 +03:00
|
|
|
$(ECHO) generating makefiles $@
|
2017-01-26 11:19:34 +03:00
|
|
|
$(Q)$(MAKEDIRS) $(@D)
|
2017-01-23 05:50:23 +03:00
|
|
|
$(Q)$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ -c \
|
2017-01-23 07:22:23 +03:00
|
|
|
$(srcdir)/template/$(@F).tmpl --srcdir="$(srcdir)" \
|
|
|
|
--miniruby="$(MINIRUBY)" --script-args='$(SCRIPT_ARGS)'
|
2011-03-08 03:33:05 +03:00
|
|
|
|
|
|
|
configure-ext: $(EXTS_MK)
|
|
|
|
|
|
|
|
build-ext: $(EXTS_MK)
|
2017-02-10 09:12:22 +03:00
|
|
|
$(Q)$(MAKE) -f $(EXTS_MK) $(mflags) libdir="$(libdir)" LIBRUBY_EXTS=$(LIBRUBY_EXTS) \
|
2016-06-18 04:13:39 +03:00
|
|
|
EXTENCS="$(ENCOBJS)" UPDATE_LIBRARIES=no $(EXTSTATIC)
|
2017-12-17 14:13:23 +03:00
|
|
|
$(Q)$(MAKE) $(EXTS_NOTE)
|
|
|
|
|
|
|
|
exts-note: $(EXTS_MK)
|
|
|
|
$(Q)$(MAKE) $(EXTS_NOTE)
|
2009-02-24 13:01:08 +03:00
|
|
|
|
2017-01-22 15:50:36 +03:00
|
|
|
ext/extinit.c: $(srcdir)/template/extinit.c.tmpl
|
|
|
|
$(Q)$(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ -c \
|
|
|
|
$(srcdir)/template/extinit.c.tmpl $(EXTINITS)
|
|
|
|
|
2011-01-10 15:34:15 +03:00
|
|
|
prog: program wprogram
|
2017-05-16 18:47:44 +03:00
|
|
|
programs: $(PROGRAM) $(WPROGRAM)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2008-03-17 22:04:29 +03:00
|
|
|
$(PREP): $(MKFILES)
|
|
|
|
|
2015-01-30 14:45:29 +03:00
|
|
|
miniruby$(EXEEXT): config.status $(ALLOBJS) $(ARCHFILE)
|
2012-08-15 11:20:12 +04:00
|
|
|
|
|
|
|
objs: $(ALLOBJS)
|
2007-12-25 10:04:30 +03:00
|
|
|
|
|
|
|
GORUBY = go$(RUBY_INSTALL_NAME)
|
2018-05-21 15:32:40 +03:00
|
|
|
GOLF = $(GORUBY)
|
|
|
|
golf: $(GOLF)
|
|
|
|
$(GOLF): $(LIBRUBY) $(GOLFOBJS) PHONY
|
2017-09-07 11:25:13 +03:00
|
|
|
$(Q) $(MAKE) $(mflags) \
|
2018-05-22 15:24:43 +03:00
|
|
|
GOLF=_dummy_golf_target_to_avoid_conflict_just_in_case_ \
|
2017-09-07 11:25:13 +03:00
|
|
|
MAINOBJ=goruby.$(OBJEXT) \
|
|
|
|
EXTOBJS="golf_prelude.$(OBJEXT) $(EXTOBJS)" \
|
|
|
|
PROGRAM=$(GORUBY)$(EXEEXT) \
|
2018-05-20 21:36:42 +03:00
|
|
|
V=$(V) \
|
2017-09-07 11:25:13 +03:00
|
|
|
program
|
2010-09-19 17:10:25 +04:00
|
|
|
capi: $(CAPIOUT)/.timestamp PHONY
|
2011-05-18 17:33:31 +04:00
|
|
|
|
2012-03-01 10:44:37 +04:00
|
|
|
$(CAPIOUT)/.timestamp: Doxyfile $(PREP)
|
|
|
|
$(Q) $(MAKEDIRS) "$(@D)"
|
2010-11-11 16:37:33 +03:00
|
|
|
$(ECHO) generating capi
|
2014-01-16 09:54:32 +04:00
|
|
|
-$(Q) $(DOXYGEN) -b
|
2017-10-26 04:36:52 +03:00
|
|
|
$(Q) $(MINIRUBY) -e 'File.open(ARGV[0], "w"){'"|f|"' f.puts(Time.now)}' "$@"
|
2007-12-25 10:04:30 +03:00
|
|
|
|
2009-06-29 19:34:05 +04:00
|
|
|
Doxyfile: $(srcdir)/template/Doxyfile.tmpl $(PREP) $(srcdir)/tool/generic_erb.rb $(RBCONFIG)
|
2010-11-11 16:37:33 +03:00
|
|
|
$(ECHO) generating $@
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ $(srcdir)/template/Doxyfile.tmpl \
|
2014-08-22 10:36:46 +04:00
|
|
|
--srcdir="$(srcdir)" --miniruby="$(MINIRUBY)"
|
2009-02-03 02:10:28 +03:00
|
|
|
|
2015-10-22 17:56:37 +03:00
|
|
|
program: $(SHOWFLAGS) $(PROGRAM)
|
|
|
|
wprogram: $(SHOWFLAGS) $(WPROGRAM)
|
2013-08-08 09:54:08 +04:00
|
|
|
mini: PHONY miniruby$(EXEEXT)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2012-10-17 16:20:57 +04:00
|
|
|
$(PROGRAM) $(WPROGRAM): $(LIBRUBY) $(MAINOBJ) $(OBJS) $(EXTOBJS) $(SETUP) $(PREP)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2015-01-30 14:45:29 +03:00
|
|
|
$(LIBRUBY_A): $(LIBRUBY_A_OBJS) $(MAINOBJ) $(INITOBJS) $(ARCHFILE)
|
2007-11-10 13:50:58 +03:00
|
|
|
|
2018-02-17 08:52:21 +03:00
|
|
|
$(LIBRUBY_SO): $(OBJS) $(DLDOBJS) $(LIBRUBY_A) $(PREP) $(BUILTIN_ENCOBJS)
|
2006-10-01 19:00:45 +04:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
$(LIBRUBY_EXTS):
|
|
|
|
@exit > $@
|
|
|
|
|
|
|
|
$(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A)
|
2012-05-01 10:37:24 +04:00
|
|
|
$(Q)$(RM) $@
|
2018-06-17 05:42:46 +03:00
|
|
|
$(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2013-12-08 15:33:59 +04:00
|
|
|
ruby.imp: $(COMMONOBJS)
|
2018-11-16 10:08:58 +03:00
|
|
|
$(Q){ \
|
|
|
|
$(NM) -Pgp $(COMMONOBJS) | \
|
|
|
|
awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^$(SYMBOL_PREFIX)(Init_|InitVM_|ruby_static_id_|.*_threadptr_|rb_ec_)|^\./{print $$1}'; \
|
|
|
|
($(CHDIR) $(srcdir) && exec grep -h -A1 ^MJIT_FUNC_EXPORTED cont.c gc.c thread*.c vm*.c) | \
|
|
|
|
grep -e ^rb_ec_ -e ^rb_threadptr_ | sed 's/^\(rb_[a-zA-Z_0-9]*\).*/$(SYMBOL_PREFIX)\1/'; \
|
|
|
|
} | \
|
2009-09-27 20:26:31 +04:00
|
|
|
sort -u -o $@
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2009-09-16 11:20:19 +04:00
|
|
|
install: install-$(INSTALLDOC)
|
|
|
|
docs: $(DOCTARGETS)
|
2010-10-26 07:47:15 +04:00
|
|
|
pkgconfig-data: $(ruby_pc)
|
|
|
|
$(ruby_pc): $(srcdir)/template/ruby.pc.in config.status
|
2009-09-15 01:24:39 +04:00
|
|
|
|
2010-01-09 08:21:26 +03:00
|
|
|
install-all: docs pre-install-all do-install-all post-install-all
|
2014-06-19 18:11:52 +04:00
|
|
|
pre-install-all:: all pre-install-local pre-install-ext pre-install-doc
|
|
|
|
do-install-all: pre-install-all
|
2018-10-02 04:56:43 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all $(INSTALL_DOC_OPTS)
|
2009-09-16 11:20:19 +04:00
|
|
|
post-install-all:: post-install-local post-install-ext post-install-doc
|
2009-09-15 01:24:39 +04:00
|
|
|
@$(NULLCMD)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
install-nodoc: pre-install-nodoc do-install-nodoc post-install-nodoc
|
|
|
|
pre-install-nodoc:: pre-install-local pre-install-ext
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-nodoc: main pre-install-nodoc
|
2011-11-28 19:14:14 +04:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS)
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-nodoc:: post-install-local post-install-ext
|
2005-03-03 12:44:33 +03:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
install-local: pre-install-local do-install-local post-install-local
|
|
|
|
pre-install-local:: pre-install-bin pre-install-lib pre-install-man
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-local: $(PROGRAM) pre-install-local
|
2011-11-28 19:14:14 +04:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-local:: post-install-bin post-install-lib post-install-man
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
install-ext: pre-install-ext do-install-ext post-install-ext
|
|
|
|
pre-install-ext:: pre-install-ext-arch pre-install-ext-comm
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-ext: exts pre-install-ext
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-ext:: post-install-ext-arch post-install-ext-comm
|
|
|
|
|
|
|
|
install-arch: pre-install-arch do-install-arch post-install-arch
|
|
|
|
pre-install-arch:: pre-install-bin pre-install-ext-arch
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-arch: main do-install-arch
|
2013-08-08 19:15:44 +04:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=arch
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-arch:: post-install-bin post-install-ext-arch
|
|
|
|
|
|
|
|
install-comm: pre-install-comm do-install-comm post-install-comm
|
|
|
|
pre-install-comm:: pre-install-lib pre-install-ext-comm pre-install-man
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-comm: $(PREP) pre-install-comm
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-comm:: post-install-lib post-install-ext-comm post-install-man
|
|
|
|
|
|
|
|
install-bin: pre-install-bin do-install-bin post-install-bin
|
|
|
|
pre-install-bin:: install-prereq
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-bin: $(PROGRAM) pre-install-bin
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-bin::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-lib: pre-install-lib do-install-lib post-install-lib
|
|
|
|
pre-install-lib:: install-prereq
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-lib: $(PREP) pre-install-lib
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-lib::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-ext-comm: pre-install-ext-comm do-install-ext-comm post-install-ext-comm
|
|
|
|
pre-install-ext-comm:: install-prereq
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-ext-comm: exts pre-install-ext-comm
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-ext-comm::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-ext-arch: pre-install-ext-arch do-install-ext-arch post-install-ext-arch
|
|
|
|
pre-install-ext-arch:: install-prereq
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-ext-arch: exts pre-install-ext-arch
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-ext-arch::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-man: pre-install-man do-install-man post-install-man
|
|
|
|
pre-install-man:: install-prereq
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-man: $(PREP) pre-install-man
|
2011-11-28 19:14:14 +04:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-man::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
2008-12-22 16:19:08 +03:00
|
|
|
install-capi: capi pre-install-capi do-install-capi post-install-capi
|
|
|
|
pre-install-capi:: install-prereq
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-capi: $(PREP) pre-install-capi
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=capi
|
2008-12-22 16:19:08 +03:00
|
|
|
post-install-capi::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
what-where: no-install
|
2009-09-16 11:20:19 +04:00
|
|
|
no-install: no-install-$(INSTALLDOC)
|
2007-01-04 07:44:48 +03:00
|
|
|
what-where-all: no-install-all
|
2009-09-16 11:20:19 +04:00
|
|
|
no-install-all: pre-no-install-all dont-install-all post-no-install-all
|
|
|
|
pre-no-install-all:: pre-no-install-local pre-no-install-ext pre-no-install-doc
|
|
|
|
dont-install-all: $(PROGRAM)
|
2018-10-02 04:56:43 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all $(INSTALL_DOC_OPTS)
|
2009-09-16 11:20:19 +04:00
|
|
|
post-no-install-all:: post-no-install-local post-no-install-ext post-no-install-doc
|
|
|
|
@$(NULLCMD)
|
2007-01-04 07:44:48 +03:00
|
|
|
|
2014-06-19 18:11:52 +04:00
|
|
|
uninstall: $(INSTALLED_LIST) sudo-precheck
|
2013-02-20 16:49:43 +04:00
|
|
|
$(Q)$(SUDO) $(MINIRUBY) $(srcdir)/tool/rbuninstall.rb --destdir=$(DESTDIR) $(INSTALLED_LIST)
|
|
|
|
|
2014-06-19 18:11:52 +04:00
|
|
|
reinstall: all uninstall install
|
2013-03-07 05:39:10 +04:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
what-where-nodoc: no-install-nodoc
|
|
|
|
no-install-nodoc: pre-no-install-nodoc dont-install-nodoc post-no-install-nodoc
|
|
|
|
pre-no-install-nodoc:: pre-no-install-local pre-no-install-ext
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-nodoc: $(PREP)
|
2011-11-28 19:14:14 +04:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS)
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-nodoc:: post-no-install-local post-no-install-ext
|
2006-09-16 11:06:57 +04:00
|
|
|
|
2006-12-31 18:02:22 +03:00
|
|
|
what-where-local: no-install-local
|
2007-01-04 07:44:48 +03:00
|
|
|
no-install-local: pre-no-install-local dont-install-local post-no-install-local
|
|
|
|
pre-no-install-local:: pre-no-install-bin pre-no-install-lib pre-no-install-man
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-local: $(PREP)
|
2011-11-28 19:14:14 +04:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-local:: post-no-install-bin post-no-install-lib post-no-install-man
|
2006-09-17 12:43:19 +04:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
what-where-ext: no-install-ext
|
|
|
|
no-install-ext: pre-no-install-ext dont-install-ext post-no-install-ext
|
|
|
|
pre-no-install-ext:: pre-no-install-ext-arch pre-no-install-ext-comm
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-ext: $(PREP)
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-ext:: post-no-install-ext-arch post-no-install-ext-comm
|
|
|
|
|
|
|
|
what-where-arch: no-install-arch
|
|
|
|
no-install-arch: pre-no-install-arch dont-install-arch post-no-install-arch
|
|
|
|
pre-no-install-arch:: pre-no-install-bin pre-no-install-ext-arch
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-arch: $(PREP)
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin --install=ext-arch
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-arch:: post-no-install-lib post-no-install-man post-no-install-ext-arch
|
|
|
|
|
|
|
|
what-where-comm: no-install-comm
|
|
|
|
no-install-comm: pre-no-install-comm dont-install-comm post-no-install-comm
|
|
|
|
pre-no-install-comm:: pre-no-install-lib pre-no-install-ext-comm pre-no-install-man
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-comm: $(PREP)
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib --install=ext-comm --install=man
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-comm:: post-no-install-lib post-no-install-ext-comm post-no-install-man
|
|
|
|
|
|
|
|
what-where-bin: no-install-bin
|
|
|
|
no-install-bin: pre-no-install-bin dont-install-bin post-no-install-bin
|
|
|
|
pre-no-install-bin:: install-prereq
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-bin: $(PREP)
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=bin
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-bin::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-lib: no-install-lib
|
|
|
|
no-install-lib: pre-no-install-lib dont-install-lib post-no-install-lib
|
|
|
|
pre-no-install-lib:: install-prereq
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-lib: $(PREP)
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=lib
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-lib::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-ext-comm: no-install-ext-comm
|
|
|
|
no-install-ext-comm: pre-no-install-ext-comm dont-install-ext-comm post-no-install-ext-comm
|
|
|
|
pre-no-install-ext-comm:: install-prereq
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-ext-comm: $(PREP)
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-comm
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-ext-comm::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-ext-arch: no-install-ext-arch
|
|
|
|
no-install-ext-arch: pre-no-install-ext-arch dont-install-ext-arch post-no-install-ext-arch
|
|
|
|
pre-no-install-ext-arch:: install-prereq
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-ext-arch: $(PREP)
|
2009-01-07 11:13:07 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=ext-arch
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-ext-arch::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
what-where-man: no-install-man
|
|
|
|
no-install-man: pre-no-install-man dont-install-man post-no-install-man
|
|
|
|
pre-no-install-man:: install-prereq
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-man: $(PREP)
|
2011-11-28 19:14:14 +04:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-man::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
|
|
|
install-doc: rdoc pre-install-doc do-install-doc post-install-doc
|
|
|
|
pre-install-doc:: install-prereq
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-doc: $(PROGRAM) pre-install-doc
|
2018-10-02 04:56:43 +03:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc $(INSTALL_DOC_OPTS)
|
2007-01-04 07:44:48 +03:00
|
|
|
post-install-doc::
|
|
|
|
@$(NULLCMD)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2013-01-18 06:18:31 +04:00
|
|
|
install-gem: pre-install-gem do-install-gem post-install-gem
|
|
|
|
pre-install-gem:: pre-install-bin pre-install-lib pre-install-man
|
2014-06-19 18:11:52 +04:00
|
|
|
do-install-gem: $(PROGRAM) pre-install-gem
|
2013-01-18 06:18:31 +04:00
|
|
|
$(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=gem
|
|
|
|
post-install-gem::
|
|
|
|
@$(NULLCMD)
|
|
|
|
|
2010-05-10 02:02:37 +04:00
|
|
|
rdoc: PHONY main
|
2007-01-04 07:44:48 +03:00
|
|
|
@echo Generating RDoc documentation
|
2017-02-06 05:35:47 +03:00
|
|
|
$(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" $(RDOCFLAGS) "$(srcdir)"
|
2011-05-18 17:33:31 +04:00
|
|
|
|
2014-12-02 10:06:45 +03:00
|
|
|
html: PHONY main
|
|
|
|
@echo Generating RDoc HTML files
|
2017-02-06 05:35:47 +03:00
|
|
|
$(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --page-dir "$(srcdir)/doc" --encoding=UTF-8 --no-force-update --all --op "$(HTMLOUT)" $(RDOCFLAGS) "$(srcdir)"
|
2014-12-02 10:06:45 +03:00
|
|
|
|
2011-05-10 05:54:34 +04:00
|
|
|
rdoc-coverage: PHONY main
|
|
|
|
@echo Generating RDoc coverage report
|
2012-11-27 12:54:03 +04:00
|
|
|
$(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --root "$(srcdir)" --encoding=UTF-8 --all --quiet -C $(RDOCFLAGS) "$(srcdir)"
|
2011-05-18 17:33:31 +04:00
|
|
|
|
2013-05-21 11:36:34 +04:00
|
|
|
RDOCBENCHOUT=/tmp/rdocbench
|
|
|
|
|
2013-06-20 10:18:09 +04:00
|
|
|
GCBENCH_ITEM=null
|
2013-06-20 03:15:56 +04:00
|
|
|
|
2013-06-20 10:18:09 +04:00
|
|
|
gcbench: PHONY
|
|
|
|
$(Q) $(XRUBY) "$(srcdir)/benchmark/gc/gcbench.rb" $(GCBENCH_ITEM)
|
2013-05-21 11:36:34 +04:00
|
|
|
|
2013-06-20 10:18:09 +04:00
|
|
|
gcbench-rdoc: PHONY
|
|
|
|
$(Q) $(XRUBY) "$(srcdir)/benchmark/gc/gcbench.rb" rdoc
|
2013-06-20 03:15:56 +04:00
|
|
|
|
2009-09-14 06:23:47 +04:00
|
|
|
nodoc: PHONY
|
2006-09-17 12:43:19 +04:00
|
|
|
|
2007-01-04 07:44:48 +03:00
|
|
|
what-where-doc: no-install-doc
|
|
|
|
no-install-doc: pre-no-install-doc dont-install-doc post-no-install-doc
|
|
|
|
pre-no-install-doc:: install-prereq
|
2008-06-17 13:41:05 +04:00
|
|
|
dont-install-doc:: $(PREP)
|
2018-10-02 04:56:43 +03:00
|
|
|
$(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=rdoc $(INSTALL_DOC_OPTS)
|
2007-01-04 07:44:48 +03:00
|
|
|
post-no-install-doc::
|
|
|
|
@$(NULLCMD)
|
2006-09-17 12:43:19 +04:00
|
|
|
|
2007-03-13 03:24:58 +03:00
|
|
|
CLEAR_INSTALLED_LIST = clear-installed-list
|
|
|
|
|
2014-06-19 18:11:52 +04:00
|
|
|
install-prereq: $(CLEAR_INSTALLED_LIST) yes-fake sudo-precheck PHONY
|
2007-03-13 03:24:58 +03:00
|
|
|
|
2009-05-14 05:52:10 +04:00
|
|
|
clear-installed-list: PHONY
|
2010-06-26 06:56:41 +04:00
|
|
|
@> $(INSTALLED_LIST) set MAKE="$(MAKE)"
|
2005-03-03 12:44:33 +03:00
|
|
|
|
2017-05-16 15:15:48 +03:00
|
|
|
clean: clean-ext clean-enc clean-golf clean-docs clean-extout clean-local clean-platform clean-spec
|
2014-07-05 11:02:39 +04:00
|
|
|
clean-local:: clean-runnable
|
2012-05-01 10:37:24 +04:00
|
|
|
$(Q)$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
|
2014-11-27 23:02:32 +03:00
|
|
|
$(Q)$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) dmyenc.$(OBJEXT) $(ARCHFILE) .*.time
|
2018-11-19 02:29:41 +03:00
|
|
|
$(Q)$(RM) y.tab.c y.output encdb.h transdb.h config.log rbconfig.rb $(ruby_pc)
|
|
|
|
$(Q)$(RM) probes.h probes.$(OBJEXT) probes.stamp ruby-glommed.$(OBJEXT) ruby.imp
|
2015-07-30 06:17:56 +03:00
|
|
|
$(Q)$(RM) GNUmakefile.old Makefile.old $(arch)-fake.rb bisect.sh $(ENC_TRANS_D)
|
2015-07-27 06:41:55 +03:00
|
|
|
-$(Q) $(RMDIR) enc/jis enc/trans enc 2> $(NULL) || exit 0
|
2014-07-05 11:02:39 +04:00
|
|
|
clean-runnable:: PHONY
|
2014-07-06 03:38:13 +04:00
|
|
|
$(Q)$(CHDIR) bin 2>$(NULL) && $(RM) $(PROGRAM) $(WPROGRAM) $(GORUBY)$(EXEEXT) bin/*.$(DLEXT) 2>$(NULL) || exit 0
|
|
|
|
$(Q)$(CHDIR) lib 2>$(NULL) && $(RM) $(LIBRUBY_A) $(LIBRUBY) $(LIBRUBY_ALIASES) $(RUBY_BASE_NAME)/$(RUBY_PROGRAM_VERSION) $(RUBY_BASE_NAME)/vendor_ruby 2>$(NULL) || exit 0
|
|
|
|
$(Q)$(RMDIR) lib/$(RUBY_BASE_NAME) lib bin 2>$(NULL) || exit 0
|
2009-05-14 05:52:10 +04:00
|
|
|
clean-ext:: PHONY
|
|
|
|
clean-golf: PHONY
|
2012-05-01 10:37:24 +04:00
|
|
|
$(Q)$(RM) $(GORUBY)$(EXEEXT) $(GOLFOBJS)
|
2009-05-14 05:52:10 +04:00
|
|
|
clean-rdoc: PHONY
|
2014-12-02 10:06:45 +03:00
|
|
|
clean-html: PHONY
|
2010-09-19 17:10:25 +04:00
|
|
|
clean-capi: PHONY
|
2012-02-28 19:51:25 +04:00
|
|
|
clean-platform: PHONY
|
2009-05-14 05:52:10 +04:00
|
|
|
clean-extout: PHONY
|
2014-07-05 11:02:39 +04:00
|
|
|
-$(Q)$(RMDIR) $(EXTOUT)/$(arch) $(EXTOUT) 2> $(NULL) || exit 0
|
2014-12-02 10:06:45 +03:00
|
|
|
clean-docs: clean-rdoc clean-html clean-capi
|
2017-05-16 15:15:48 +03:00
|
|
|
clean-spec: PHONY
|
|
|
|
clean-rubyspec: clean-spec
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2017-05-16 15:15:48 +03:00
|
|
|
distclean: distclean-ext distclean-enc distclean-golf distclean-docs distclean-extout distclean-local distclean-platform distclean-spec
|
2004-03-22 02:21:31 +03:00
|
|
|
distclean-local:: clean-local
|
2015-07-27 06:44:00 +03:00
|
|
|
$(Q)$(RM) $(MKFILES) yasmdata.rb *.inc $(PRELUDES)
|
2013-02-25 11:47:21 +04:00
|
|
|
$(Q)$(RM) config.cache config.status config.status.lineno
|
2012-05-01 10:37:24 +04:00
|
|
|
$(Q)$(RM) *~ *.bak *.stackdump core *.core gmon.out $(PREP)
|
2015-01-22 03:14:27 +03:00
|
|
|
-$(Q)$(RMALL) $(srcdir)/autom4te.cache
|
2009-05-14 05:52:10 +04:00
|
|
|
distclean-ext:: PHONY
|
2008-09-01 20:51:06 +04:00
|
|
|
distclean-golf: clean-golf
|
2017-02-27 16:22:05 +03:00
|
|
|
distclean-rdoc: clean-rdoc
|
|
|
|
distclean-html: clean-html
|
|
|
|
distclean-capi: clean-capi
|
|
|
|
distclean-docs: clean-docs
|
2009-01-25 05:23:47 +03:00
|
|
|
distclean-extout: clean-extout
|
2012-02-28 19:51:25 +04:00
|
|
|
distclean-platform: clean-platform
|
2017-05-16 15:15:48 +03:00
|
|
|
distclean-spec: clean-spec
|
|
|
|
distclean-rubyspec: distclean-spec
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2009-01-25 05:23:47 +03:00
|
|
|
realclean:: realclean-ext realclean-local realclean-enc realclean-golf realclean-extout
|
2007-06-15 17:31:54 +04:00
|
|
|
realclean-local:: distclean-local
|
2015-07-27 06:44:00 +03:00
|
|
|
$(Q)$(RM) parse.c parse.h lex.c enc/trans/newline.c revision.h
|
2015-01-13 15:57:13 +03:00
|
|
|
$(Q)$(RM) id.c id.h probes.dmyh
|
2015-01-18 06:56:52 +03:00
|
|
|
$(Q)$(CHDIR) $(srcdir) && $(exec) $(RM) parse.c parse.h lex.c enc/trans/newline.c $(PRELUDES) revision.h
|
2015-01-13 15:57:13 +03:00
|
|
|
$(Q)$(CHDIR) $(srcdir) && $(exec) $(RM) id.c id.h probes.dmyh
|
2016-01-03 06:12:20 +03:00
|
|
|
$(Q)$(CHDIR) $(srcdir) && $(exec) $(RM) configure aclocal.m4 tool/config.guess tool/config.sub gems/*.gem
|
2013-05-02 19:22:27 +04:00
|
|
|
realclean-ext:: PHONY
|
2008-09-01 20:51:06 +04:00
|
|
|
realclean-golf: distclean-golf
|
2014-11-27 11:32:01 +03:00
|
|
|
$(Q)$(RM) $(GOLFPRELUDES)
|
2017-02-27 16:22:05 +03:00
|
|
|
realclean-rdoc: distclean-rdoc
|
|
|
|
realclean-html: distclean-html
|
|
|
|
realclean-capi: distclean-capi
|
|
|
|
realclean-docs: distclean-docs
|
2009-01-25 05:23:47 +03:00
|
|
|
realclean-extout: distclean-extout
|
2017-02-27 16:22:05 +03:00
|
|
|
realclean-platform: distclean-platform
|
2017-05-16 15:15:48 +03:00
|
|
|
realclean-spec: distclean-spec
|
|
|
|
realclean-rubyspec: realclean-spec
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2017-03-01 10:53:15 +03:00
|
|
|
clean-ext:: ext/clean gems/clean timestamp/clean
|
|
|
|
distclean-ext:: ext/distclean gems/distclean timestamp/distclean
|
|
|
|
realclean-ext:: ext/realclean gems/realclean timestamp/realclean
|
|
|
|
|
|
|
|
ext/clean.mk ext/distclean.mk ext/realclean.mk::
|
|
|
|
ext/clean gems/clean:: ext/clean.mk
|
|
|
|
ext/distclean gems/distclean:: ext/distclean.mk
|
|
|
|
ext/realclean gems/realclean:: ext/realclean.mk
|
|
|
|
|
|
|
|
timestamp/clean:: ext/clean gems/clean
|
|
|
|
timestamp/distclean:: ext/distclean gems/distclean
|
|
|
|
timestamp/realclean:: ext/realclean gems/realclean
|
|
|
|
|
|
|
|
timestamp/clean timestamp/distclean timestamp/realclean::
|
2017-05-06 03:54:22 +03:00
|
|
|
$(Q)$(RM) $(TIMESTAMPDIR)/.*.time $(TIMESTAMPDIR)/$(arch)/.time
|
2017-02-27 09:39:28 +03:00
|
|
|
$(Q)$(RMDIRS) $(TIMESTAMPDIR)/$(arch) 2> $(NULL) || exit 0
|
2012-03-02 11:37:58 +04:00
|
|
|
|
2017-03-01 10:53:15 +03:00
|
|
|
clean-ext::
|
|
|
|
-$(Q)$(RM) ext/extinit.$(OBJEXT)
|
|
|
|
|
|
|
|
distclean-ext realclean-ext::
|
|
|
|
-$(Q)$(RM) $(EXTS_MK) ext/extinit.* ext/configure-ext.mk
|
|
|
|
-$(Q)$(RMDIR) ext 2> $(NULL) || exit 0
|
|
|
|
|
2010-06-14 21:32:03 +04:00
|
|
|
clean-enc distclean-enc realclean-enc: PHONY
|
2009-01-27 05:03:54 +03:00
|
|
|
|
2015-01-18 16:12:15 +03:00
|
|
|
clean-enc: clean-enc.d
|
|
|
|
|
|
|
|
clean-enc.d: PHONY
|
|
|
|
$(Q)$(RM) $(ENC_TRANS_D)
|
2015-07-27 06:41:55 +03:00
|
|
|
-$(Q) $(RMDIR) enc/jis enc/trans enc 2> $(NULL) || exit 0
|
2015-01-18 16:12:15 +03:00
|
|
|
|
2014-07-07 11:08:06 +04:00
|
|
|
clean-rdoc distclean-rdoc realclean-rdoc:
|
|
|
|
@echo $(@:-rdoc=ing) rdoc
|
|
|
|
$(Q)$(RMALL) $(RDOCOUT)
|
|
|
|
|
2014-12-02 10:06:45 +03:00
|
|
|
clean-html distclean-html realclean-html:
|
|
|
|
@echo $(@:-html=ing) HTML
|
|
|
|
$(Q)$(RMALL) $(HTMLOUT)
|
|
|
|
|
2014-07-07 11:08:06 +04:00
|
|
|
clean-capi distclean-capi realclean-capi:
|
|
|
|
@echo $(@:-capi=ing) capi
|
|
|
|
$(Q)$(RMALL) $(CAPIOUT)
|
|
|
|
|
|
|
|
clean-platform:
|
|
|
|
$(Q) $(RM) $(PLATFORM_D)
|
2014-07-28 09:38:26 +04:00
|
|
|
-$(Q) $(RMDIR) $(PLATFORM_DIR) 2> $(NULL) || exit 0
|
2014-07-07 11:08:06 +04:00
|
|
|
|
2017-09-20 23:19:54 +03:00
|
|
|
RUBYSPEC_CAPIEXT = spec/ruby/optional/capi/ext
|
2017-05-16 15:15:48 +03:00
|
|
|
clean-spec: PHONY
|
2017-03-10 16:46:22 +03:00
|
|
|
-$(Q) $(RM) $(RUBYSPEC_CAPIEXT)/*.$(OBJEXT) $(RUBYSPEC_CAPIEXT)/*.$(DLEXT)
|
2017-03-29 12:24:10 +03:00
|
|
|
-$(Q) $(RMDIRS) $(RUBYSPEC_CAPIEXT) 2> $(NULL) || exit 0
|
2017-02-27 10:54:24 +03:00
|
|
|
|
2018-08-10 11:42:45 +03:00
|
|
|
check: main test test-testframework test-almost test-spec
|
2011-12-23 01:06:23 +04:00
|
|
|
$(ECHO) check succeeded
|
2009-09-14 05:56:41 +04:00
|
|
|
check-ruby: test test-ruby
|
2005-03-31 03:26:00 +04:00
|
|
|
|
2013-01-07 10:23:15 +04:00
|
|
|
fake: $(CROSS_COMPILING)-fake
|
|
|
|
yes-fake: $(arch)-fake.rb $(RBCONFIG) PHONY
|
2015-06-18 02:34:58 +03:00
|
|
|
no-fake -fake: PHONY
|
2013-01-07 10:23:15 +04:00
|
|
|
|
2015-07-29 05:06:38 +03:00
|
|
|
# really doesn't depend on .o, just ensure newer than headers which
|
2015-06-10 05:13:04 +03:00
|
|
|
# version.o depends on.
|
2015-12-24 10:21:30 +03:00
|
|
|
$(arch)-fake.rb: $(srcdir)/template/fake.rb.in $(srcdir)/tool/generic_erb.rb version.$(OBJEXT) miniruby$(EXEEXT)
|
2015-07-29 05:06:38 +03:00
|
|
|
$(ECHO) generating $@
|
|
|
|
$(Q) $(CPP) $(warnflags) $(XCFLAGS) $(CPPFLAGS) "$(srcdir)/version.c" | \
|
|
|
|
$(BOOTSTRAPRUBY) "$(srcdir)/tool/generic_erb.rb" -o $@ "$(srcdir)/template/fake.rb.in" \
|
|
|
|
i=- srcdir="$(srcdir)" BASERUBY="$(BASERUBY)"
|
2015-06-10 05:13:04 +03:00
|
|
|
|
2012-02-17 06:50:22 +04:00
|
|
|
btest: $(TEST_RUNNABLE)-btest
|
2009-07-20 06:13:00 +04:00
|
|
|
no-btest: PHONY
|
2013-01-04 13:04:58 +04:00
|
|
|
yes-btest: fake miniruby$(EXEEXT) PHONY
|
2018-11-20 12:29:37 +03:00
|
|
|
$(Q)$(exec) $(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(BTESTRUBY) $(RUN_OPTS)" $(OPTS) $(TESTOPTS) $(BTESTS)
|
2007-02-24 13:39:30 +03:00
|
|
|
|
2012-02-17 06:50:22 +04:00
|
|
|
btest-ruby: $(TEST_RUNNABLE)-btest-ruby
|
2009-07-20 06:13:00 +04:00
|
|
|
no-btest-ruby: PHONY
|
2012-02-17 06:50:22 +04:00
|
|
|
yes-btest-ruby: prog PHONY
|
2018-11-20 12:29:37 +03:00
|
|
|
$(Q)$(exec) $(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib $(RUN_OPTS)" -q $(OPTS) $(TESTOPTS) $(BTESTS)
|
2007-08-08 06:02:45 +04:00
|
|
|
|
2016-01-16 04:37:47 +03:00
|
|
|
test-basic: $(TEST_RUNNABLE)-test-basic
|
|
|
|
no-test-basic: PHONY
|
|
|
|
yes-test-basic: prog PHONY
|
|
|
|
$(Q)$(exec) $(RUNRUBY) "$(srcdir)/basictest/runner.rb" --run-opt=$(RUN_OPTS) $(OPTS) $(TESTOPTS)
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2010-07-01 08:00:56 +04:00
|
|
|
test-knownbugs: test-knownbug
|
2012-02-17 06:50:22 +04:00
|
|
|
test-knownbug: $(TEST_RUNNABLE)-test-knownbug
|
2009-07-20 06:13:00 +04:00
|
|
|
no-test-knownbug: PHONY
|
2012-02-17 06:50:22 +04:00
|
|
|
yes-test-knownbug: prog PHONY
|
2015-07-22 10:14:20 +03:00
|
|
|
-$(exec) $(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) $(RUN_OPTS)" $(OPTS) $(TESTOPTS) $(srcdir)/KNOWNBUGS.rb
|
2008-06-09 16:10:43 +04:00
|
|
|
|
2015-10-09 16:54:43 +03:00
|
|
|
test-testframework: $(TEST_RUNNABLE)-test-testframework
|
|
|
|
yes-test-testframework: prog PHONY
|
2017-02-03 15:52:09 +03:00
|
|
|
$(gnumake_recursive)$(Q)$(exec) $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" $(TESTOPTS) testunit minitest
|
2015-10-09 16:54:43 +03:00
|
|
|
no-test-testframework: PHONY
|
2015-09-17 11:42:14 +03:00
|
|
|
|
2016-10-27 03:45:46 +03:00
|
|
|
test-sample: test-basic # backward compatibility for mswin-build
|
2018-08-10 11:42:45 +03:00
|
|
|
test-short: btest-ruby test-knownbug test-basic
|
|
|
|
test: test-short
|
2007-08-08 06:02:45 +04:00
|
|
|
|
2015-10-18 08:40:55 +03:00
|
|
|
# $ make test-all TESTOPTS="--help" displays more detail
|
|
|
|
# for example, make test-all TESTOPTS="-j2 -v -n test-name -- test-file-name"
|
2015-10-03 17:11:23 +03:00
|
|
|
test-all: $(TEST_RUNNABLE)-test-all
|
2018-07-31 15:43:06 +03:00
|
|
|
yes-test-all: programs PHONY
|
2017-02-03 15:52:09 +03:00
|
|
|
$(gnumake_recursive)$(Q)$(exec) $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" $(TEST_EXCLUDES) $(TESTOPTS) $(TESTS)
|
2010-12-06 16:55:15 +03:00
|
|
|
TESTS_BUILD = mkmf
|
2010-12-06 17:47:54 +03:00
|
|
|
no-test-all: PHONY
|
2017-02-03 15:52:09 +03:00
|
|
|
$(gnumake_recursive)$(MINIRUBY) -I"$(srcdir)/lib" "$(srcdir)/test/runner.rb" $(TESTOPTS) $(TESTS_BUILD)
|
2010-12-06 16:55:15 +03:00
|
|
|
|
2015-10-09 16:54:43 +03:00
|
|
|
test-almost: $(TEST_RUNNABLE)-test-almost
|
|
|
|
yes-test-almost: prog PHONY
|
2017-02-03 15:52:09 +03:00
|
|
|
$(gnumake_recursive)$(Q)$(exec) $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" $(TEST_EXCLUDES) $(TESTOPTS) $(EXCLUDE_TESTFRAMEWORK) $(TESTS)
|
2015-10-09 16:54:43 +03:00
|
|
|
no-test-almost: PHONY
|
|
|
|
|
2009-09-14 05:56:41 +04:00
|
|
|
test-ruby: $(TEST_RUNNABLE)-test-ruby
|
|
|
|
no-test-ruby: PHONY
|
2012-02-22 05:18:09 +04:00
|
|
|
yes-test-ruby: prog encs PHONY
|
2017-02-03 15:52:09 +03:00
|
|
|
$(gnumake_recursive)$(RUNRUBY) "$(srcdir)/test/runner.rb" $(TEST_EXCLUDES) $(TESTOPTS) -- ruby -ext-
|
2009-09-14 05:56:41 +04:00
|
|
|
|
2008-06-17 13:41:05 +04:00
|
|
|
extconf: $(PREP)
|
2010-11-17 12:38:38 +03:00
|
|
|
$(Q) $(MAKEDIRS) "$(EXTCONFDIR)"
|
2004-03-22 02:21:31 +03:00
|
|
|
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
|
|
|
|
|
2016-04-24 18:08:25 +03:00
|
|
|
$(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(srcdir)/version.h
|
2016-07-14 07:04:48 +03:00
|
|
|
$(Q)$(BOOTSTRAPRUBY) -n \
|
2016-07-17 14:59:26 +03:00
|
|
|
-e 'BEGIN{version=ARGV.shift;mis=ARGV.dup}' \
|
|
|
|
-e 'END{abort "UNICODE version mismatch: #{mis}" unless mis.empty?}' \
|
|
|
|
-e '(mis.delete(ARGF.path); ARGF.close) if /ONIG_UNICODE_VERSION_STRING +"#{Regexp.quote(version)}"/o' \
|
|
|
|
$(UNICODE_VERSION) $(UNICODE_DATA_HEADERS)
|
2016-06-09 09:32:18 +03:00
|
|
|
$(Q)$(BOOTSTRAPRUBY) $(srcdir)/tool/mkconfig.rb \
|
2015-04-02 10:27:12 +03:00
|
|
|
-arch=$(arch) -version=$(RUBY_PROGRAM_VERSION) \
|
2004-03-22 02:21:31 +03:00
|
|
|
-install_name=$(RUBY_INSTALL_NAME) \
|
2016-06-14 19:44:45 +03:00
|
|
|
-so_name=$(RUBY_SO_NAME) \
|
|
|
|
-unicode_version=$(UNICODE_VERSION) \
|
|
|
|
> rbconfig.tmp
|
2016-06-09 10:37:29 +03:00
|
|
|
$(IFCHANGE) "--timestamp=$@" rbconfig.rb rbconfig.tmp
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2017-05-16 15:15:48 +03:00
|
|
|
test-rubyspec: test-spec
|
2017-05-16 16:22:42 +03:00
|
|
|
yes-test-rubyspec: yes-test-spec
|
2010-08-16 07:29:08 +04:00
|
|
|
|
2017-05-16 18:47:44 +03:00
|
|
|
test-spec-precheck: $(arch)-fake.rb programs
|
2017-05-16 15:15:48 +03:00
|
|
|
|
|
|
|
test-spec: $(TEST_RUNNABLE)-test-spec
|
|
|
|
yes-test-spec: test-spec-precheck
|
2017-03-26 03:50:59 +03:00
|
|
|
$(gnumake_recursive)$(Q) \
|
2017-05-16 15:15:48 +03:00
|
|
|
$(RUNRUBY) -r./$(arch)-fake $(srcdir)/spec/mspec/bin/mspec run -B $(srcdir)/spec/default.mspec $(MSPECOPT) $(SPECOPTS)
|
|
|
|
no-test-spec:
|
2010-08-16 07:29:08 +04:00
|
|
|
|
2012-07-03 06:16:08 +04:00
|
|
|
RUNNABLE = $(LIBRUBY_RELATIVE:no=un)-runnable
|
|
|
|
runnable: $(RUNNABLE) prog $(srcdir)/tool/mkrunnable.rb PHONY
|
|
|
|
$(Q) $(MINIRUBY) $(srcdir)/tool/mkrunnable.rb -v $(EXTOUT)
|
|
|
|
yes-runnable: PHONY
|
|
|
|
|
2008-10-24 09:13:18 +04:00
|
|
|
encs: enc trans
|
2012-05-16 09:39:06 +04:00
|
|
|
libencs: libenc libtrans
|
2015-10-22 17:56:37 +03:00
|
|
|
encs enc trans libencs libenc libtrans: $(SHOWFLAGS) $(ENC_MK) $(LIBRUBY) $(PREP) PHONY
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) making $@
|
2016-08-16 11:41:59 +03:00
|
|
|
$(Q) $(MAKE) $(MAKE_ENC) $@
|
2008-10-16 09:34:25 +04:00
|
|
|
|
2012-05-16 09:39:06 +04:00
|
|
|
|
|
|
|
libenc enc: {$(VPATH)}encdb.h
|
|
|
|
libtrans trans: {$(VPATH)}transdb.h
|
2007-12-17 11:47:28 +03:00
|
|
|
|
2017-12-21 10:50:46 +03:00
|
|
|
# Use MINIRUBY which loads fake.rb for cross compiling
|
2008-09-26 12:06:59 +04:00
|
|
|
$(ENC_MK): $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc/depend \
|
2015-06-17 14:59:27 +03:00
|
|
|
$(srcdir)/enc/encinit.c.erb $(srcdir)/lib/mkmf.rb $(RBCONFIG) fake
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@
|
2017-12-21 10:50:46 +03:00
|
|
|
$(Q) $(MINIRUBY) $(srcdir)/enc/make_encmake.rb --builtin-encs="$(BUILTIN_ENCOBJS)" --builtin-transes="$(BUILTIN_TRANSOBJS)" --module$(ENCSTATIC) $(ENCS) $@
|
2007-12-17 11:47:28 +03:00
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
.PRECIOUS: $(MKFILES)
|
|
|
|
|
2009-05-14 05:52:10 +04:00
|
|
|
.PHONY: PHONY all fake prereq incs srcs preludes help
|
2007-02-27 18:12:18 +03:00
|
|
|
.PHONY: test install install-nodoc install-doc dist
|
2009-05-14 05:52:10 +04:00
|
|
|
.PHONY: loadpath golf capi rdoc install-prereq clear-installed-list
|
2014-12-02 10:06:45 +03:00
|
|
|
.PHONY: clean clean-ext clean-local clean-enc clean-golf clean-rdoc clean-html clean-extout
|
2009-05-14 05:52:10 +04:00
|
|
|
.PHONY: distclean distclean-ext distclean-local distclean-enc distclean-golf distclean-extout
|
|
|
|
.PHONY: realclean realclean-ext realclean-local realclean-enc realclean-golf realclean-extout
|
2018-08-10 11:42:45 +03:00
|
|
|
.PHONY: exam check test test-short test-all btest btest-ruby test-basic test-knownbug
|
2018-07-10 16:05:29 +03:00
|
|
|
.PHONY: run runruby parse benchmark gdb gdb-ruby
|
2017-05-16 15:15:48 +03:00
|
|
|
.PHONY: update-mspec update-rubyspec test-rubyspec test-spec
|
2017-03-24 05:44:21 +03:00
|
|
|
.PHONY: touch-unicode-files
|
2004-03-22 02:21:31 +03:00
|
|
|
|
|
|
|
PHONY:
|
|
|
|
|
2012-09-05 09:29:46 +04:00
|
|
|
{$(VPATH)}parse.c: {$(VPATH)}parse.y $(srcdir)/tool/ytab.sed {$(VPATH)}id.h
|
|
|
|
{$(VPATH)}parse.h: {$(VPATH)}parse.c
|
2004-03-22 02:21:31 +03:00
|
|
|
|
2007-11-13 20:50:33 +03:00
|
|
|
{$(srcdir)}.y.c:
|
2012-05-01 10:37:24 +04:00
|
|
|
$(ECHO) generating $@
|
2013-04-11 15:03:21 +04:00
|
|
|
$(Q)$(BASERUBY) $(srcdir)/tool/id2token.rb --path-separator=.$(PATH_SEPARATOR)./ --vpath=$(VPATH) id.h $(SRC_FILE) > parse.tmp.y
|
2012-08-31 09:31:20 +04:00
|
|
|
$(Q)$(YACC) -d $(YFLAGS) -o y.tab.c parse.tmp.y
|
|
|
|
$(Q)$(RM) parse.tmp.y
|
2017-05-18 18:06:47 +03:00
|
|
|
$(Q)sed -f $(srcdir)/tool/ytab.sed -e "/^#/s|parse\.tmp\.[iy]|$(SRC_FILE)|" -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@.new
|
2012-05-01 10:37:24 +04:00
|
|
|
$(Q)$(MV) $@.new $@
|
2012-08-31 09:31:20 +04:00
|
|
|
$(Q)sed -e "/^#line.*y\.tab\.h/d;/^#line.*parse.*\.y/d" y.tab.h > $(@:.c=.h)
|
2012-05-01 10:37:24 +04:00
|
|
|
$(Q)$(RM) y.tab.c y.tab.h
|
2007-11-13 15:41:41 +03:00
|
|
|
|
2013-04-11 16:03:23 +04:00
|
|
|
$(PLATFORM_D):
|
2016-07-16 00:26:02 +03:00
|
|
|
$(Q) $(MAKEDIRS) $(PLATFORM_DIR) $(@D)
|
2013-04-11 16:03:23 +04:00
|
|
|
@exit > $@
|
|
|
|
|
2018-11-07 10:21:00 +03:00
|
|
|
exe/$(PROGRAM): ruby-runner.c ruby-runner.h exe/.time miniruby$(EXEEXT) {$(VPATH)}config.h
|
2018-07-24 09:03:02 +03:00
|
|
|
$(Q) $(CC) $(CFLAGS) $(CPPFLAGS) -DRUBY_INSTALL_NAME=$(@F) $(COUTFLAG)ruby-runner.$(OBJEXT) -c $(CSRCFLAG)$(srcdir)/ruby-runner.c
|
|
|
|
$(Q) $(PURIFY) $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OUTFLAG)$@ ruby-runner.$(OBJEXT) $(LIBS)
|
2018-07-09 04:50:12 +03:00
|
|
|
$(Q) $(POSTLINK)
|
2017-09-24 13:07:21 +03:00
|
|
|
$(Q) ./miniruby$(EXEEXT) \
|
|
|
|
-e 'prog, dest = ARGV; dest += "/ruby"' \
|
|
|
|
-e 'unless prog=="ruby"' \
|
|
|
|
-e ' begin File.unlink(dest); rescue Errno::ENOENT; end' \
|
|
|
|
-e ' File.symlink(prog, dest)' \
|
|
|
|
-e 'end' \
|
|
|
|
$(@F) $(@D)
|
2017-09-16 14:50:55 +03:00
|
|
|
|
2017-09-17 07:14:51 +03:00
|
|
|
exe/.time:
|
|
|
|
$(Q) $(MAKEDIRS) exe $(@D)
|
|
|
|
@exit > $@
|
2017-09-16 14:50:55 +03:00
|
|
|
|
2015-07-30 09:30:38 +03:00
|
|
|
$(BUILTIN_ENCOBJS) $(BUILTIN_TRANSOBJS): $(ENC_TRANS_D)
|
2015-01-18 16:12:15 +03:00
|
|
|
|
|
|
|
$(ENC_TRANS_D):
|
2016-07-16 00:26:02 +03:00
|
|
|
$(Q) $(MAKEDIRS) enc/trans $(@D)
|
2015-01-18 16:12:15 +03:00
|
|
|
@exit > $@
|
|
|
|
|
2017-05-06 03:54:22 +03:00
|
|
|
$(TIMESTAMPDIR)/$(arch)/.time:
|
2017-05-06 17:12:30 +03:00
|
|
|
$(Q)$(MAKEDIRS) $(@D) $(EXTOUT)/$(arch)
|
2016-08-31 05:41:31 +03:00
|
|
|
@exit > $@
|
|
|
|
|
2013-04-11 16:03:23 +04:00
|
|
|
###
|
vm*: doubly-linked list from ccan to manage vm->living_threads
A doubly-linked list for tracking living threads guarantees
constant-time insert/delete performance with no corner cases of a
hash table. I chose this ccan implementation of doubly-linked
lists over the BSD sys/queue.h implementation since:
1) insertion and removal are both branchless
2) locality is improved if a struct may be a member of multiple lists
(0002 patch in Feature 9632 will introduce a secondary list
for waiting FDs)
This also increases cache locality during iteration: improving
performance in a new IO#close benchmark with many sleeping threads
while still scanning the same number of threads.
vm_thread_close 1.762
* vm_core.h (rb_vm_t): list_head and counter for living_threads
(rb_thread_t): vmlt_node for living_threads linkage
(rb_vm_living_threads_init): new function wrapper
(rb_vm_living_threads_insert): ditto
(rb_vm_living_threads_remove): ditto
* vm.c (rb_vm_living_threads_foreach): new function wrapper
* thread.c (terminate_i, thread_start_func_2, thread_create_core,
thread_fd_close_i, thread_fd_close): update to use new APIs
* vm.c (vm_mark_each_thread_func, rb_vm_mark, ruby_vm_destruct,
vm_memsize, vm_init2, Init_VM): ditto
* vm_trace.c (clear_trace_func_i, rb_clear_trace_func): ditto
* benchmark/bm_vm_thread_close.rb: added to show improvement
* ccan/build_assert/build_assert.h: added as a dependency of list.h
* ccan/check_type/check_type.h: ditto
* ccan/container_of/container_of.h: ditto
* ccan/licenses/BSD-MIT: ditto
* ccan/licenses/CC0: ditto
* ccan/str/str.h: ditto (stripped of unused macros)
* ccan/list/list.h: ditto
* common.mk: add CCAN_LIST_INCLUDES
[ruby-core:61871][Feature 9632 (part 1)]
Apologies for the size of this commit, but I think a good
doubly-linked list will be useful for future features, too.
This may be used to add ordering to a container_of-based hash
table to preserve compatibility if required (e.g. feature 9614).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-11 03:48:51 +04:00
|
|
|
CCAN_DIR = {$(VPATH)}ccan
|
2013-04-11 16:03:23 +04:00
|
|
|
|
|
|
|
RUBY_H_INCLUDES = {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
|
|
|
|
{$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}st.h \
|
|
|
|
{$(VPATH)}subst.h
|
|
|
|
|
|
|
|
###
|
|
|
|
|
2004-03-22 02:21:31 +03:00
|
|
|
acosh.$(OBJEXT): {$(VPATH)}acosh.c
|
2008-01-03 06:24:21 +03:00
|
|
|
alloca.$(OBJEXT): {$(VPATH)}alloca.c {$(VPATH)}config.h
|
2016-06-02 08:27:31 +03:00
|
|
|
crypt.$(OBJEXT): {$(VPATH)}crypt.c {$(VPATH)}crypt.h {$(VPATH)}missing/des_tables.c
|
2004-03-22 02:21:31 +03:00
|
|
|
dup2.$(OBJEXT): {$(VPATH)}dup2.c
|
|
|
|
erf.$(OBJEXT): {$(VPATH)}erf.c
|
2015-11-30 23:26:13 +03:00
|
|
|
explicit_bzero.$(OBJEXT): {$(VPATH)}explicit_bzero.c
|
2004-03-22 02:21:31 +03:00
|
|
|
finite.$(OBJEXT): {$(VPATH)}finite.c
|
|
|
|
flock.$(OBJEXT): {$(VPATH)}flock.c
|
|
|
|
memcmp.$(OBJEXT): {$(VPATH)}memcmp.c
|
|
|
|
memmove.$(OBJEXT): {$(VPATH)}memmove.c
|
|
|
|
mkdir.$(OBJEXT): {$(VPATH)}mkdir.c
|
2014-11-15 08:15:49 +03:00
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}setproctitle.c
|
2004-03-22 02:21:31 +03:00
|
|
|
strchr.$(OBJEXT): {$(VPATH)}strchr.c
|
|
|
|
strdup.$(OBJEXT): {$(VPATH)}strdup.c
|
|
|
|
strerror.$(OBJEXT): {$(VPATH)}strerror.c
|
2012-06-22 16:05:11 +04:00
|
|
|
strlcat.$(OBJEXT): {$(VPATH)}strlcat.c
|
|
|
|
strlcpy.$(OBJEXT): {$(VPATH)}strlcpy.c
|
2004-03-22 02:21:31 +03:00
|
|
|
strstr.$(OBJEXT): {$(VPATH)}strstr.c
|
|
|
|
nt.$(OBJEXT): {$(VPATH)}nt.c
|
2007-01-04 07:44:48 +03:00
|
|
|
ia64.$(OBJEXT): {$(VPATH)}ia64.s
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
2018-11-20 12:59:10 +03:00
|
|
|
coroutine/amd64/Context.$(OBJECT): {$(VPATH)}coroutine/amd64/Context.s
|
2004-03-22 02:21:31 +03:00
|
|
|
|
|
|
|
###
|
|
|
|
|
2014-11-15 18:46:05 +03:00
|
|
|
# dependencies for generated C sources.
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}parse.c
|
|
|
|
miniprelude.$(OBJEXT): {$(VPATH)}miniprelude.c
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}prelude.c
|
|
|
|
|
|
|
|
# dependencies for optional sources.
|
2014-11-15 17:11:49 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}opt_sc.inc {$(VPATH)}optunifs.inc
|
2007-10-11 01:35:45 +04:00
|
|
|
|
2015-08-25 08:11:19 +03:00
|
|
|
win32/win32.$(OBJEXT): {$(VPATH)}win32/win32.c {$(VPATH)}win32/file.h \
|
2015-09-15 09:03:37 +03:00
|
|
|
{$(VPATH)}dln.h {$(VPATH)}dln_find.c {$(VPATH)}encindex.h \
|
2017-11-20 04:17:43 +03:00
|
|
|
{$(VPATH)}internal.h {$(VPATH)}util.h $(RUBY_H_INCLUDES) \
|
|
|
|
{$(VPATH)}vm.h $(PLATFORM_D)
|
2015-10-16 09:54:38 +03:00
|
|
|
win32/file.$(OBJEXT): {$(VPATH)}win32/file.c {$(VPATH)}win32/file.h \
|
2015-06-14 11:20:43 +03:00
|
|
|
$(RUBY_H_INCLUDES) $(PLATFORM_D)
|
2012-08-23 14:20:37 +04:00
|
|
|
|
2012-03-26 09:08:55 +04:00
|
|
|
$(NEWLINE_C): $(srcdir)/enc/trans/newline.trans $(srcdir)/tool/transcode-tblgen.rb
|
2015-01-18 06:56:52 +03:00
|
|
|
$(Q) $(MAKEDIRS) $(@D)
|
2012-03-26 09:08:55 +04:00
|
|
|
$(Q) $(BASERUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo $@ $(srcdir)/enc/trans/newline.trans
|
2015-01-18 06:56:52 +03:00
|
|
|
enc/trans/newline.$(OBJEXT): $(NEWLINE_C)
|
2008-08-24 19:58:43 +04:00
|
|
|
|
2016-04-24 18:08:25 +03:00
|
|
|
verconf.h: $(srcdir)/template/verconf.h.tmpl $(srcdir)/tool/generic_erb.rb
|
2013-05-15 11:58:28 +04:00
|
|
|
$(ECHO) creating $@
|
2016-04-24 18:08:25 +03:00
|
|
|
$(Q) $(BOOTSTRAPRUBY) "$(srcdir)/tool/generic_erb.rb" -o $@ $(srcdir)/template/verconf.h.tmpl
|
2013-05-15 11:58:28 +04:00
|
|
|
|
2015-02-03 13:43:27 +03:00
|
|
|
ruby-glommed.$(OBJEXT): $(OBJS)
|
|
|
|
|
2010-07-22 01:38:25 +04:00
|
|
|
$(OBJS): {$(VPATH)}config.h {$(VPATH)}missing.h
|
|
|
|
|
* blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
fix typo (rb_thead_t -> rb_thread_t).
* eval_intern.h: remove unused definitions.
* common.mk: fix around vm_opts.h path
and remove harmful argument passed to insns2vm.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-08 09:37:46 +03:00
|
|
|
INSNS2VMOPT = --srcdir="$(srcdir)"
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2018-01-09 06:37:36 +03:00
|
|
|
srcs_vpath = {$(VPATH)}
|
2018-01-30 06:57:54 +03:00
|
|
|
|
|
|
|
# TODO: dependencies on tool/ruby_vm scripts.
|
2018-05-02 05:07:26 +03:00
|
|
|
inc_common_headers = $(srcdir)/tool/ruby_vm/views/_copyright.erb $(srcdir)/tool/ruby_vm/views/_notice.erb
|
|
|
|
$(srcs_vpath)opt_sc.inc: $(srcdir)/tool/ruby_vm/views/opt_sc.inc.erb $(inc_common_headers)
|
|
|
|
$(srcs_vpath)optinsn.inc: $(srcdir)/tool/ruby_vm/views/optinsn.inc.erb $(inc_common_headers)
|
|
|
|
$(srcs_vpath)optunifs.inc: $(srcdir)/tool/ruby_vm/views/optunifs.inc.erb $(inc_common_headers)
|
|
|
|
$(srcs_vpath)insns.inc: $(srcdir)/tool/ruby_vm/views/insns.inc.erb $(inc_common_headers)
|
|
|
|
$(srcs_vpath)insns_info.inc: $(srcdir)/tool/ruby_vm/views/insns_info.inc.erb $(inc_common_headers) \
|
|
|
|
$(srcdir)/tool/ruby_vm/views/_insn_type_chars.erb $(srcdir)/tool/ruby_vm/views/_insn_name_info.erb \
|
|
|
|
$(srcdir)/tool/ruby_vm/views/_insn_len_info.erb $(srcdir)/tool/ruby_vm/views/_insn_operand_info.erb \
|
|
|
|
$(srcdir)/tool/ruby_vm/views/_attributes.erb $(srcdir)/tool/ruby_vm/views/_insn_stack_increase.erb
|
|
|
|
$(srcs_vpath)vmtc.inc: $(srcdir)/tool/ruby_vm/views/vmtc.inc.erb $(inc_common_headers)
|
|
|
|
$(srcs_vpath)vm.inc: $(srcdir)/tool/ruby_vm/views/vm.inc.erb $(inc_common_headers) \
|
|
|
|
$(srcdir)/tool/ruby_vm/views/_insn_entry.erb $(srcdir)/tool/ruby_vm/views/_trace_instruction.erb
|
|
|
|
$(srcs_vpath)mjit_compile.inc: $(srcdir)/tool/ruby_vm/views/mjit_compile.inc.erb $(inc_common_headers) \
|
2018-02-12 09:54:25 +03:00
|
|
|
$(srcdir)/tool/ruby_vm/views/_mjit_compile_insn.erb $(srcdir)/tool/ruby_vm/views/_mjit_compile_send.erb \
|
2018-10-21 16:37:13 +03:00
|
|
|
$(srcdir)/tool/ruby_vm/views/_mjit_compile_ivar.erb \
|
mjit_compile.c: use local variables for stack
if catch_except_p is FALSE. If catch_except_p is TRUE, stack values
should be on VM's stack when exception is thrown and the JIT-ed frame
is re-executed by VM's exception handler. If it's FALSE, the JIT-ed
frame won't be re-executed and don't need to keep values on VM's stack.
Using local variables allows us to reduce cfp->sp motion. Moving cfp->sp
is needed only for insns whose handles_frame? is false. So it improves
performance.
_mjit_compile_insn.erb: Prepare `stack_size` variable for GET_SP,
STACK_ADDR_FROM_TOP, TOPN macros. Share pc and sp motion partial view.
Use cancel handler created in mjit_compile.c.
_mjit_compile_send.erb: ditto. Also, when iseq->body->catch_except_p is
TRUE, this stops to call mjit_exec directly. I described the reason in
vm_insnhelper.h's comment for EXEC_EC_CFP.
_mjit_compile_pc_and_sp.erb: Shared logic for moving sp and pc. As you
can see from thsi file, when status->local_stack_p is TRUE and
insn.handles_frame? is false, moving sp is skipped. But if
insn.handles_frame? is true, values should be rolled back to VM's stack.
common.mk: add dependency for the file
_mjit_compile_insn_body.erb: Set sp value before canceling JIT on
DISPATCH_ORIGINAL_INSN. Replace GET_SP, STACK_ADDR_FROM_TOP, TOPN macros
for the case ocal_stack_p is TRUE and insn.handles_frame? is false.
In that case, values are not available on VM's stack and those macros
should be replaced.
mjit_compile.inc.erb: updated comments of macros which are supported by
JIT compiler. All references to `cfp->sp` should be replaced and thus
INC_SP, SET_SV, PUSH are no longer supported for now, because they are
not used now.
vm_exec.h: moved EXEC_EC_CFP definition to vm_insnhelper.h because it's
tighly coupled to CALL_METHOD.
vm_insnhelper.h: Have revised EXEC_EC_CFP definition moved from vm_exec.h.
Now it triggers mjit_exec for VM, and has the guard for catch_except_p
on JIT-ed code. See comments for details. CALL_METHOD delegates
triggering mjit_exec to EXEC_EC_CFP.
insns.def: Stopped using EXEC_EC_CFP for the case we don't want to
trigger mjit_exec. Those insns (defineclass, opt_call_c_function) are
not supported by JIT and it's safe to use RESTORE_REGS(), NEXT_INSN().
expandarray is changed to pass GET_SP() to replace the macro in
_mjit_compile_insn_body.erb.
vm_insnhelper.c: change to take sp for the above reason.
[close https://github.com/ruby/ruby/pull/1828]
This patch resurrects the performance which was attached in
[Feature #14235].
* Benchmark
Optcarrot (with configuration for benchmark_driver.gem)
https://github.com/benchmark-driver/optcarrot
$ benchmark-driver benchmark.yml --verbose 1 --rbenv 'before;before+JIT::before,--jit;after;after+JIT::after,--jit' --repeat-count 10
before: ruby 2.6.0dev (2018-03-04 trunk 62652) [x86_64-linux]
before+JIT: ruby 2.6.0dev (2018-03-04 trunk 62652) +JIT [x86_64-linux]
after: ruby 2.6.0dev (2018-03-04 local-variable.. 62652) [x86_64-linux]
last_commit=mjit_compile.c: use local variables for stack
after+JIT: ruby 2.6.0dev (2018-03-04 local-variable.. 62652) +JIT [x86_64-linux]
last_commit=mjit_compile.c: use local variables for stack
Calculating -------------------------------------
before before+JIT after after+JIT
optcarrot 53.552 59.680 53.697 63.358 fps
Comparison:
optcarrot
after+JIT: 63.4 fps
before+JIT: 59.7 fps - 1.06x slower
after: 53.7 fps - 1.18x slower
before: 53.6 fps - 1.18x slower
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-04 10:04:40 +03:00
|
|
|
$(srcdir)/tool/ruby_vm/views/_mjit_compile_insn_body.erb $(srcdir)/tool/ruby_vm/views/_mjit_compile_pc_and_sp.erb
|
2018-01-30 06:57:54 +03:00
|
|
|
|
2018-01-09 06:37:36 +03:00
|
|
|
common-srcs: $(srcs_vpath)parse.c $(srcs_vpath)lex.c $(srcs_vpath)enc/trans/newline.c $(srcs_vpath)id.c \
|
2017-04-22 03:18:08 +03:00
|
|
|
srcs-lib srcs-ext incs
|
2014-10-22 21:25:35 +04:00
|
|
|
|
2016-06-02 08:27:31 +03:00
|
|
|
missing-srcs: $(srcdir)/missing/des_tables.c
|
|
|
|
|
|
|
|
srcs: common-srcs missing-srcs srcs-enc
|
2009-03-15 02:26:11 +03:00
|
|
|
|
2014-11-19 15:12:22 +03:00
|
|
|
EXT_SRCS = $(srcdir)/ext/ripper/ripper.c \
|
2016-01-04 10:16:09 +03:00
|
|
|
$(srcdir)/ext/rbconfig/sizeof/sizes.c \
|
2017-01-30 15:00:34 +03:00
|
|
|
$(srcdir)/ext/rbconfig/sizeof/limits.c \
|
2016-01-04 10:16:09 +03:00
|
|
|
$(srcdir)/ext/socket/constdefs.c \
|
|
|
|
# EXT_SRCS
|
2009-03-15 02:26:11 +03:00
|
|
|
|
|
|
|
srcs-ext: $(EXT_SRCS)
|
2008-08-05 22:56:42 +04:00
|
|
|
|
2016-06-08 04:09:23 +03:00
|
|
|
srcs-extra: $(srcdir)/ext/json/parser/parser.c \
|
2016-06-08 08:41:08 +03:00
|
|
|
$(srcdir)/ext/date/zonetab.h \
|
2016-06-08 04:09:23 +03:00
|
|
|
$(empty)
|
2014-12-01 09:38:08 +03:00
|
|
|
|
2014-10-21 17:48:16 +04:00
|
|
|
LIB_SRCS = $(srcdir)/lib/unicode_normalize/tables.rb
|
|
|
|
|
|
|
|
srcs-lib: $(LIB_SRCS)
|
|
|
|
|
|
|
|
srcs-enc: $(ENC_MK)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) making srcs under enc
|
2016-08-16 11:41:59 +03:00
|
|
|
$(Q) $(MAKE) $(MAKE_ENC) srcs
|
2007-08-06 08:09:56 +04:00
|
|
|
|
2014-11-26 00:09:34 +03:00
|
|
|
all-incs: incs {$(VPATH)}encdb.h {$(VPATH)}transdb.h
|
|
|
|
incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}known_errors.inc \
|
2015-10-24 02:54:50 +03:00
|
|
|
{$(VPATH)}vm_call_iseq_optimized.inc $(srcdir)/revision.h \
|
2016-07-14 14:01:59 +03:00
|
|
|
$(REVISION_H) \
|
2016-07-17 14:59:26 +03:00
|
|
|
$(UNICODE_DATA_HEADERS) $(srcdir)/enc/jis/props.h \
|
2017-03-10 10:18:03 +03:00
|
|
|
{$(VPATH)}id.h {$(VPATH)}probes.dmyh
|
2007-12-22 21:22:43 +03:00
|
|
|
|
2008-04-03 07:56:07 +04:00
|
|
|
insns: $(INSNS)
|
|
|
|
|
2013-04-11 15:03:21 +04:00
|
|
|
id.h: $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.h.tmpl $(srcdir)/defs/id.def
|
2012-12-04 21:36:19 +04:00
|
|
|
$(ECHO) generating $@
|
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ \
|
2013-04-08 11:10:18 +04:00
|
|
|
$(srcdir)/template/id.h.tmpl
|
2012-12-04 21:36:19 +04:00
|
|
|
|
2013-04-11 15:03:21 +04:00
|
|
|
id.c: $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.c.tmpl $(srcdir)/defs/id.def
|
2012-08-31 09:31:20 +04:00
|
|
|
$(ECHO) generating $@
|
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ \
|
2013-04-08 11:10:18 +04:00
|
|
|
$(srcdir)/template/id.c.tmpl
|
2009-09-07 00:22:18 +04:00
|
|
|
|
2018-06-08 13:42:48 +03:00
|
|
|
{$(VPATH)}node.h: $(srcdir)/tool/node_name.rb
|
|
|
|
# This dependency is not really correct, but $? should not include
|
|
|
|
# node_name.rb in the following recipe.
|
2007-12-24 11:40:59 +03:00
|
|
|
node_name.inc: {$(VPATH)}node.h
|
2011-07-31 18:17:37 +04:00
|
|
|
$(ECHO) generating $@
|
|
|
|
$(Q) $(BASERUBY) -n $(srcdir)/tool/node_name.rb < $? > $@
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2009-01-13 12:05:29 +03:00
|
|
|
encdb.h: $(PREP) $(srcdir)/tool/generic_erb.rb $(srcdir)/template/encdb.h.tmpl
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/encdb.h.tmpl $(srcdir)/enc enc
|
2008-01-12 19:03:51 +03:00
|
|
|
|
2009-01-13 12:05:29 +03:00
|
|
|
transdb.h: $(PREP) srcs-enc $(srcdir)/tool/generic_erb.rb $(srcdir)/template/transdb.h.tmpl
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/transdb.h.tmpl $(srcdir)/enc/trans enc/trans
|
2008-01-29 13:05:39 +03:00
|
|
|
|
2012-05-16 09:39:06 +04:00
|
|
|
enc/encinit.c: $(ENC_MK) $(srcdir)/enc/encinit.c.erb
|
|
|
|
|
2008-09-26 12:18:49 +04:00
|
|
|
known_errors.inc: $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@
|
2010-11-12 14:51:42 +03:00
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def
|
2008-09-26 12:18:49 +04:00
|
|
|
|
2015-10-23 20:53:35 +03:00
|
|
|
vm_call_iseq_optimized.inc: $(srcdir)/tool/mk_call_iseq_optimized.rb
|
|
|
|
$(ECHO) generating $@
|
2015-10-24 02:37:44 +03:00
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/mk_call_iseq_optimized.rb > $@
|
2015-10-23 20:53:35 +03:00
|
|
|
|
2014-11-27 15:59:18 +03:00
|
|
|
$(MINIPRELUDE_C): $(COMPILE_PRELUDE)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@
|
2014-11-11 12:09:14 +03:00
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb -I$(srcdir) -o $@ \
|
2014-11-27 11:12:16 +03:00
|
|
|
$(srcdir)/template/prelude.c.tmpl
|
2007-08-25 05:20:30 +04:00
|
|
|
|
2014-11-25 18:22:01 +03:00
|
|
|
$(PRELUDE_C): $(COMPILE_PRELUDE) \
|
2016-08-24 07:43:25 +03:00
|
|
|
$(PRELUDE_SCRIPTS)
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@
|
2014-11-27 11:32:01 +03:00
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb -I$(srcdir) -c -o $@ \
|
2014-11-11 12:09:14 +03:00
|
|
|
$(srcdir)/template/prelude.c.tmpl $(PRELUDE_SCRIPTS)
|
2007-11-10 12:22:59 +03:00
|
|
|
|
2018-05-20 21:13:08 +03:00
|
|
|
$(GOLF_PRELUDE_C): $(COMPILE_PRELUDE) {$(srcdir)}golf_prelude.rb
|
2010-11-11 15:46:23 +03:00
|
|
|
$(ECHO) generating $@
|
2014-11-27 11:32:01 +03:00
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb -I$(srcdir) -c -o $@ \
|
2014-11-11 12:09:14 +03:00
|
|
|
$(srcdir)/template/prelude.c.tmpl golf_prelude.rb
|
2007-12-22 21:22:43 +03:00
|
|
|
|
2017-05-15 10:04:48 +03:00
|
|
|
MAINCPPFLAGS = $(ENABLE_DEBUG_ENV:yes=-DRUBY_DEBUG_ENV=1)
|
|
|
|
|
|
|
|
$(MAINOBJ): $(srcdir)/$(MAINSRC)
|
|
|
|
$(ECHO) compiling $(srcdir)/$(MAINSRC)
|
|
|
|
$(Q) $(CC) $(MAINCPPFLAGS) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$(srcdir)/$(MAINSRC)
|
|
|
|
|
2016-01-09 06:32:43 +03:00
|
|
|
{$(VPATH)}probes.dmyh: {$(srcdir)}probes.d $(srcdir)/tool/gen_dummy_probes.rb
|
2016-01-22 14:22:27 +03:00
|
|
|
|
|
|
|
probes.dmyh:
|
2012-11-13 11:49:09 +04:00
|
|
|
$(BASERUBY) $(srcdir)/tool/gen_dummy_probes.rb $(srcdir)/probes.d > $@
|
|
|
|
|
2012-11-22 16:49:59 +04:00
|
|
|
probes.h: {$(VPATH)}probes.$(DTRACE_EXT)
|
2012-11-19 09:56:38 +04:00
|
|
|
|
2014-11-27 11:32:01 +03:00
|
|
|
prereq: incs srcs preludes PHONY
|
2007-12-22 21:22:43 +03:00
|
|
|
|
2014-11-11 12:09:59 +03:00
|
|
|
preludes: {$(VPATH)}prelude.c
|
2007-12-22 21:22:43 +03:00
|
|
|
preludes: {$(VPATH)}miniprelude.c
|
2007-12-25 10:04:30 +03:00
|
|
|
preludes: {$(srcdir)}golf_prelude.c
|
2007-08-24 19:26:28 +04:00
|
|
|
|
2009-03-16 06:30:01 +03:00
|
|
|
$(srcdir)/revision.h:
|
|
|
|
@exit > $@
|
|
|
|
|
2018-11-13 06:24:18 +03:00
|
|
|
$(REVISION_H): $(srcdir)/version.h $(srcdir)/tool/file2lastrev.rb $(REVISION_FORCE)
|
2017-12-17 21:43:49 +03:00
|
|
|
-$(Q) $(BASERUBY) $(srcdir)/tool/file2lastrev.rb -q --revision.h "$(srcdir)" > revision.tmp
|
2012-05-01 10:37:24 +04:00
|
|
|
$(Q)$(IFCHANGE) "--timestamp=$@" "$(srcdir)/revision.h" revision.tmp
|
2007-12-22 09:14:50 +03:00
|
|
|
|
2018-01-17 07:25:39 +03:00
|
|
|
$(srcdir)/ext/ripper/ripper.c: $(srcdir)/ext/ripper/tools/preproc.rb $(srcdir)/parse.y id.h
|
2010-11-17 12:22:45 +03:00
|
|
|
$(ECHO) generating $@
|
2017-07-14 13:31:05 +03:00
|
|
|
$(Q) VPATH=$${PWD-`pwd`} && $(CHDIR) $(@D) && \
|
2018-01-17 14:12:31 +03:00
|
|
|
sed -e 's/{\$$([^(){}]*)[^{}]*}//g' -e /AUTOGENERATED/q depend | \
|
2017-02-10 09:12:22 +03:00
|
|
|
$(exec) $(MAKE) -f - $(mflags) \
|
2017-07-14 13:31:05 +03:00
|
|
|
Q=$(Q) ECHO=$(ECHO) RM="$(RM)" top_srcdir=../.. srcdir=. VPATH="$${VPATH}" \
|
2014-11-19 12:00:33 +03:00
|
|
|
RUBY="$(BASERUBY)" PATH_SEPARATOR="$(PATH_SEPARATOR)"
|
2007-11-15 08:29:58 +03:00
|
|
|
|
2014-12-01 09:38:08 +03:00
|
|
|
$(srcdir)/ext/json/parser/parser.c: $(srcdir)/ext/json/parser/parser.rl
|
|
|
|
$(ECHO) generating $@
|
2017-02-10 09:12:22 +03:00
|
|
|
$(Q) $(CHDIR) $(@D) && $(exec) $(MAKE) -f prereq.mk $(mflags) \
|
2014-12-01 09:38:08 +03:00
|
|
|
Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=. VPATH=../../.. BASERUBY="$(BASERUBY)"
|
|
|
|
|
2016-06-08 08:41:08 +03:00
|
|
|
$(srcdir)/ext/date/zonetab.h: $(srcdir)/ext/date/zonetab.list
|
2016-06-08 04:09:23 +03:00
|
|
|
$(ECHO) generating $@
|
2017-02-10 09:12:22 +03:00
|
|
|
$(Q) $(CHDIR) $(@D) && $(exec) $(MAKE) -f prereq.mk $(mflags) \
|
2016-09-06 06:03:35 +03:00
|
|
|
Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. VPATH=../.. BASERUBY="$(BASERUBY)"
|
2016-06-08 04:09:23 +03:00
|
|
|
|
2016-01-25 10:45:54 +03:00
|
|
|
$(srcdir)/ext/rbconfig/sizeof/sizes.c: $(srcdir)/ext/rbconfig/sizeof/depend \
|
2017-09-29 16:21:17 +03:00
|
|
|
$(srcdir)/tool/generic_erb.rb $(srcdir)/template/sizes.c.tmpl $(srcdir)/configure.ac
|
2013-11-18 18:19:16 +04:00
|
|
|
$(ECHO) generating $@
|
2015-03-22 02:09:49 +03:00
|
|
|
$(Q) $(CHDIR) $(@D) && \
|
2016-09-06 06:10:43 +03:00
|
|
|
sed '/AUTOGENERATED/q' depend | \
|
2017-02-10 09:12:22 +03:00
|
|
|
$(exec) $(MAKE) -f - $(mflags) \
|
2017-01-30 15:00:34 +03:00
|
|
|
Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=. VPATH=../../.. RUBY="$(BASERUBY)" $(@F)
|
|
|
|
|
|
|
|
$(srcdir)/ext/rbconfig/sizeof/limits.c: $(srcdir)/ext/rbconfig/sizeof/depend \
|
|
|
|
$(srcdir)/tool/generic_erb.rb $(srcdir)/template/limits.c.tmpl
|
|
|
|
$(ECHO) generating $@
|
|
|
|
$(Q) $(CHDIR) $(@D) && \
|
|
|
|
sed '/AUTOGENERATED/q' depend | \
|
2017-02-10 09:12:22 +03:00
|
|
|
$(exec) $(MAKE) -f - $(mflags) \
|
2017-01-30 15:00:34 +03:00
|
|
|
Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=. VPATH=../../.. RUBY="$(BASERUBY)" $(@F)
|
2013-11-18 18:19:16 +04:00
|
|
|
|
2016-01-04 10:16:09 +03:00
|
|
|
$(srcdir)/ext/socket/constdefs.c: $(srcdir)/ext/socket/depend
|
|
|
|
$(Q) $(CHDIR) $(@D) && \
|
2016-09-06 06:10:43 +03:00
|
|
|
sed '/AUTOGENERATED/q' depend | \
|
2017-02-10 09:12:22 +03:00
|
|
|
$(exec) $(MAKE) -f - $(mflags) \
|
2016-09-06 06:10:43 +03:00
|
|
|
Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. VPATH=../.. RUBY="$(BASERUBY)"
|
2016-01-04 10:16:09 +03:00
|
|
|
|
2007-01-05 16:52:16 +03:00
|
|
|
##
|
|
|
|
|
2013-01-04 14:47:06 +04:00
|
|
|
run: fake miniruby$(EXEEXT) PHONY
|
|
|
|
$(BTESTRUBY) $(TESTRUN_SCRIPT) $(RUNOPT)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2007-02-02 21:35:40 +03:00
|
|
|
runruby: $(PROGRAM) PHONY
|
2008-12-12 13:35:31 +03:00
|
|
|
$(RUNRUBY) $(TESTRUN_SCRIPT)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2013-01-04 14:47:06 +04:00
|
|
|
parse: fake miniruby$(EXEEXT) PHONY
|
2017-06-22 11:37:53 +03:00
|
|
|
$(BTESTRUBY) --dump=parsetree_with_comment,insns $(TESTRUN_SCRIPT)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2013-08-08 09:54:08 +04:00
|
|
|
bisect: PHONY
|
|
|
|
$(srcdir)/tool/bisect.sh miniruby $(srcdir)
|
|
|
|
|
|
|
|
bisect-ruby: PHONY
|
|
|
|
$(srcdir)/tool/bisect.sh ruby $(srcdir)
|
|
|
|
|
2007-09-27 10:46:31 +04:00
|
|
|
COMPARE_RUBY = $(BASERUBY)
|
2012-06-10 01:36:05 +04:00
|
|
|
ITEM =
|
2018-07-10 16:16:55 +03:00
|
|
|
ARGS = $$(find $(srcdir)/benchmark -maxdepth 1 -name '*$(ITEM)*.yml' -o -name '*$(ITEM)*.rb' | sort)
|
2012-06-10 01:36:05 +04:00
|
|
|
OPTS =
|
2007-09-27 10:46:31 +04:00
|
|
|
|
2015-10-19 18:55:01 +03:00
|
|
|
# You can pass several options through OPTS environment variable.
|
2018-07-09 19:31:35 +03:00
|
|
|
# $ make benchmark ARGS="--help" displays more detail.
|
2015-10-18 08:40:25 +03:00
|
|
|
# for example,
|
|
|
|
# $ make benchmark COMPARE_RUBY="ruby-trunk" OPTS="-e ruby-2.2.2"
|
|
|
|
# This command compares trunk and built-ruby and 2.2.2
|
benchmark: introduce benchmark_driver.gem
Makefile.in: Clone benchmark-driver repository in benchmark/benchmark-driver
`make update-benchmark-driver`, like simplecov.
win32/Makefile.sub: Roughly do the same thing.
.gitignore: Ignore the cloned repository.
common.mk: Trigger `make update-benchmark-driver` to run `make benchmark`
and adjust arguments for benchmark_driver.gem.
benchmark/require.yml: renamed from benchmark/bm_require.rb, benchmark/prepare_require.rb
benchmark/require_thread.yml: renamed from benchmark/bm_require_thread.rb, benchmark/prepare_require_thread.rb
benchmark/so_count_words.yml: renamed from benchmark/bm_so_count_words.rb, benchmark/prepare_so_count_words.rb,
benchmark/wc.input.base
benchmark/so_k_nucleotide.yml: renamed from benchmark/bm_so_k_nucleotide.rb, benchmark/prepare_so_k_nucleotide.rb,
benchmark/make_fasta_output.rb
benchmark/so_reverse_complement.yml: renamed from benchmark/bm_so_reverse_complement.rb, benchmark/prepare_so_reverse_complement.rb,
benchmark/make_fasta_output.rb
I'm sorry but I made some duplications between benchmark/require.yml and benchmark/require_thread.yml,
and between benchmark/so_k_nucleotide.yml and benchmark/so_reverse_complement.yml.
If you're not comfortable with it, please combine these YAMLs to share
the same prelude. One YAML file can have multiple benchmark definitions
sharing prelude.
benchmark/driver.rb: Replace its core feature with benchmark_driver.gem.
Some old features are gone for now, but I'll add them again later.
[Misc #14902]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-08 17:38:05 +03:00
|
|
|
benchmark: miniruby$(EXEEXT) update-benchmark-driver PHONY
|
2018-07-10 15:14:04 +03:00
|
|
|
$(BASERUBY) -rrubygems -I$(srcdir)/benchmark/lib $(srcdir)/benchmark/benchmark-driver/exe/benchmark-driver \
|
benchmark: introduce benchmark_driver.gem
Makefile.in: Clone benchmark-driver repository in benchmark/benchmark-driver
`make update-benchmark-driver`, like simplecov.
win32/Makefile.sub: Roughly do the same thing.
.gitignore: Ignore the cloned repository.
common.mk: Trigger `make update-benchmark-driver` to run `make benchmark`
and adjust arguments for benchmark_driver.gem.
benchmark/require.yml: renamed from benchmark/bm_require.rb, benchmark/prepare_require.rb
benchmark/require_thread.yml: renamed from benchmark/bm_require_thread.rb, benchmark/prepare_require_thread.rb
benchmark/so_count_words.yml: renamed from benchmark/bm_so_count_words.rb, benchmark/prepare_so_count_words.rb,
benchmark/wc.input.base
benchmark/so_k_nucleotide.yml: renamed from benchmark/bm_so_k_nucleotide.rb, benchmark/prepare_so_k_nucleotide.rb,
benchmark/make_fasta_output.rb
benchmark/so_reverse_complement.yml: renamed from benchmark/bm_so_reverse_complement.rb, benchmark/prepare_so_reverse_complement.rb,
benchmark/make_fasta_output.rb
I'm sorry but I made some duplications between benchmark/require.yml and benchmark/require_thread.yml,
and between benchmark/so_k_nucleotide.yml and benchmark/so_reverse_complement.yml.
If you're not comfortable with it, please combine these YAMLs to share
the same prelude. One YAML file can have multiple benchmark definitions
sharing prelude.
benchmark/driver.rb: Replace its core feature with benchmark_driver.gem.
Some old features are gone for now, but I'll add them again later.
[Misc #14902]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-07-08 17:38:05 +03:00
|
|
|
--executables="compare-ruby::$(COMPARE_RUBY) -I$(EXTOUT)/common --disable-gem" \
|
|
|
|
--executables="built-ruby::$(MINIRUBY) -r$(srcdir)/prelude --disable-gem" \
|
2018-07-09 19:31:35 +03:00
|
|
|
$(ARGS) $(OPTS)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
|
|
|
run.gdb:
|
2013-11-26 14:30:42 +04:00
|
|
|
echo set breakpoint pending on > run.gdb
|
|
|
|
echo b ruby_debug_breakpoint >> run.gdb
|
2007-02-25 18:58:27 +03:00
|
|
|
echo '# handle SIGINT nostop' >> run.gdb
|
|
|
|
echo '# handle SIGPIPE nostop' >> run.gdb
|
|
|
|
echo '# b rb_longjmp' >> run.gdb
|
|
|
|
echo source $(srcdir)/breakpoints.gdb >> run.gdb
|
2007-06-28 00:03:53 +04:00
|
|
|
echo source $(srcdir)/.gdbinit >> run.gdb
|
2010-10-24 22:00:20 +04:00
|
|
|
echo 'set $$_exitcode = -999' >> run.gdb
|
2007-02-25 18:58:27 +03:00
|
|
|
echo run >> run.gdb
|
2010-10-24 22:00:20 +04:00
|
|
|
echo 'if $$_exitcode != -999' >> run.gdb
|
|
|
|
echo ' quit' >> run.gdb
|
|
|
|
echo end >> run.gdb
|
|
|
|
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2008-06-17 15:32:40 +04:00
|
|
|
gdb: miniruby$(EXEEXT) run.gdb PHONY
|
2008-12-12 13:35:31 +03:00
|
|
|
gdb -x run.gdb --quiet --args $(MINIRUBY) $(TESTRUN_SCRIPT)
|
2006-12-31 18:02:22 +03:00
|
|
|
|
2008-10-04 10:36:20 +04:00
|
|
|
gdb-ruby: $(PROGRAM) run.gdb PHONY
|
2012-10-05 11:28:32 +04:00
|
|
|
$(Q) $(RUNRUBY_COMMAND) $(RUNRUBY_DEBUGGER) -- $(TESTRUN_SCRIPT)
|
2008-10-04 10:36:20 +04:00
|
|
|
|
2017-05-31 09:03:13 +03:00
|
|
|
LLDB_INIT = command script import -r $(srcdir)/misc/lldb_cruby.py
|
|
|
|
|
|
|
|
lldb: miniruby$(EXEEXT) PHONY
|
|
|
|
lldb -o '$(LLDB_INIT)' miniruby$(EXEEXT) -- $(TESTRUN_SCRIPT)
|
|
|
|
|
|
|
|
lldb-ruby: $(PROGRAM) PHONY
|
2017-05-31 09:40:49 +03:00
|
|
|
lldb $(enable_shared:yes=-o 'target modules add ${LIBRUBY_SO}') -o '$(LLDB_INIT)' $(PROGRAM) -- $(TESTRUN_SCRIPT)
|
2017-05-31 09:03:13 +03:00
|
|
|
|
2017-06-15 06:12:32 +03:00
|
|
|
DISTPKGS = gzip,zip,all
|
2008-09-26 13:40:04 +04:00
|
|
|
dist:
|
2016-08-16 16:02:33 +03:00
|
|
|
$(BASERUBY) $(srcdir)/tool/make-snapshot \
|
2017-06-15 06:12:32 +03:00
|
|
|
-srcdir=$(srcdir) -packages=$(DISTPKGS) \
|
2016-08-16 16:02:33 +03:00
|
|
|
-unicode-version=$(UNICODE_VERSION) \
|
|
|
|
tmp $(RELNAME)
|
2008-01-25 12:27:30 +03:00
|
|
|
|
2016-01-19 05:30:17 +03:00
|
|
|
up:: update-remote
|
|
|
|
|
2013-06-14 09:10:15 +04:00
|
|
|
up::
|
2018-11-13 06:24:18 +03:00
|
|
|
-$(Q)$(MAKE) $(mflags) Q=$(Q) REVISION_FORCE=PHONY "$(REVISION_H)"
|
2008-01-27 12:19:00 +03:00
|
|
|
|
2014-12-23 17:30:32 +03:00
|
|
|
up::
|
2017-02-10 09:12:22 +03:00
|
|
|
-$(Q)$(MAKE) $(mflags) Q=$(Q) after-update
|
2014-12-23 17:30:32 +03:00
|
|
|
|
2016-01-19 05:30:17 +03:00
|
|
|
after-update:: extract-extlibs
|
|
|
|
|
2017-05-07 15:01:26 +03:00
|
|
|
update-remote:: update-src update-download
|
2016-01-20 15:00:14 +03:00
|
|
|
update-download:: update-unicode update-gems download-extlibs
|
2013-06-14 08:01:54 +04:00
|
|
|
|
2017-05-07 16:40:56 +03:00
|
|
|
update-mspec:
|
|
|
|
update-rubyspec:
|
2017-04-10 04:22:48 +03:00
|
|
|
|
2016-01-21 09:58:03 +03:00
|
|
|
update-config_files: PHONY
|
2017-05-21 19:45:35 +03:00
|
|
|
$(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb -d tool -e gnu \
|
2016-01-21 09:58:03 +03:00
|
|
|
config.guess config.sub
|
|
|
|
|
2014-09-23 16:09:30 +04:00
|
|
|
update-gems: PHONY
|
2014-09-28 06:54:59 +04:00
|
|
|
$(ECHO) Downloading bundled gem files...
|
2017-05-21 19:45:35 +03:00
|
|
|
$(Q) $(BASERUBY) -C "$(srcdir)" \
|
|
|
|
-I./tool -rdownloader -answ \
|
2014-09-23 16:09:30 +04:00
|
|
|
-e 'gem, ver = *$$F' \
|
2017-10-25 17:25:39 +03:00
|
|
|
-e 'old = Dir.glob("gems/#{gem}-*.gem")' \
|
2014-09-23 16:09:30 +04:00
|
|
|
-e 'gem = "#{gem}-#{ver}.gem"' \
|
2017-05-21 19:45:35 +03:00
|
|
|
-e 'Downloader::RubyGems.download(gem, "gems", nil) and' \
|
2017-11-16 15:26:04 +03:00
|
|
|
-e '(old.delete("gems/#{gem}"); !old.empty?) and' \
|
2017-10-26 04:36:52 +03:00
|
|
|
-e 'File.unlink(*old) and' \
|
|
|
|
-e 'FileUtils.rm_rf(old.map{'"|n|"'n.chomp(".gem")})' \
|
2017-05-21 19:45:35 +03:00
|
|
|
gems/bundled_gems
|
2014-09-23 16:09:30 +04:00
|
|
|
|
2015-01-16 07:52:59 +03:00
|
|
|
extract-gems: PHONY
|
|
|
|
$(ECHO) Extracting bundled gem files...
|
|
|
|
$(Q) $(RUNRUBY) -C "$(srcdir)/gems" \
|
|
|
|
-I../tool -rgem-unpack -answ \
|
|
|
|
-e 'gem, ver = *$$F' \
|
|
|
|
-e 'Gem.unpack("#{gem}-#{ver}.gem")' \
|
|
|
|
bundled_gems
|
|
|
|
|
2016-01-30 04:49:05 +03:00
|
|
|
update-bundled_gems: PHONY
|
|
|
|
$(Q) $(RUNRUBY) -rrubygems \
|
|
|
|
-pla \
|
2017-10-26 04:36:52 +03:00
|
|
|
-e '$$_=Gem::SpecFetcher.fetcher.detect(:latest) {'"|s|" \
|
2017-10-21 12:25:05 +03:00
|
|
|
-e 'if s.platform=="ruby"&&s.name==$$F[0]' \
|
|
|
|
-e 'break [s.name, s.version, *$$F[2..-1]].join(" ")' \
|
|
|
|
-e 'end' \
|
2016-01-30 04:49:05 +03:00
|
|
|
-e '}' \
|
|
|
|
"$(srcdir)/gems/bundled_gems" | \
|
2016-06-09 09:52:03 +03:00
|
|
|
"$(IFCHANGE)" "$(srcdir)/gems/bundled_gems" -
|
2016-01-30 04:49:05 +03:00
|
|
|
|
2017-10-26 03:59:15 +03:00
|
|
|
test-bundled-gems-precheck: $(arch)-fake.rb programs
|
|
|
|
|
|
|
|
test-bundled-gems-fetch: $(PREP)
|
|
|
|
$(Q) $(BASERUBY) -C $(srcdir)/gems ../tool/fetch-bundled_gems.rb src bundled_gems
|
|
|
|
|
|
|
|
test-bundled-gems-prepare: test-bundled-gems-precheck test-bundled-gems-fetch
|
2018-11-03 01:28:21 +03:00
|
|
|
$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
|
2018-01-07 06:14:19 +03:00
|
|
|
--install-dir .bundle --conservative "bundler" "minitest:~> 5" 'test-unit' 'rake' 'hoe' 'yard' 'pry' 'packnga'
|
2017-10-26 03:59:15 +03:00
|
|
|
|
|
|
|
PREPARE_BUNDLED_GEMS = test-bundled-gems-prepare
|
|
|
|
test-bundled-gems: $(TEST_RUNNABLE)-test-bundled-gems
|
|
|
|
yes-test-bundled-gems: test-bundled-gems-run
|
|
|
|
no-test-bundled-gems:
|
|
|
|
test-bundled-gems-run: $(PREPARE_BUNDLED_GEMS)
|
|
|
|
|
2018-11-03 02:07:56 +03:00
|
|
|
test-bundler-precheck: $(arch)-fake.rb programs
|
|
|
|
|
|
|
|
yes-test-bundler-prepare: test-bundler-precheck
|
|
|
|
$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
|
|
|
|
--install-dir .bundle --conservative "rspec:~> 3.5"
|
|
|
|
|
|
|
|
RSPECOPTS = --format progress
|
|
|
|
BUNDLER_SPECS =
|
|
|
|
test-bundler: $(TEST_RUNNABLE)-test-bundler
|
|
|
|
yes-test-bundler: yes-test-bundler-prepare
|
|
|
|
$(gnumake_recursive)$(Q) \
|
|
|
|
$(XRUBY) -C $(srcdir) -Ispec/bundler .bundle/bin/rspec \
|
|
|
|
--require spec_helper $(RSPECOPTS) spec/bundler/$(BUNDLER_SPECS)
|
|
|
|
no-test-bundler:
|
|
|
|
|
2016-02-04 05:54:02 +03:00
|
|
|
UNICODE_FILES = $(UNICODE_SRC_DATA_DIR)/UnicodeData.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/CompositionExclusions.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/NormalizationTest.txt \
|
2016-02-04 08:42:35 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/CaseFolding.txt \
|
2016-02-04 09:34:10 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/SpecialCasing.txt \
|
|
|
|
$(empty)
|
2014-10-21 17:48:16 +04:00
|
|
|
|
2016-07-14 07:42:50 +03:00
|
|
|
UNICODE_PROPERTY_FILES = \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/Blocks.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/DerivedAge.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/DerivedCoreProperties.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/PropList.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/PropertyAliases.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/PropertyValueAliases.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/Scripts.txt \
|
2016-11-30 20:29:19 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/auxiliary/GraphemeBreakProperty.txt \
|
2016-07-14 07:42:50 +03:00
|
|
|
$(empty)
|
|
|
|
|
2017-12-02 06:12:51 +03:00
|
|
|
UNICODE_EMOJI_FILES = \
|
|
|
|
$(UNICODE_SRC_EMOJI_DATA_DIR)/emoji-data.txt \
|
|
|
|
$(empty)
|
|
|
|
|
2016-01-24 12:13:30 +03:00
|
|
|
update-unicode: $(UNICODE_FILES)
|
2014-10-21 17:48:16 +04:00
|
|
|
|
2017-10-01 06:46:59 +03:00
|
|
|
CACHE_DIR = $(srcdir)/.downloaded-cache
|
2016-07-14 07:42:50 +03:00
|
|
|
UNICODE_DOWNLOAD = \
|
2017-10-01 06:46:59 +03:00
|
|
|
$(BASERUBY) $(srcdir)/tool/downloader.rb \
|
|
|
|
--cache-dir=$(CACHE_DIR) \
|
2017-12-02 06:12:51 +03:00
|
|
|
-d $(UNICODE_SRC_DATA_DIR) \
|
2016-07-14 07:42:50 +03:00
|
|
|
-p $(UNICODE_VERSION)/ucd \
|
|
|
|
-e $(ALWAYS_UPDATE_UNICODE:yes=-a) unicode
|
2017-12-02 06:12:51 +03:00
|
|
|
UNICODE_EMOJI_DOWNLOAD = \
|
|
|
|
$(BASERUBY) $(srcdir)/tool/downloader.rb \
|
|
|
|
--cache-dir=$(CACHE_DIR) \
|
|
|
|
-d $(UNICODE_SRC_EMOJI_DATA_DIR) \
|
|
|
|
-p emoji/$(UNICODE_EMOJI_VERSION) \
|
|
|
|
-e $(ALWAYS_UPDATE_UNICODE:yes=-a) unicode
|
2016-07-14 07:42:50 +03:00
|
|
|
|
2017-07-07 15:25:49 +03:00
|
|
|
$(UNICODE_PROPERTY_FILES): update-unicode-property-files
|
|
|
|
update-unicode-property-files:
|
2016-07-14 07:42:50 +03:00
|
|
|
$(ECHO) Downloading Unicode $(UNICODE_VERSION) property files...
|
2016-11-30 20:29:19 +03:00
|
|
|
$(Q) $(MAKEDIRS) "$(UNICODE_SRC_DATA_DIR)/auxiliary"
|
2016-07-14 07:42:50 +03:00
|
|
|
$(Q) $(UNICODE_DOWNLOAD) $(UNICODE_PROPERTY_FILES)
|
2017-12-02 06:16:01 +03:00
|
|
|
$(ECHO) Downloading Unicode emoji $(UNICODE_EMOJI_VERSION) files...
|
2017-12-02 06:12:51 +03:00
|
|
|
$(Q) $(MAKEDIRS) "$(UNICODE_SRC_EMOJI_DATA_DIR)"
|
|
|
|
$(Q) $(UNICODE_EMOJI_DOWNLOAD) $(UNICODE_EMOJI_FILES)
|
2016-07-14 07:42:50 +03:00
|
|
|
|
2017-07-07 15:25:49 +03:00
|
|
|
$(UNICODE_FILES): update-unicode-files
|
|
|
|
update-unicode-files:
|
2014-10-30 10:39:51 +03:00
|
|
|
$(ECHO) Downloading Unicode $(UNICODE_VERSION) data files...
|
2016-02-04 05:54:02 +03:00
|
|
|
$(Q) $(MAKEDIRS) "$(UNICODE_SRC_DATA_DIR)"
|
2016-07-14 07:42:50 +03:00
|
|
|
$(Q) $(UNICODE_DOWNLOAD) $(UNICODE_FILES)
|
2014-09-28 06:14:16 +04:00
|
|
|
|
2014-11-11 20:41:42 +03:00
|
|
|
$(srcdir)/$(HAVE_BASERUBY:yes=lib/unicode_normalize/tables.rb): \
|
2016-06-30 10:31:06 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/.unicode-tables.time
|
2014-10-25 11:20:15 +04:00
|
|
|
|
2017-03-24 02:55:29 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/$(ALWAYS_UPDATE_UNICODE:yes=.unicode-tables.time): \
|
|
|
|
$(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)
|
|
|
|
|
2017-03-24 05:44:21 +03:00
|
|
|
touch-unicode-files:
|
|
|
|
$(MAKEDIRS) $(UNICODE_SRC_DATA_DIR)
|
|
|
|
touch $(UNICODE_SRC_DATA_DIR)/.unicode-tables.time $(UNICODE_DATA_HEADERS)
|
2016-06-24 03:17:17 +03:00
|
|
|
|
2016-06-30 10:31:06 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/.unicode-tables.time: $(srcdir)/tool/generic_erb.rb \
|
2017-03-24 02:55:29 +03:00
|
|
|
$(srcdir)/template/unicode_norm_gen.tmpl \
|
|
|
|
$(ALWAYS_UPDATE_UNICODE:yes=update-unicode)
|
2017-03-24 04:10:46 +03:00
|
|
|
$(Q) $(MAKE) $(@D)
|
2014-10-25 11:20:15 +04:00
|
|
|
$(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb \
|
|
|
|
-c -t$@ -o $(srcdir)/lib/unicode_normalize/tables.rb \
|
|
|
|
-I $(srcdir) \
|
2014-10-30 10:39:51 +03:00
|
|
|
$(srcdir)/template/unicode_norm_gen.tmpl \
|
2016-02-04 05:54:02 +03:00
|
|
|
$(UNICODE_DATA_DIR) lib/unicode_normalize
|
2014-10-19 13:13:20 +04:00
|
|
|
|
2017-03-24 04:10:46 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR):
|
|
|
|
$(Q) $(exec) $(MAKEDIRS) $@ || exit && echo $(MAKE)
|
|
|
|
|
2017-03-23 18:47:26 +03:00
|
|
|
$(UNICODE_HDR_DIR)/$(ALWAYS_UPDATE_UNICODE:yes=name2ctype.h): \
|
2017-03-24 07:37:28 +03:00
|
|
|
$(srcdir)/tool/enc-unicode.rb \
|
2016-07-14 19:30:01 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/UnicodeData.txt \
|
2016-07-14 11:26:04 +03:00
|
|
|
$(UNICODE_PROPERTY_FILES)
|
2017-03-23 18:47:26 +03:00
|
|
|
|
2017-03-24 07:37:28 +03:00
|
|
|
$(UNICODE_HDR_DIR)/name2ctype.h:
|
2016-07-14 07:42:50 +03:00
|
|
|
$(MAKEDIRS) $(@D)
|
2017-12-02 06:12:51 +03:00
|
|
|
$(BOOTSTRAPRUBY) $(srcdir)/tool/enc-unicode.rb --header \
|
|
|
|
$(UNICODE_SRC_DATA_DIR) $(UNICODE_SRC_EMOJI_DATA_DIR) > $@.new
|
|
|
|
$(MV) $@.new $@
|
2016-07-14 07:42:50 +03:00
|
|
|
|
2016-02-08 03:44:10 +03:00
|
|
|
# the next non-comment line was:
|
2016-08-16 11:53:49 +03:00
|
|
|
# $(UNICODE_HDR_DIR)/casefold.h: $(srcdir)/enc/unicode/case-folding.rb \
|
2016-02-08 03:44:10 +03:00
|
|
|
# but was changed to make sure CI works on systems that don't have gperf
|
2016-07-17 14:59:26 +03:00
|
|
|
unicode-up: $(UNICODE_DATA_HEADERS)
|
2016-06-24 03:17:17 +03:00
|
|
|
|
2016-08-16 11:53:49 +03:00
|
|
|
$(UNICODE_HDR_DIR)/$(ALWAYS_UPDATE_UNICODE:yes=casefold.h): \
|
2017-03-24 07:37:28 +03:00
|
|
|
$(srcdir)/enc/unicode/case-folding.rb \
|
2016-02-07 16:10:20 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/UnicodeData.txt \
|
|
|
|
$(UNICODE_SRC_DATA_DIR)/SpecialCasing.txt \
|
2016-02-07 04:39:26 +03:00
|
|
|
$(UNICODE_SRC_DATA_DIR)/CaseFolding.txt
|
2016-06-24 03:17:17 +03:00
|
|
|
|
2017-03-24 07:37:28 +03:00
|
|
|
$(UNICODE_HDR_DIR)/casefold.h:
|
2016-08-16 15:36:40 +03:00
|
|
|
$(MAKEDIRS) $(@D)
|
2016-02-07 04:39:26 +03:00
|
|
|
$(Q) $(BASERUBY) $(srcdir)/enc/unicode/case-folding.rb \
|
2016-06-24 03:17:17 +03:00
|
|
|
--output-file=$@ \
|
2016-02-07 05:16:12 +03:00
|
|
|
--mapping-data-directory=$(UNICODE_SRC_DATA_DIR)
|
2016-02-07 04:39:26 +03:00
|
|
|
|
2014-12-23 16:24:33 +03:00
|
|
|
download-extlibs:
|
|
|
|
$(Q) $(BASERUBY) -C $(srcdir) -w tool/extlibs.rb --download ext
|
|
|
|
|
|
|
|
extract-extlibs:
|
|
|
|
$(Q) $(BASERUBY) -C $(srcdir) -w tool/extlibs.rb --all ext
|
|
|
|
|
|
|
|
clean-extlibs:
|
|
|
|
$(Q) $(RMALL) $(srcdir)/.downloaded-cache
|
|
|
|
|
2015-01-16 07:52:59 +03:00
|
|
|
clean-gems:
|
|
|
|
$(Q) $(RM) gems/*.gem
|
|
|
|
|
2014-12-23 16:24:33 +03:00
|
|
|
CLEAN_CACHE = clean-extlibs
|
|
|
|
|
2009-04-07 08:35:24 +04:00
|
|
|
info: info-program info-libruby_a info-libruby_so info-arch
|
2014-09-30 05:17:05 +04:00
|
|
|
info-program: PHONY
|
2009-04-07 08:35:24 +04:00
|
|
|
@echo PROGRAM=$(PROGRAM)
|
2014-09-30 05:17:05 +04:00
|
|
|
info-libruby_a: PHONY
|
2009-04-07 08:35:24 +04:00
|
|
|
@echo LIBRUBY_A=$(LIBRUBY_A)
|
2014-09-30 05:17:05 +04:00
|
|
|
info-libruby_so: PHONY
|
2009-04-07 08:35:24 +04:00
|
|
|
@echo LIBRUBY_SO=$(LIBRUBY_SO)
|
2014-09-30 05:17:05 +04:00
|
|
|
info-arch: PHONY
|
2009-04-07 08:35:24 +04:00
|
|
|
@echo arch=$(arch)
|
|
|
|
|
2010-05-24 13:31:46 +04:00
|
|
|
change: PHONY
|
2010-05-24 07:52:46 +04:00
|
|
|
$(BASERUBY) -C "$(srcdir)" ./tool/change_maker.rb $(CHANGES) > change.log
|
|
|
|
|
2018-08-10 11:42:45 +03:00
|
|
|
exam: check
|
2015-04-01 17:30:53 +03:00
|
|
|
|
2017-12-16 09:05:16 +03:00
|
|
|
love: sudo-precheck up all test exam install
|
2011-06-11 10:37:25 +04:00
|
|
|
@echo love is all you need
|
2011-02-24 16:53:11 +03:00
|
|
|
|
2017-03-08 16:52:32 +03:00
|
|
|
great: exam
|
|
|
|
|
2017-03-02 07:54:18 +03:00
|
|
|
yes-test-all no-test-all: sudo-precheck
|
2013-05-03 08:50:15 +04:00
|
|
|
|
2014-09-30 05:17:05 +04:00
|
|
|
sudo-precheck: PHONY
|
2011-07-08 06:39:15 +04:00
|
|
|
@$(SUDO) echo > $(NULL)
|
2011-06-14 08:09:43 +04:00
|
|
|
|
2015-05-23 12:36:33 +03:00
|
|
|
update-man-date: PHONY
|
|
|
|
-$(Q) $(BASERUBY) -I"$(srcdir)/tool" -rvcs -i -p \
|
|
|
|
-e 'BEGIN{@vcs=VCS.detect(ARGV.shift)}' \
|
|
|
|
-e '$$_.sub!(/^(\.Dd ).*/){$$1+@vcs.modified(ARGF.path).strftime("%B %d, %Y")}' \
|
|
|
|
"$(srcdir)" "$(srcdir)"/man/*.1
|
|
|
|
|
2008-01-29 10:27:09 +03:00
|
|
|
help: PHONY
|
2010-11-13 10:38:01 +03:00
|
|
|
$(MESSAGE_BEGIN) \
|
|
|
|
" Makefile of Ruby" \
|
|
|
|
"" \
|
|
|
|
"targets:" \
|
2017-12-14 05:21:41 +03:00
|
|
|
" all (default): builds all of below" \
|
|
|
|
" miniruby: builds only miniruby" \
|
|
|
|
" encs: builds encodings" \
|
|
|
|
" exts: builds extensions" \
|
|
|
|
" main: builds encodings, extensions and ruby" \
|
|
|
|
" docs: builds documents" \
|
|
|
|
" install-capi: builds C API documents" \
|
|
|
|
" run: runs test.rb by miniruby" \
|
|
|
|
" runruby: runs test.rb by ruby you just built" \
|
|
|
|
" gdb: runs test.rb by miniruby under gdb" \
|
|
|
|
" gdb-ruby: runs test.rb by ruby under gdb" \
|
2018-08-22 08:24:51 +03:00
|
|
|
" check: equals make test test-all test-spec" \
|
|
|
|
" exam: equals make check" \
|
2017-12-14 05:21:41 +03:00
|
|
|
" test: ruby core tests" \
|
|
|
|
" test-all: all ruby tests [TESTOPTS=-j4 TESTS=<test files>]" \
|
|
|
|
" test-spec: run the Ruby spec suite" \
|
|
|
|
" test-rubyspec: same as test-spec" \
|
2018-11-03 02:07:56 +03:00
|
|
|
" test-bundler: run the Bundler spec" \
|
2017-12-14 05:21:41 +03:00
|
|
|
" test-bundled-gems: run the test suite of bundled gems" \
|
|
|
|
" up: update local copy and autogenerated files" \
|
|
|
|
" benchmark: benchmark this ruby and COMPARE_RUBY." \
|
|
|
|
" gcbench: gc benchmark [GCBENCH_ITEM=<item_name>]" \
|
|
|
|
" gcbench-rdoc: gc benchmark with GCBENCH_ITEM=rdoc" \
|
|
|
|
" install: install all ruby distributions" \
|
|
|
|
" install-nodoc: install without rdoc" \
|
|
|
|
" install-cross: install cross compiling stuff" \
|
|
|
|
" clean: clean for tarball" \
|
|
|
|
" distclean: clean for repository" \
|
|
|
|
" change: make change log template" \
|
|
|
|
" golf: for golfers" \
|
2018-05-21 15:36:22 +03:00
|
|
|
" goruby: same as golf" \
|
2010-11-13 10:38:01 +03:00
|
|
|
"" \
|
|
|
|
"see DeveloperHowto for more detail: " \
|
2014-04-02 10:15:19 +04:00
|
|
|
" https://bugs.ruby-lang.org/projects/ruby/wiki/DeveloperHowto" \
|
2010-11-13 10:38:01 +03:00
|
|
|
$(MESSAGE_END)
|
2014-11-15 08:15:49 +03:00
|
|
|
|
2014-11-15 14:14:08 +03:00
|
|
|
# AUTOGENERATED DEPENDENCIES START
|
2014-11-21 06:04:44 +03:00
|
|
|
addr2line.$(OBJEXT): {$(VPATH)}addr2line.c
|
2014-11-15 13:28:25 +03:00
|
|
|
addr2line.$(OBJEXT): {$(VPATH)}addr2line.h
|
2014-11-21 06:04:44 +03:00
|
|
|
addr2line.$(OBJEXT): {$(VPATH)}config.h
|
2018-07-31 18:20:54 +03:00
|
|
|
addr2line.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-21 06:04:44 +03:00
|
|
|
addr2line.$(OBJEXT): {$(VPATH)}missing.h
|
2014-12-19 16:34:54 +03:00
|
|
|
array.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
array.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
array.$(OBJEXT): {$(VPATH)}array.c
|
|
|
|
array.$(OBJEXT): {$(VPATH)}config.h
|
2017-05-24 09:46:44 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}debug_counter.h
|
2014-11-15 13:28:25 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
array.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
array.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
array.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
array.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}probes.h
|
2016-01-22 11:33:55 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
array.$(OBJEXT): {$(VPATH)}subst.h
|
2018-11-01 11:15:42 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}transient_heap.h
|
2014-11-15 13:28:25 +03:00
|
|
|
array.$(OBJEXT): {$(VPATH)}util.h
|
2018-07-05 15:48:45 +03:00
|
|
|
ast.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
ast.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
ast.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
ast.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2018-05-31 09:13:06 +03:00
|
|
|
ast.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
ast.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2018-07-05 15:48:45 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}ast.c
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}defines.h
|
2018-05-31 09:13:06 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}encoding.h
|
2018-06-01 16:10:37 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}id.h
|
2018-07-05 15:48:45 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}intern.h
|
2018-05-31 09:13:06 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}internal.h
|
2018-07-05 15:48:45 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}method.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}missing.h
|
2018-05-31 09:13:06 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}node.h
|
2018-07-05 15:48:45 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}onigmo.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
ast.$(OBJEXT): {$(VPATH)}util.h
|
2018-05-31 09:13:06 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}vm_core.h
|
2018-07-05 15:48:45 +03:00
|
|
|
ast.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
bignum.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
bignum.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
bignum.$(OBJEXT): {$(VPATH)}bignum.c
|
|
|
|
bignum.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}encoding.h
|
2017-02-25 10:27:07 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
bignum.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:33:55 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
bignum.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
bignum.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
bignum.$(OBJEXT): {$(VPATH)}thread.h
|
|
|
|
bignum.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
class.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
class.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
class.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
class.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
class.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
class.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}class.c
|
|
|
|
class.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}constant.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}id.h
|
2015-08-12 11:43:55 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}id_table.h
|
2014-11-15 13:28:25 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
class.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
class.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
compar.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
compar.$(OBJEXT): {$(VPATH)}compar.c
|
|
|
|
compar.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compar.$(OBJEXT): {$(VPATH)}defines.h
|
2016-08-11 10:20:36 +03:00
|
|
|
compar.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compar.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
compar.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compar.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
compar.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
compile.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
compile.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
compile.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
compile.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
compile.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
compile.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}compile.c
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}defines.h
|
2015-12-11 05:11:34 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-18 18:28:08 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}encoding.h
|
2015-12-11 05:11:34 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}gc.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}id.h
|
2016-05-24 06:43:59 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}id_table.h
|
2018-07-05 15:48:45 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}insns.def
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}insns.inc
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}insns_info.inc
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}iseq.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-07-06 08:48:13 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}opt_sc.inc
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}optinsn.inc
|
2016-07-06 08:48:13 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}optunifs.inc
|
2015-12-11 05:11:34 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}re.h
|
2016-04-11 14:50:00 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}regex.h
|
2016-01-22 11:37:36 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}thread_native.h
|
2018-07-05 15:48:45 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}util.h
|
2014-11-15 13:28:25 +03:00
|
|
|
compile.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
compile.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
complex.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
complex.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
complex.$(OBJEXT): {$(VPATH)}complex.c
|
|
|
|
complex.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}encoding.h
|
2018-07-05 15:48:45 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
complex.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:33:55 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
complex.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
complex.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
cont.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
cont.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
cont.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
cont.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
cont.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
cont.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}cont.c
|
2014-11-15 13:28:25 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}missing.h
|
mjit.c: merge MJIT infrastructure
that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great method JIT infrastructure for MRI as MJIT,
Lars Kanis <lars@greiz-reinsdorf.de> sent the patch to support MinGW
in MJIT. In addition to merging it, I ported pthread to Windows native
threads. Now this MJIT infrastructure can be compiled on Visual Studio.
This commit simplifies mjit.c to decrease code at initial merge. For
example, this commit does not provide multiple JIT threads support.
We can resurrect them later if we really want them, but I wanted to minimize
diff to make it easier to review this patch.
`/tmp/_mjitXXX` file is renamed to `/tmp/_ruby_mjitXXX` because non-Ruby
developers may not know the name "mjit" and the file name should make
sure it's from Ruby and not from some harmful programs. TODO: it may be
better to store this to some temporary directory which Ruby is already using
by Tempfile, if it's not bad for performance.
mjit.h: New. It has `mjit_exec` interface similar to `vm_exec`, which is
for triggering MJIT. This drops interface for AOT compared to the original
MJIT.
Makefile.in: define macros to let MJIT know the path of MJIT header.
Probably we can refactor this to reduce the number of macros (TODO).
win32/Makefile.sub: ditto.
common.mk: compile mjit.o and mjit_compile.o. Unlike original MJIT, this
commit separates MJIT infrastructure and JIT compiler code as independent
object files. As initial patch is NOT going to have ultra-fast JIT compiler,
it's likely to replace JIT compiler, e.g. original MJIT's compiler or some
future JIT impelementations which are not public now.
inits.c: define MJIT module. This is added because `MJIT.enabled?` was
necessary for testing.
test/lib/zombie_hunter.rb: skip if `MJIT.enabled?`. Obviously this
wouldn't work with current code when JIT is enabled.
test/ruby/test_io.rb: skip this too. This would make no sense with MJIT.
ruby.c: define MJIT CLI options. As major difference from original MJIT,
"-j:l"/"--jit:llvm" are renamed to "--jit-cc" because I want to support
not only gcc/clang but also cl.exe (Visual Studio) in the future. But it
takes only "--jit-cc=gcc", "--jit-cc=clang" for now. And only long "--jit"
options are allowed since some Ruby committers preferred it at Ruby
developers Meeting on January, and some of options are renamed.
This file also triggers to initialize MJIT thread and variables.
eval.c: finalize MJIT worker thread and variables.
test/ruby/test_rubyoptions.rb: fix number of CLI options for --jit.
thread_pthread.c: change for pthread abstraction in MJIT. Prefix rb_ for
functions which are used by other files.
thread_win32.c: ditto, for Windows. Those pthread porting is one of major
works that YARV-MJIT created, which is my fork of MJIT, in Feature 14235.
thread.c: follow rb_ prefix changes
vm.c: trigger MJIT call on VM invocation. Also trigger `mjit_mark` to avoid
SEGV by race between JIT and GC of ISeq. The improvement was provided by
wanabe <s.wanabe@gmail.com>.
In JIT compiler I created and am going to add in my next commit, I found
that having `mjit_exec` after `vm_loop_start:` is harmful because the
JIT-ed function doesn't proceed other ISeqs on RESTORE_REGS of leave insn.
Executing non-FINISH frame is unexpected for my JIT compiler and
`exception_handler` triggers executions of such ISeqs. So `mjit_exec`
here should be executed only when it directly comes from `vm_exec` call.
`RubyVM::MJIT` module and `.enabled?` method is added so that we can skip
some tests which don't expect JIT threads or compiler file descriptors.
vm_insnhelper.h: trigger MJIT on method calls during VM execution.
vm_core.h: add fields required for mjit.c. `bp` must be `cfp[6]` because
rb_control_frame_struct is likely to be casted to another struct. The
last position is the safest place to add the new field.
vm_insnhelper.c: save initial value of cfp->ep as cfp->bp. This is an
optimization which are done in both MJIT and YARV-MJIT. So this change
is added in this commit. Calculating bp from ep is a little heavy work,
so bp is kind of cache for it.
iseq.c: notify ISeq GC to MJIT. We should know which iseq in MJIT queue
is GCed to avoid SEGV. TODO: unload some GCed units in some safe way.
gc.c: add hooks so that MJIT can wait GC, and vice versa. Simultaneous
JIT and GC executions may cause SEGV and so we should synchronize them.
cont.c: save continuation information in MJIT worker. As MJIT shouldn't
unload JIT-ed code which is being used, MJIT wants to know full list of
saved execution contexts for continuation and detect ISeqs in use.
mjit_compile.c: added empty JIT compiler so that you can reuse this commit
to build your own JIT compiler. This commit tries to compile ISeqs but
all of them are considered as not supported in this commit. So you can't
use JIT compiler in this commit yet while we added --jit option now.
Patch author: Vladimir Makarov <vmakarov@redhat.com>.
Contributors:
Takashi Kokubun <takashikkbn@gmail.com>.
wanabe <s.wanabe@gmail.com>.
Lars Kanis <lars@greiz-reinsdorf.de>.
Part of Feature 12589 and 14235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 09:58:09 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
cont.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
cont.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
debug.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
debug.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
debug.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
debug.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
debug.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
debug.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}debug.c
|
2014-11-15 13:28:25 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}eval_intern.h
|
2017-03-22 09:00:18 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}gc.h
|
2014-11-15 13:28:25 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}subst.h
|
2017-10-25 03:33:29 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}symbol.h
|
2014-11-15 13:28:25 +03:00
|
|
|
debug.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
debug.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2017-03-22 09:00:18 +03:00
|
|
|
debug_counter.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
debug_counter.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}config.h
|
2017-02-21 11:18:15 +03:00
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}debug_counter.c
|
2017-03-22 09:00:18 +03:00
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}debug_counter.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}io.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}onigmo.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
debug_counter.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
dir.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dir.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
dir.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}dir.c
|
2015-09-15 09:06:19 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}encoding.h
|
2018-07-05 15:48:45 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
dir.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
dir.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
dir.$(OBJEXT): {$(VPATH)}subst.h
|
2018-01-09 09:55:55 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}thread.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dir.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
dln.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2018-01-09 09:55:55 +03:00
|
|
|
dln.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}dln.c
|
2014-11-15 13:28:25 +03:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}dln.h
|
|
|
|
dln.$(OBJEXT): {$(VPATH)}intern.h
|
2018-01-09 09:55:55 +03:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dln.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
dln.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
dln_find.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}dln.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}dln_find.c
|
2014-11-15 13:28:25 +03:00
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
dln_find.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
dmydln.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-15 13:28:25 +03:00
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-21 06:04:44 +03:00
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}dmydln.c
|
2014-11-15 13:28:25 +03:00
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
dmydln.$(OBJEXT): {$(VPATH)}subst.h
|
2014-11-28 01:47:57 +03:00
|
|
|
dmyenc.$(OBJEXT): {$(VPATH)}dmyenc.c
|
2014-11-21 06:04:44 +03:00
|
|
|
dmyext.$(OBJEXT): {$(VPATH)}dmyext.c
|
2015-01-18 06:56:52 +03:00
|
|
|
enc/ascii.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
enc/ascii.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
enc/ascii.$(OBJEXT): {$(VPATH)}enc/ascii.c
|
2015-09-15 08:49:52 +03:00
|
|
|
enc/ascii.$(OBJEXT): {$(VPATH)}encindex.h
|
2015-01-18 06:56:52 +03:00
|
|
|
enc/ascii.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
enc/ascii.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
enc/ascii.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
enc/trans/newline.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}enc/trans/newline.c
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
enc/trans/newline.$(OBJEXT): {$(VPATH)}transcode_data.h
|
2016-08-16 11:53:49 +03:00
|
|
|
enc/unicode.$(OBJEXT): $(UNICODE_HDR_DIR)/casefold.h
|
|
|
|
enc/unicode.$(OBJEXT): $(UNICODE_HDR_DIR)/name2ctype.h
|
2017-03-22 09:00:18 +03:00
|
|
|
enc/unicode.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2015-01-18 06:56:52 +03:00
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}enc/unicode.c
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}missing.h
|
2018-01-13 12:23:40 +03:00
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}onigmo.h
|
2015-01-18 06:56:52 +03:00
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}regint.h
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
enc/unicode.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
enc/us_ascii.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
enc/us_ascii.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
enc/us_ascii.$(OBJEXT): {$(VPATH)}enc/us_ascii.c
|
2015-09-15 08:49:52 +03:00
|
|
|
enc/us_ascii.$(OBJEXT): {$(VPATH)}encindex.h
|
2015-01-18 06:56:52 +03:00
|
|
|
enc/us_ascii.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
enc/us_ascii.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
enc/us_ascii.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
enc/utf_8.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
enc/utf_8.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
enc/utf_8.$(OBJEXT): {$(VPATH)}enc/utf_8.c
|
2015-09-15 08:49:52 +03:00
|
|
|
enc/utf_8.$(OBJEXT): {$(VPATH)}encindex.h
|
2015-01-18 06:56:52 +03:00
|
|
|
enc/utf_8.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
enc/utf_8.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
enc/utf_8.$(OBJEXT): {$(VPATH)}regenc.h
|
2014-12-19 16:34:54 +03:00
|
|
|
encoding.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
encoding.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
encoding.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}defines.h
|
2015-09-15 08:49:20 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-21 06:04:44 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}encoding.c
|
2014-11-15 13:28:25 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
encoding.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
encoding.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
encoding.$(OBJEXT): {$(VPATH)}regenc.h
|
2016-01-22 11:33:55 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
encoding.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
encoding.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
encoding.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
enum.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
enum.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
enum.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-21 06:04:44 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}enum.c
|
2014-11-15 13:28:25 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
enum.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
enum.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-15 13:28:25 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
enum.$(OBJEXT): {$(VPATH)}subst.h
|
2017-08-11 05:44:30 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}symbol.h
|
2018-11-01 11:15:42 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}transient_heap.h
|
2014-11-15 13:28:25 +03:00
|
|
|
enum.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
enumerator.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
enumerator.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-21 06:04:44 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}enumerator.c
|
2018-01-13 03:30:01 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-15 13:28:25 +03:00
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
enumerator.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
error.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
error.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
error.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
error.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
error.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
error.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-21 06:04:44 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}error.c
|
2014-11-15 13:28:25 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}known_errors.inc
|
|
|
|
error.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:33:55 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
error.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
error.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
eval.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
eval.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
eval.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
eval.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
eval.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
eval.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-21 06:04:44 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}eval.c
|
2014-11-15 13:28:25 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}eval_error.c
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}eval_jump.c
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}iseq.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}missing.h
|
mjit.c: merge MJIT infrastructure
that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great method JIT infrastructure for MRI as MJIT,
Lars Kanis <lars@greiz-reinsdorf.de> sent the patch to support MinGW
in MJIT. In addition to merging it, I ported pthread to Windows native
threads. Now this MJIT infrastructure can be compiled on Visual Studio.
This commit simplifies mjit.c to decrease code at initial merge. For
example, this commit does not provide multiple JIT threads support.
We can resurrect them later if we really want them, but I wanted to minimize
diff to make it easier to review this patch.
`/tmp/_mjitXXX` file is renamed to `/tmp/_ruby_mjitXXX` because non-Ruby
developers may not know the name "mjit" and the file name should make
sure it's from Ruby and not from some harmful programs. TODO: it may be
better to store this to some temporary directory which Ruby is already using
by Tempfile, if it's not bad for performance.
mjit.h: New. It has `mjit_exec` interface similar to `vm_exec`, which is
for triggering MJIT. This drops interface for AOT compared to the original
MJIT.
Makefile.in: define macros to let MJIT know the path of MJIT header.
Probably we can refactor this to reduce the number of macros (TODO).
win32/Makefile.sub: ditto.
common.mk: compile mjit.o and mjit_compile.o. Unlike original MJIT, this
commit separates MJIT infrastructure and JIT compiler code as independent
object files. As initial patch is NOT going to have ultra-fast JIT compiler,
it's likely to replace JIT compiler, e.g. original MJIT's compiler or some
future JIT impelementations which are not public now.
inits.c: define MJIT module. This is added because `MJIT.enabled?` was
necessary for testing.
test/lib/zombie_hunter.rb: skip if `MJIT.enabled?`. Obviously this
wouldn't work with current code when JIT is enabled.
test/ruby/test_io.rb: skip this too. This would make no sense with MJIT.
ruby.c: define MJIT CLI options. As major difference from original MJIT,
"-j:l"/"--jit:llvm" are renamed to "--jit-cc" because I want to support
not only gcc/clang but also cl.exe (Visual Studio) in the future. But it
takes only "--jit-cc=gcc", "--jit-cc=clang" for now. And only long "--jit"
options are allowed since some Ruby committers preferred it at Ruby
developers Meeting on January, and some of options are renamed.
This file also triggers to initialize MJIT thread and variables.
eval.c: finalize MJIT worker thread and variables.
test/ruby/test_rubyoptions.rb: fix number of CLI options for --jit.
thread_pthread.c: change for pthread abstraction in MJIT. Prefix rb_ for
functions which are used by other files.
thread_win32.c: ditto, for Windows. Those pthread porting is one of major
works that YARV-MJIT created, which is my fork of MJIT, in Feature 14235.
thread.c: follow rb_ prefix changes
vm.c: trigger MJIT call on VM invocation. Also trigger `mjit_mark` to avoid
SEGV by race between JIT and GC of ISeq. The improvement was provided by
wanabe <s.wanabe@gmail.com>.
In JIT compiler I created and am going to add in my next commit, I found
that having `mjit_exec` after `vm_loop_start:` is harmful because the
JIT-ed function doesn't proceed other ISeqs on RESTORE_REGS of leave insn.
Executing non-FINISH frame is unexpected for my JIT compiler and
`exception_handler` triggers executions of such ISeqs. So `mjit_exec`
here should be executed only when it directly comes from `vm_exec` call.
`RubyVM::MJIT` module and `.enabled?` method is added so that we can skip
some tests which don't expect JIT threads or compiler file descriptors.
vm_insnhelper.h: trigger MJIT on method calls during VM execution.
vm_core.h: add fields required for mjit.c. `bp` must be `cfp[6]` because
rb_control_frame_struct is likely to be casted to another struct. The
last position is the safest place to add the new field.
vm_insnhelper.c: save initial value of cfp->ep as cfp->bp. This is an
optimization which are done in both MJIT and YARV-MJIT. So this change
is added in this commit. Calculating bp from ep is a little heavy work,
so bp is kind of cache for it.
iseq.c: notify ISeq GC to MJIT. We should know which iseq in MJIT queue
is GCed to avoid SEGV. TODO: unload some GCed units in some safe way.
gc.c: add hooks so that MJIT can wait GC, and vice versa. Simultaneous
JIT and GC executions may cause SEGV and so we should synchronize them.
cont.c: save continuation information in MJIT worker. As MJIT shouldn't
unload JIT-ed code which is being used, MJIT wants to know full list of
saved execution contexts for continuation and detect ISeqs in use.
mjit_compile.c: added empty JIT compiler so that you can reuse this commit
to build your own JIT compiler. This commit tries to compile ISeqs but
all of them are considered as not supported in this commit. So you can't
use JIT compiler in this commit yet while we added --jit option now.
Patch author: Vladimir Makarov <vmakarov@redhat.com>.
Contributors:
Takashi Kokubun <takashikkbn@gmail.com>.
wanabe <s.wanabe@gmail.com>.
Lars Kanis <lars@greiz-reinsdorf.de>.
Part of Feature 12589 and 14235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 09:58:09 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}probes.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}probes_helper.h
|
2016-01-22 11:37:36 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
eval.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}vm.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
eval.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2016-04-11 14:50:00 +03:00
|
|
|
explicit_bzero.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
explicit_bzero.$(OBJEXT): {$(VPATH)}explicit_bzero.c
|
|
|
|
explicit_bzero.$(OBJEXT): {$(VPATH)}missing.h
|
2014-12-19 16:34:54 +03:00
|
|
|
file.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
file.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
file.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
file.$(OBJEXT): {$(VPATH)}dln.h
|
2015-09-15 08:49:20 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-15 13:28:25 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-21 06:04:44 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}file.c
|
2017-06-07 03:32:07 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
file.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
file.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
file.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
file.$(OBJEXT): {$(VPATH)}subst.h
|
2017-09-26 07:13:37 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}thread.h
|
2014-11-15 13:28:25 +03:00
|
|
|
file.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
gc.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
gc.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
gc.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
gc.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
gc.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
gc.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}constant.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}debug.h
|
2017-05-24 09:46:44 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}debug_counter.h
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}eval_intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}gc.c
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}id.h
|
2015-08-12 11:43:55 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}id_table.h
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}io.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}missing.h
|
mjit.c: merge MJIT infrastructure
that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great method JIT infrastructure for MRI as MJIT,
Lars Kanis <lars@greiz-reinsdorf.de> sent the patch to support MinGW
in MJIT. In addition to merging it, I ported pthread to Windows native
threads. Now this MJIT infrastructure can be compiled on Visual Studio.
This commit simplifies mjit.c to decrease code at initial merge. For
example, this commit does not provide multiple JIT threads support.
We can resurrect them later if we really want them, but I wanted to minimize
diff to make it easier to review this patch.
`/tmp/_mjitXXX` file is renamed to `/tmp/_ruby_mjitXXX` because non-Ruby
developers may not know the name "mjit" and the file name should make
sure it's from Ruby and not from some harmful programs. TODO: it may be
better to store this to some temporary directory which Ruby is already using
by Tempfile, if it's not bad for performance.
mjit.h: New. It has `mjit_exec` interface similar to `vm_exec`, which is
for triggering MJIT. This drops interface for AOT compared to the original
MJIT.
Makefile.in: define macros to let MJIT know the path of MJIT header.
Probably we can refactor this to reduce the number of macros (TODO).
win32/Makefile.sub: ditto.
common.mk: compile mjit.o and mjit_compile.o. Unlike original MJIT, this
commit separates MJIT infrastructure and JIT compiler code as independent
object files. As initial patch is NOT going to have ultra-fast JIT compiler,
it's likely to replace JIT compiler, e.g. original MJIT's compiler or some
future JIT impelementations which are not public now.
inits.c: define MJIT module. This is added because `MJIT.enabled?` was
necessary for testing.
test/lib/zombie_hunter.rb: skip if `MJIT.enabled?`. Obviously this
wouldn't work with current code when JIT is enabled.
test/ruby/test_io.rb: skip this too. This would make no sense with MJIT.
ruby.c: define MJIT CLI options. As major difference from original MJIT,
"-j:l"/"--jit:llvm" are renamed to "--jit-cc" because I want to support
not only gcc/clang but also cl.exe (Visual Studio) in the future. But it
takes only "--jit-cc=gcc", "--jit-cc=clang" for now. And only long "--jit"
options are allowed since some Ruby committers preferred it at Ruby
developers Meeting on January, and some of options are renamed.
This file also triggers to initialize MJIT thread and variables.
eval.c: finalize MJIT worker thread and variables.
test/ruby/test_rubyoptions.rb: fix number of CLI options for --jit.
thread_pthread.c: change for pthread abstraction in MJIT. Prefix rb_ for
functions which are used by other files.
thread_win32.c: ditto, for Windows. Those pthread porting is one of major
works that YARV-MJIT created, which is my fork of MJIT, in Feature 14235.
thread.c: follow rb_ prefix changes
vm.c: trigger MJIT call on VM invocation. Also trigger `mjit_mark` to avoid
SEGV by race between JIT and GC of ISeq. The improvement was provided by
wanabe <s.wanabe@gmail.com>.
In JIT compiler I created and am going to add in my next commit, I found
that having `mjit_exec` after `vm_loop_start:` is harmful because the
JIT-ed function doesn't proceed other ISeqs on RESTORE_REGS of leave insn.
Executing non-FINISH frame is unexpected for my JIT compiler and
`exception_handler` triggers executions of such ISeqs. So `mjit_exec`
here should be executed only when it directly comes from `vm_exec` call.
`RubyVM::MJIT` module and `.enabled?` method is added so that we can skip
some tests which don't expect JIT threads or compiler file descriptors.
vm_insnhelper.h: trigger MJIT on method calls during VM execution.
vm_core.h: add fields required for mjit.c. `bp` must be `cfp[6]` because
rb_control_frame_struct is likely to be casted to another struct. The
last position is the safest place to add the new field.
vm_insnhelper.c: save initial value of cfp->ep as cfp->bp. This is an
optimization which are done in both MJIT and YARV-MJIT. So this change
is added in this commit. Calculating bp from ep is a little heavy work,
so bp is kind of cache for it.
iseq.c: notify ISeq GC to MJIT. We should know which iseq in MJIT queue
is GCed to avoid SEGV. TODO: unload some GCed units in some safe way.
gc.c: add hooks so that MJIT can wait GC, and vice versa. Simultaneous
JIT and GC executions may cause SEGV and so we should synchronize them.
cont.c: save continuation information in MJIT worker. As MJIT shouldn't
unload JIT-ed code which is being used, MJIT wants to know full list of
saved execution contexts for continuation and detect ISeqs in use.
mjit_compile.c: added empty JIT compiler so that you can reuse this commit
to build your own JIT compiler. This commit tries to compile ISeqs but
all of them are considered as not supported in this commit. So you can't
use JIT compiler in this commit yet while we added --jit option now.
Patch author: Vladimir Makarov <vmakarov@redhat.com>.
Contributors:
Takashi Kokubun <takashikkbn@gmail.com>.
wanabe <s.wanabe@gmail.com>.
Lars Kanis <lars@greiz-reinsdorf.de>.
Part of Feature 12589 and 14235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 09:58:09 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}probes.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}re.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}regex.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}regint.h
|
2016-01-22 11:33:55 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}thread.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}thread_native.h
|
2018-11-01 11:15:42 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}transient_heap.h
|
2014-11-15 13:28:25 +03:00
|
|
|
gc.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
gc.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
golf_prelude.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
golf_prelude.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
golf_prelude.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
golf_prelude.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
golf_prelude.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
golf_prelude.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2014-11-15 13:28:25 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-21 06:04:44 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}golf_prelude.c
|
2018-07-05 15:48:45 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}golf_prelude.rb
|
2014-11-15 13:28:25 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}io.h
|
2016-03-09 13:39:21 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}iseq.h
|
2014-11-15 13:28:25 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}method.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
golf_prelude.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
goruby.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
goruby.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2016-04-11 14:50:00 +03:00
|
|
|
goruby.$(OBJEXT): {$(VPATH)}backward.h
|
2014-11-15 13:28:25 +03:00
|
|
|
goruby.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
goruby.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-21 06:04:44 +03:00
|
|
|
goruby.$(OBJEXT): {$(VPATH)}goruby.c
|
2014-11-15 13:28:25 +03:00
|
|
|
goruby.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
goruby.$(OBJEXT): {$(VPATH)}main.c
|
|
|
|
goruby.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
goruby.$(OBJEXT): {$(VPATH)}node.h
|
|
|
|
goruby.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
goruby.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
goruby.$(OBJEXT): {$(VPATH)}vm_debug.h
|
2014-12-19 16:34:54 +03:00
|
|
|
hash.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
hash.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
hash.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
hash.$(OBJEXT): {$(VPATH)}encoding.h
|
2018-01-09 09:55:55 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}gc.h
|
2014-11-21 06:04:44 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}hash.c
|
2014-11-15 13:28:25 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
hash.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
hash.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}probes.h
|
|
|
|
hash.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
hash.$(OBJEXT): {$(VPATH)}subst.h
|
2015-07-28 01:25:30 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}symbol.h
|
2014-11-15 13:28:25 +03:00
|
|
|
hash.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
inits.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
inits.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
inits.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-21 06:04:44 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}inits.c
|
2014-11-15 13:28:25 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
inits.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-15 13:28:25 +03:00
|
|
|
inits.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
inits.$(OBJEXT): {$(VPATH)}subst.h
|
2018-07-05 15:48:45 +03:00
|
|
|
io.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
io.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
io.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
io.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
io.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
io.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}dln.h
|
2015-09-15 08:49:20 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-15 13:28:25 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-21 06:04:44 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}io.c
|
2014-11-15 13:28:25 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}io.h
|
2018-11-18 07:21:52 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}missing.h
|
2018-11-18 07:21:52 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2018-11-18 07:21:52 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}thread.h
|
2018-11-18 07:21:52 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}thread_native.h
|
2014-11-15 13:28:25 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}util.h
|
2018-11-18 07:21:52 +03:00
|
|
|
io.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
io.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-11-15 13:28:25 +03:00
|
|
|
iseq.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
iseq.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
iseq.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
iseq.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
iseq.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
iseq.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}id.h
|
2016-05-24 06:43:59 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}id_table.h
|
2018-07-05 15:48:45 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}insns.def
|
2014-11-15 13:28:25 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}insns.inc
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}insns_info.inc
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}iseq.c
|
2014-11-15 13:28:25 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}iseq.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}missing.h
|
mjit.c: merge MJIT infrastructure
that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great method JIT infrastructure for MRI as MJIT,
Lars Kanis <lars@greiz-reinsdorf.de> sent the patch to support MinGW
in MJIT. In addition to merging it, I ported pthread to Windows native
threads. Now this MJIT infrastructure can be compiled on Visual Studio.
This commit simplifies mjit.c to decrease code at initial merge. For
example, this commit does not provide multiple JIT threads support.
We can resurrect them later if we really want them, but I wanted to minimize
diff to make it easier to review this patch.
`/tmp/_mjitXXX` file is renamed to `/tmp/_ruby_mjitXXX` because non-Ruby
developers may not know the name "mjit" and the file name should make
sure it's from Ruby and not from some harmful programs. TODO: it may be
better to store this to some temporary directory which Ruby is already using
by Tempfile, if it's not bad for performance.
mjit.h: New. It has `mjit_exec` interface similar to `vm_exec`, which is
for triggering MJIT. This drops interface for AOT compared to the original
MJIT.
Makefile.in: define macros to let MJIT know the path of MJIT header.
Probably we can refactor this to reduce the number of macros (TODO).
win32/Makefile.sub: ditto.
common.mk: compile mjit.o and mjit_compile.o. Unlike original MJIT, this
commit separates MJIT infrastructure and JIT compiler code as independent
object files. As initial patch is NOT going to have ultra-fast JIT compiler,
it's likely to replace JIT compiler, e.g. original MJIT's compiler or some
future JIT impelementations which are not public now.
inits.c: define MJIT module. This is added because `MJIT.enabled?` was
necessary for testing.
test/lib/zombie_hunter.rb: skip if `MJIT.enabled?`. Obviously this
wouldn't work with current code when JIT is enabled.
test/ruby/test_io.rb: skip this too. This would make no sense with MJIT.
ruby.c: define MJIT CLI options. As major difference from original MJIT,
"-j:l"/"--jit:llvm" are renamed to "--jit-cc" because I want to support
not only gcc/clang but also cl.exe (Visual Studio) in the future. But it
takes only "--jit-cc=gcc", "--jit-cc=clang" for now. And only long "--jit"
options are allowed since some Ruby committers preferred it at Ruby
developers Meeting on January, and some of options are renamed.
This file also triggers to initialize MJIT thread and variables.
eval.c: finalize MJIT worker thread and variables.
test/ruby/test_rubyoptions.rb: fix number of CLI options for --jit.
thread_pthread.c: change for pthread abstraction in MJIT. Prefix rb_ for
functions which are used by other files.
thread_win32.c: ditto, for Windows. Those pthread porting is one of major
works that YARV-MJIT created, which is my fork of MJIT, in Feature 14235.
thread.c: follow rb_ prefix changes
vm.c: trigger MJIT call on VM invocation. Also trigger `mjit_mark` to avoid
SEGV by race between JIT and GC of ISeq. The improvement was provided by
wanabe <s.wanabe@gmail.com>.
In JIT compiler I created and am going to add in my next commit, I found
that having `mjit_exec` after `vm_loop_start:` is harmful because the
JIT-ed function doesn't proceed other ISeqs on RESTORE_REGS of leave insn.
Executing non-FINISH frame is unexpected for my JIT compiler and
`exception_handler` triggers executions of such ISeqs. So `mjit_exec`
here should be executed only when it directly comes from `vm_exec` call.
`RubyVM::MJIT` module and `.enabled?` method is added so that we can skip
some tests which don't expect JIT threads or compiler file descriptors.
vm_insnhelper.h: trigger MJIT on method calls during VM execution.
vm_core.h: add fields required for mjit.c. `bp` must be `cfp[6]` because
rb_control_frame_struct is likely to be casted to another struct. The
last position is the safest place to add the new field.
vm_insnhelper.c: save initial value of cfp->ep as cfp->bp. This is an
optimization which are done in both MJIT and YARV-MJIT. So this change
is added in this commit. Calculating bp from ep is a little heavy work,
so bp is kind of cache for it.
iseq.c: notify ISeq GC to MJIT. We should know which iseq in MJIT queue
is GCed to avoid SEGV. TODO: unload some GCed units in some safe way.
gc.c: add hooks so that MJIT can wait GC, and vice versa. Simultaneous
JIT and GC executions may cause SEGV and so we should synchronize them.
cont.c: save continuation information in MJIT worker. As MJIT shouldn't
unload JIT-ed code which is being used, MJIT wants to know full list of
saved execution contexts for continuation and detect ISeqs in use.
mjit_compile.c: added empty JIT compiler so that you can reuse this commit
to build your own JIT compiler. This commit tries to compile ISeqs but
all of them are considered as not supported in this commit. So you can't
use JIT compiler in this commit yet while we added --jit option now.
Patch author: Vladimir Makarov <vmakarov@redhat.com>.
Contributors:
Takashi Kokubun <takashikkbn@gmail.com>.
wanabe <s.wanabe@gmail.com>.
Lars Kanis <lars@greiz-reinsdorf.de>.
Part of Feature 12589 and 14235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 09:58:09 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}node.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}node_name.inc
|
2017-03-22 09:00:18 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
iseq.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
iseq.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
load.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
load.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
load.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
load.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
load.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
load.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}dln.h
|
2014-11-18 18:28:08 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}load.c
|
2014-11-15 13:28:25 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}probes.h
|
2016-01-22 11:37:36 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
load.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
load.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
loadpath.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
loadpath.$(OBJEXT): $(hdrdir)/ruby/version.h
|
2014-11-21 06:04:44 +03:00
|
|
|
loadpath.$(OBJEXT): $(top_srcdir)/version.h
|
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}loadpath.c
|
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
loadpath.$(OBJEXT): {$(VPATH)}verconf.h
|
2014-12-19 16:34:54 +03:00
|
|
|
localeinit.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
localeinit.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}defines.h
|
2015-09-15 08:57:30 +03:00
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-15 13:28:25 +03:00
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}localeinit.c
|
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
localeinit.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
main.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
main.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2016-04-11 14:50:00 +03:00
|
|
|
main.$(OBJEXT): {$(VPATH)}backward.h
|
2014-11-15 13:28:25 +03:00
|
|
|
main.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
main.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
main.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
main.$(OBJEXT): {$(VPATH)}main.c
|
2014-11-15 13:28:25 +03:00
|
|
|
main.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
main.$(OBJEXT): {$(VPATH)}node.h
|
|
|
|
main.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
main.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
main.$(OBJEXT): {$(VPATH)}vm_debug.h
|
2014-12-19 16:34:54 +03:00
|
|
|
marshal.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
marshal.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
marshal.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}defines.h
|
2015-09-15 08:49:20 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-15 13:28:25 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}encoding.h
|
2015-08-12 11:43:55 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}id_table.h
|
2015-08-12 11:44:34 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-15 13:28:25 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
marshal.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}marshal.c
|
|
|
|
marshal.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
marshal.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
marshal.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
marshal.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
marshal.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
math.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
math.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
math.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
math.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}math.c
|
|
|
|
math.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-15 13:28:25 +03:00
|
|
|
math.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
math.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
miniinit.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-15 13:28:25 +03:00
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}miniinit.c
|
2014-11-15 13:28:25 +03:00
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
miniinit.$(OBJEXT): {$(VPATH)}subst.h
|
2016-03-09 13:39:21 +03:00
|
|
|
miniprelude.$(OBJEXT): {$(VPATH)}iseq.h
|
2014-11-21 06:04:44 +03:00
|
|
|
miniprelude.$(OBJEXT): {$(VPATH)}miniprelude.c
|
2018-07-05 15:48:45 +03:00
|
|
|
mjit.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
mjit.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
mjit.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
mjit.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
|
|
|
mjit.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
mjit.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}constant.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}dln.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}id_table.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}method.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}mjit.c
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}mjit.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}mjit_config.h
|
2018-08-11 12:37:14 +03:00
|
|
|
mjit.$(OBJEXT): {$(VPATH)}mjit_worker.c
|
2018-07-05 15:48:45 +03:00
|
|
|
mjit.$(OBJEXT): {$(VPATH)}node.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}thread.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
mjit.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
mjit_compile.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
mjit_compile.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
mjit_compile.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
mjit_compile.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
|
|
|
mjit_compile.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
mjit_compile.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}insns.def
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}insns.inc
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}insns_info.inc
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}internal.h
|
2018-09-17 04:31:06 +03:00
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}iseq.h
|
2018-07-05 15:48:45 +03:00
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}method.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}mjit.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}mjit_compile.c
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}mjit_compile.inc
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}node.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}vm_exec.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}vm_insnhelper.h
|
|
|
|
mjit_compile.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-11-15 13:28:25 +03:00
|
|
|
node.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
node.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
node.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
node.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
node.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
node.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}node.c
|
2014-11-15 13:28:25 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
node.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
node.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
numeric.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
numeric.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
numeric.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
numeric.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
numeric.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}numeric.c
|
2017-03-22 09:00:18 +03:00
|
|
|
numeric.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
numeric.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
numeric.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
object.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
object.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
object.$(OBJEXT): {$(VPATH)}constant.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
object.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
object.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}object.c
|
2017-03-22 09:00:18 +03:00
|
|
|
object.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
object.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
object.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
object.$(OBJEXT): {$(VPATH)}probes.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
object.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
pack.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
pack.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
pack.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
pack.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
pack.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
pack.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}pack.c
|
2014-11-15 13:28:25 +03:00
|
|
|
pack.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
pack.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
parse.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
parse.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}defs/keywords
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}lex.c
|
2014-11-21 06:04:44 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}parse.c
|
2014-11-15 18:08:50 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}parse.h
|
2014-11-16 05:06:11 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}parse.y
|
2016-04-11 14:50:00 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
parse.$(OBJEXT): {$(VPATH)}probes.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}regex.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}symbol.h
|
|
|
|
parse.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
prelude.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
prelude.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
prelude.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
prelude.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
prelude.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
prelude.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}encoding.h
|
2018-07-05 15:48:45 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}gem_prelude.rb
|
2014-11-15 13:28:25 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}io.h
|
2016-03-09 13:39:21 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}iseq.h
|
2014-11-15 13:28:25 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}prelude.c
|
2018-07-05 15:48:45 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}prelude.rb
|
2016-01-22 11:37:36 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
prelude.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
prelude.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
proc.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
proc.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
proc.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
proc.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
proc.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
proc.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}iseq.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}proc.c
|
2016-01-22 11:37:36 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
proc.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
proc.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
process.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
process.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
process.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
process.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
process.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
process.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}dln.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}io.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}process.c
|
2016-01-22 11:37:36 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
process.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}thread.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
process.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
random.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
random.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
random.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
random.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}random.c
|
2015-07-07 09:26:06 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
2014-11-15 13:28:25 +03:00
|
|
|
random.$(OBJEXT): {$(VPATH)}siphash.c
|
|
|
|
random.$(OBJEXT): {$(VPATH)}siphash.h
|
|
|
|
random.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
random.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
range.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
range.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
range.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
range.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
range.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
range.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
range.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
range.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
range.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
range.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
range.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
range.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
range.$(OBJEXT): {$(VPATH)}range.c
|
2014-11-15 13:28:25 +03:00
|
|
|
range.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
range.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
rational.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
rational.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
rational.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}encoding.h
|
2017-06-07 03:32:07 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
rational.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}rational.c
|
2016-01-22 11:33:55 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
rational.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
rational.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
re.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
re.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}defines.h
|
2015-09-15 08:49:20 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-15 13:28:25 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}re.c
|
2014-11-15 13:28:25 +03:00
|
|
|
re.$(OBJEXT): {$(VPATH)}re.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}regex.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}regint.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
re.$(OBJEXT): {$(VPATH)}util.h
|
2014-12-19 16:34:54 +03:00
|
|
|
regcomp.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}regcomp.c
|
2014-11-15 13:28:25 +03:00
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}regint.h
|
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}regparse.h
|
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
regcomp.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
regenc.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regenc.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regenc.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
regenc.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regenc.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
regenc.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regenc.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regenc.$(OBJEXT): {$(VPATH)}regenc.c
|
2014-11-15 13:28:25 +03:00
|
|
|
regenc.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
regenc.$(OBJEXT): {$(VPATH)}regint.h
|
|
|
|
regenc.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
regenc.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
regerror.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
regerror.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
regerror.$(OBJEXT): {$(VPATH)}regenc.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}regerror.c
|
2014-11-15 13:28:25 +03:00
|
|
|
regerror.$(OBJEXT): {$(VPATH)}regint.h
|
|
|
|
regerror.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
regerror.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
regexec.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
regexec.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
regexec.$(OBJEXT): {$(VPATH)}regenc.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}regexec.c
|
2014-11-15 13:28:25 +03:00
|
|
|
regexec.$(OBJEXT): {$(VPATH)}regint.h
|
|
|
|
regexec.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
regexec.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
regparse.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
regparse.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
regparse.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
regparse.$(OBJEXT): {$(VPATH)}regint.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}regparse.c
|
2014-11-15 13:28:25 +03:00
|
|
|
regparse.$(OBJEXT): {$(VPATH)}regparse.h
|
|
|
|
regparse.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
regparse.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
regsyntax.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}regenc.h
|
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}regint.h
|
2014-11-21 06:04:44 +03:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}regsyntax.c
|
2014-11-15 13:28:25 +03:00
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
regsyntax.$(OBJEXT): {$(VPATH)}subst.h
|
2016-05-24 06:43:59 +03:00
|
|
|
ruby-runner.$(OBJEXT): {$(VPATH)}ruby-runner.c
|
|
|
|
ruby-runner.$(OBJEXT): {$(VPATH)}ruby-runner.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ruby.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
ruby.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
ruby.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
ruby.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
ruby.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
ruby.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}dln.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}missing.h
|
mjit.c: merge MJIT infrastructure
that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great method JIT infrastructure for MRI as MJIT,
Lars Kanis <lars@greiz-reinsdorf.de> sent the patch to support MinGW
in MJIT. In addition to merging it, I ported pthread to Windows native
threads. Now this MJIT infrastructure can be compiled on Visual Studio.
This commit simplifies mjit.c to decrease code at initial merge. For
example, this commit does not provide multiple JIT threads support.
We can resurrect them later if we really want them, but I wanted to minimize
diff to make it easier to review this patch.
`/tmp/_mjitXXX` file is renamed to `/tmp/_ruby_mjitXXX` because non-Ruby
developers may not know the name "mjit" and the file name should make
sure it's from Ruby and not from some harmful programs. TODO: it may be
better to store this to some temporary directory which Ruby is already using
by Tempfile, if it's not bad for performance.
mjit.h: New. It has `mjit_exec` interface similar to `vm_exec`, which is
for triggering MJIT. This drops interface for AOT compared to the original
MJIT.
Makefile.in: define macros to let MJIT know the path of MJIT header.
Probably we can refactor this to reduce the number of macros (TODO).
win32/Makefile.sub: ditto.
common.mk: compile mjit.o and mjit_compile.o. Unlike original MJIT, this
commit separates MJIT infrastructure and JIT compiler code as independent
object files. As initial patch is NOT going to have ultra-fast JIT compiler,
it's likely to replace JIT compiler, e.g. original MJIT's compiler or some
future JIT impelementations which are not public now.
inits.c: define MJIT module. This is added because `MJIT.enabled?` was
necessary for testing.
test/lib/zombie_hunter.rb: skip if `MJIT.enabled?`. Obviously this
wouldn't work with current code when JIT is enabled.
test/ruby/test_io.rb: skip this too. This would make no sense with MJIT.
ruby.c: define MJIT CLI options. As major difference from original MJIT,
"-j:l"/"--jit:llvm" are renamed to "--jit-cc" because I want to support
not only gcc/clang but also cl.exe (Visual Studio) in the future. But it
takes only "--jit-cc=gcc", "--jit-cc=clang" for now. And only long "--jit"
options are allowed since some Ruby committers preferred it at Ruby
developers Meeting on January, and some of options are renamed.
This file also triggers to initialize MJIT thread and variables.
eval.c: finalize MJIT worker thread and variables.
test/ruby/test_rubyoptions.rb: fix number of CLI options for --jit.
thread_pthread.c: change for pthread abstraction in MJIT. Prefix rb_ for
functions which are used by other files.
thread_win32.c: ditto, for Windows. Those pthread porting is one of major
works that YARV-MJIT created, which is my fork of MJIT, in Feature 14235.
thread.c: follow rb_ prefix changes
vm.c: trigger MJIT call on VM invocation. Also trigger `mjit_mark` to avoid
SEGV by race between JIT and GC of ISeq. The improvement was provided by
wanabe <s.wanabe@gmail.com>.
In JIT compiler I created and am going to add in my next commit, I found
that having `mjit_exec` after `vm_loop_start:` is harmful because the
JIT-ed function doesn't proceed other ISeqs on RESTORE_REGS of leave insn.
Executing non-FINISH frame is unexpected for my JIT compiler and
`exception_handler` triggers executions of such ISeqs. So `mjit_exec`
here should be executed only when it directly comes from `vm_exec` call.
`RubyVM::MJIT` module and `.enabled?` method is added so that we can skip
some tests which don't expect JIT threads or compiler file descriptors.
vm_insnhelper.h: trigger MJIT on method calls during VM execution.
vm_core.h: add fields required for mjit.c. `bp` must be `cfp[6]` because
rb_control_frame_struct is likely to be casted to another struct. The
last position is the safest place to add the new field.
vm_insnhelper.c: save initial value of cfp->ep as cfp->bp. This is an
optimization which are done in both MJIT and YARV-MJIT. So this change
is added in this commit. Calculating bp from ep is a little heavy work,
so bp is kind of cache for it.
iseq.c: notify ISeq GC to MJIT. We should know which iseq in MJIT queue
is GCed to avoid SEGV. TODO: unload some GCed units in some safe way.
gc.c: add hooks so that MJIT can wait GC, and vice versa. Simultaneous
JIT and GC executions may cause SEGV and so we should synchronize them.
cont.c: save continuation information in MJIT worker. As MJIT shouldn't
unload JIT-ed code which is being used, MJIT wants to know full list of
saved execution contexts for continuation and detect ISeqs in use.
mjit_compile.c: added empty JIT compiler so that you can reuse this commit
to build your own JIT compiler. This commit tries to compile ISeqs but
all of them are considered as not supported in this commit. So you can't
use JIT compiler in this commit yet while we added --jit option now.
Patch author: Vladimir Makarov <vmakarov@redhat.com>.
Contributors:
Takashi Kokubun <takashikkbn@gmail.com>.
wanabe <s.wanabe@gmail.com>.
Lars Kanis <lars@greiz-reinsdorf.de>.
Part of Feature 12589 and 14235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 09:58:09 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}ruby.c
|
2016-01-22 11:37:36 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}subst.h
|
2015-10-18 00:09:10 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}thread.h
|
2014-11-15 13:28:25 +03:00
|
|
|
ruby.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
ruby.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
safe.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
safe.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
safe.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
safe.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
safe.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
safe.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
2014-11-21 06:04:44 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}safe.c
|
2014-11-15 13:28:25 +03:00
|
|
|
safe.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
safe.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
setproctitle.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
setproctitle.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}intern.h
|
2014-11-21 06:04:44 +03:00
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}setproctitle.c
|
2014-11-15 13:28:25 +03:00
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
setproctitle.$(OBJEXT): {$(VPATH)}util.h
|
|
|
|
signal.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
signal.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
signal.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
signal.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
signal.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
signal.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
2014-11-21 06:04:44 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}signal.c
|
2014-11-15 13:28:25 +03:00
|
|
|
signal.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
signal.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
sprintf.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
sprintf.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}re.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}regex.h
|
2014-11-21 06:04:44 +03:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}sprintf.c
|
2014-11-15 13:28:25 +03:00
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
sprintf.$(OBJEXT): {$(VPATH)}vsnprintf.c
|
2015-06-26 23:19:15 +03:00
|
|
|
st.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
st.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
st.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
st.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
st.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
st.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
st.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
st.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-21 06:04:44 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}st.c
|
2014-11-15 13:28:25 +03:00
|
|
|
st.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
st.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:34:54 +03:00
|
|
|
strftime.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2016-04-11 14:50:00 +03:00
|
|
|
strftime.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
strftime.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
strftime.$(OBJEXT): {$(VPATH)}intern.h
|
2016-03-23 14:57:01 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}internal.h
|
2016-04-11 14:50:00 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
strftime.$(OBJEXT): {$(VPATH)}st.h
|
2014-11-21 06:04:44 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}strftime.c
|
2014-11-15 13:28:25 +03:00
|
|
|
strftime.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
strftime.$(OBJEXT): {$(VPATH)}timev.h
|
2014-12-19 16:34:54 +03:00
|
|
|
string.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
string.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
string.$(OBJEXT): {$(VPATH)}config.h
|
2016-06-01 05:45:20 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}crypt.h
|
2017-05-24 09:46:44 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}debug_counter.h
|
2017-06-07 03:32:07 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}defines.h
|
2015-09-15 08:49:20 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}encindex.h
|
2014-11-15 13:28:25 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
string.$(OBJEXT): {$(VPATH)}gc.h
|
2015-11-07 21:48:33 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
string.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}probes.h
|
|
|
|
string.$(OBJEXT): {$(VPATH)}re.h
|
|
|
|
string.$(OBJEXT): {$(VPATH)}regex.h
|
2016-01-22 11:33:55 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}st.h
|
2014-11-21 06:04:44 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}string.c
|
2014-11-15 13:28:25 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}subst.h
|
2018-01-09 09:55:55 +03:00
|
|
|
string.$(OBJEXT): {$(VPATH)}util.h
|
2014-11-21 06:04:44 +03:00
|
|
|
strlcat.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
strlcat.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
strlcat.$(OBJEXT): {$(VPATH)}strlcat.c
|
|
|
|
strlcpy.$(OBJEXT): {$(VPATH)}config.h
|
|
|
|
strlcpy.$(OBJEXT): {$(VPATH)}missing.h
|
|
|
|
strlcpy.$(OBJEXT): {$(VPATH)}strlcpy.c
|
2014-12-19 16:11:34 +03:00
|
|
|
struct.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
struct.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
struct.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
struct.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
struct.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
struct.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
struct.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-12-19 16:11:34 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
struct.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}io.h
|
2014-12-19 16:11:34 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}missing.h
|
2014-12-19 16:11:34 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-12-19 16:11:34 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
2014-11-15 13:28:25 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}st.h
|
2014-11-21 06:04:44 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}struct.c
|
2014-11-15 13:28:25 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}subst.h
|
2014-12-19 16:11:34 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
struct.$(OBJEXT): {$(VPATH)}thread_native.h
|
2018-11-01 11:15:42 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}transient_heap.h
|
2014-12-19 16:11:34 +03:00
|
|
|
struct.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
struct.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
struct.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
symbol.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
symbol.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}id.c
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}id.h
|
2016-01-22 11:33:55 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}id_table.c
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}id_table.h
|
2014-11-15 13:28:25 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}probes.h
|
2016-01-22 11:33:55 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
symbol.$(OBJEXT): {$(VPATH)}subst.h
|
2014-11-21 06:04:44 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}symbol.c
|
2014-11-15 13:28:25 +03:00
|
|
|
symbol.$(OBJEXT): {$(VPATH)}symbol.h
|
|
|
|
thread.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
thread.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
thread.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
thread.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
thread.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
thread.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}config.h
|
2018-01-09 09:55:55 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}debug.h
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}gc.h
|
2018-08-25 09:58:35 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}hrtime.h
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}io.h
|
2018-01-09 09:55:55 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}iseq.h
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}missing.h
|
2018-07-05 15:48:45 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}subst.h
|
2014-11-21 06:04:44 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}thread.c
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}thread.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).c
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}thread_native.h
|
2015-09-01 12:08:42 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}thread_sync.c
|
2014-11-15 13:28:25 +03:00
|
|
|
thread.$(OBJEXT): {$(VPATH)}timev.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
thread.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-12-19 16:34:54 +03:00
|
|
|
time.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
time.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
time.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
time.$(OBJEXT): {$(VPATH)}encoding.h
|
2017-04-10 21:16:58 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
time.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
time.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
time.$(OBJEXT): {$(VPATH)}subst.h
|
2014-11-21 06:04:44 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}time.c
|
2014-11-15 13:28:25 +03:00
|
|
|
time.$(OBJEXT): {$(VPATH)}timev.h
|
2014-12-19 16:34:54 +03:00
|
|
|
transcode.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
transcode.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
transcode.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
transcode.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
transcode.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
transcode.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}oniguruma.h
|
|
|
|
transcode.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
transcode.$(OBJEXT): {$(VPATH)}subst.h
|
2014-11-21 06:04:44 +03:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}transcode.c
|
2014-11-15 13:28:25 +03:00
|
|
|
transcode.$(OBJEXT): {$(VPATH)}transcode_data.h
|
2018-10-31 00:53:56 +03:00
|
|
|
transient_heap.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
transient_heap.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
transient_heap.$(OBJEXT): {$(VPATH)}debug_counter.h
|
|
|
|
transient_heap.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
transient_heap.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
transient_heap.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
|
|
|
transient_heap.$(OBJEXT): {$(VPATH)}transient_heap.c
|
|
|
|
transient_heap.$(OBJEXT): {$(VPATH)}transient_heap.h
|
|
|
|
transient_heap.$(OBJEXT): {$(VPATH)}vm_debug.h
|
2014-12-19 16:34:54 +03:00
|
|
|
util.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
util.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
util.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
util.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-21 06:04:44 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}missing.h
|
2017-03-22 09:00:18 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2014-11-15 13:28:25 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
util.$(OBJEXT): {$(VPATH)}subst.h
|
2014-11-21 06:04:44 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}util.c
|
2014-11-15 13:28:25 +03:00
|
|
|
util.$(OBJEXT): {$(VPATH)}util.h
|
2016-04-11 14:50:00 +03:00
|
|
|
variable.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
variable.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
variable.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
variable.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
variable.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
variable.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
variable.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}constant.h
|
2017-02-21 11:18:15 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}debug_counter.h
|
2017-03-22 09:00:18 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-15 13:28:25 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
variable.$(OBJEXT): {$(VPATH)}id.h
|
2016-04-11 14:50:00 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}id_table.h
|
2014-11-15 13:28:25 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
variable.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}io.h
|
2018-07-05 15:48:45 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}missing.h
|
2018-07-05 15:48:45 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2018-07-05 15:48:45 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
|
|
|
variable.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
2014-11-15 13:28:25 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
variable.$(OBJEXT): {$(VPATH)}subst.h
|
2018-07-05 15:48:45 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
variable.$(OBJEXT): {$(VPATH)}thread_native.h
|
2018-11-01 11:15:42 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}transient_heap.h
|
2014-11-15 13:28:25 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}util.h
|
2014-11-21 06:04:44 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}variable.c
|
2018-07-05 15:48:45 +03:00
|
|
|
variable.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
variable.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
version.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
version.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
version.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
version.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
version.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
|
|
|
version.$(OBJEXT): $(hdrdir)/ruby/version.h
|
2018-07-05 15:48:45 +03:00
|
|
|
version.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2014-11-27 15:52:17 +03:00
|
|
|
version.$(OBJEXT): $(top_srcdir)/revision.h
|
2014-11-21 06:04:44 +03:00
|
|
|
version.$(OBJEXT): $(top_srcdir)/version.h
|
|
|
|
version.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}defines.h
|
2018-07-05 15:48:45 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}id.h
|
2014-11-15 13:28:25 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}intern.h
|
2018-07-05 15:48:45 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}internal.h
|
|
|
|
version.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}missing.h
|
2018-02-22 17:53:17 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}mjit.h
|
2018-07-05 15:48:45 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}node.h
|
|
|
|
version.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
|
|
|
version.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
2014-11-15 13:28:25 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
version.$(OBJEXT): {$(VPATH)}subst.h
|
2018-07-05 15:48:45 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
version.$(OBJEXT): {$(VPATH)}thread_native.h
|
2014-11-21 06:04:44 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}version.c
|
2018-02-22 17:53:17 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}vm_core.h
|
2018-07-05 15:48:45 +03:00
|
|
|
version.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
vm.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
vm.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
vm.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
vm.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}constant.h
|
2017-03-22 09:00:18 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}debug_counter.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}defines.h
|
2018-07-05 15:48:45 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}defs/opt_operand.def
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}gc.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}id.h
|
2015-08-12 11:43:55 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}id_table.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}insns.def
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}insns.inc
|
2018-01-29 09:47:05 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}insns_info.inc
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}iseq.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}missing.h
|
mjit.c: merge MJIT infrastructure
that allows to JIT-compile Ruby methods by generating C code and
using C compiler. See the first comment of mjit.c to know what this
file does.
mjit.c is authored by Vladimir Makarov <vmakarov@redhat.com>.
After he invented great method JIT infrastructure for MRI as MJIT,
Lars Kanis <lars@greiz-reinsdorf.de> sent the patch to support MinGW
in MJIT. In addition to merging it, I ported pthread to Windows native
threads. Now this MJIT infrastructure can be compiled on Visual Studio.
This commit simplifies mjit.c to decrease code at initial merge. For
example, this commit does not provide multiple JIT threads support.
We can resurrect them later if we really want them, but I wanted to minimize
diff to make it easier to review this patch.
`/tmp/_mjitXXX` file is renamed to `/tmp/_ruby_mjitXXX` because non-Ruby
developers may not know the name "mjit" and the file name should make
sure it's from Ruby and not from some harmful programs. TODO: it may be
better to store this to some temporary directory which Ruby is already using
by Tempfile, if it's not bad for performance.
mjit.h: New. It has `mjit_exec` interface similar to `vm_exec`, which is
for triggering MJIT. This drops interface for AOT compared to the original
MJIT.
Makefile.in: define macros to let MJIT know the path of MJIT header.
Probably we can refactor this to reduce the number of macros (TODO).
win32/Makefile.sub: ditto.
common.mk: compile mjit.o and mjit_compile.o. Unlike original MJIT, this
commit separates MJIT infrastructure and JIT compiler code as independent
object files. As initial patch is NOT going to have ultra-fast JIT compiler,
it's likely to replace JIT compiler, e.g. original MJIT's compiler or some
future JIT impelementations which are not public now.
inits.c: define MJIT module. This is added because `MJIT.enabled?` was
necessary for testing.
test/lib/zombie_hunter.rb: skip if `MJIT.enabled?`. Obviously this
wouldn't work with current code when JIT is enabled.
test/ruby/test_io.rb: skip this too. This would make no sense with MJIT.
ruby.c: define MJIT CLI options. As major difference from original MJIT,
"-j:l"/"--jit:llvm" are renamed to "--jit-cc" because I want to support
not only gcc/clang but also cl.exe (Visual Studio) in the future. But it
takes only "--jit-cc=gcc", "--jit-cc=clang" for now. And only long "--jit"
options are allowed since some Ruby committers preferred it at Ruby
developers Meeting on January, and some of options are renamed.
This file also triggers to initialize MJIT thread and variables.
eval.c: finalize MJIT worker thread and variables.
test/ruby/test_rubyoptions.rb: fix number of CLI options for --jit.
thread_pthread.c: change for pthread abstraction in MJIT. Prefix rb_ for
functions which are used by other files.
thread_win32.c: ditto, for Windows. Those pthread porting is one of major
works that YARV-MJIT created, which is my fork of MJIT, in Feature 14235.
thread.c: follow rb_ prefix changes
vm.c: trigger MJIT call on VM invocation. Also trigger `mjit_mark` to avoid
SEGV by race between JIT and GC of ISeq. The improvement was provided by
wanabe <s.wanabe@gmail.com>.
In JIT compiler I created and am going to add in my next commit, I found
that having `mjit_exec` after `vm_loop_start:` is harmful because the
JIT-ed function doesn't proceed other ISeqs on RESTORE_REGS of leave insn.
Executing non-FINISH frame is unexpected for my JIT compiler and
`exception_handler` triggers executions of such ISeqs. So `mjit_exec`
here should be executed only when it directly comes from `vm_exec` call.
`RubyVM::MJIT` module and `.enabled?` method is added so that we can skip
some tests which don't expect JIT threads or compiler file descriptors.
vm_insnhelper.h: trigger MJIT on method calls during VM execution.
vm_core.h: add fields required for mjit.c. `bp` must be `cfp[6]` because
rb_control_frame_struct is likely to be casted to another struct. The
last position is the safest place to add the new field.
vm_insnhelper.c: save initial value of cfp->ep as cfp->bp. This is an
optimization which are done in both MJIT and YARV-MJIT. So this change
is added in this commit. Calculating bp from ep is a little heavy work,
so bp is kind of cache for it.
iseq.c: notify ISeq GC to MJIT. We should know which iseq in MJIT queue
is GCed to avoid SEGV. TODO: unload some GCed units in some safe way.
gc.c: add hooks so that MJIT can wait GC, and vice versa. Simultaneous
JIT and GC executions may cause SEGV and so we should synchronize them.
cont.c: save continuation information in MJIT worker. As MJIT shouldn't
unload JIT-ed code which is being used, MJIT wants to know full list of
saved execution contexts for continuation and detect ISeqs in use.
mjit_compile.c: added empty JIT compiler so that you can reuse this commit
to build your own JIT compiler. This commit tries to compile ISeqs but
all of them are considered as not supported in this commit. So you can't
use JIT compiler in this commit yet while we added --jit option now.
Patch author: Vladimir Makarov <vmakarov@redhat.com>.
Contributors:
Takashi Kokubun <takashikkbn@gmail.com>.
wanabe <s.wanabe@gmail.com>.
Lars Kanis <lars@greiz-reinsdorf.de>.
Part of Feature 12589 and 14235.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-02-04 09:58:09 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-04-11 14:50:00 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}probes.dmyh
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}probes.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}probes_helper.h
|
2016-01-22 11:37:36 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}thread_native.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm.c
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm.inc
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_args.c
|
2016-01-22 11:33:55 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_call_iseq_optimized.inc
|
2014-11-15 13:28:25 +03:00
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_eval.c
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_exec.c
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_exec.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_insnhelper.c
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_insnhelper.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_method.c
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
vm.$(OBJEXT): {$(VPATH)}vmtc.inc
|
|
|
|
vm_backtrace.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
vm_backtrace.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
vm_backtrace.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
vm_backtrace.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
vm_backtrace.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_backtrace.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}debug.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}iseq.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}thread_native.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}vm_backtrace.c
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
vm_backtrace.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
vm_dump.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
vm_dump.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
vm_dump.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
vm_dump.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
vm_dump.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_dump.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}addr2line.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}defines.h
|
2014-11-18 18:28:08 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}encoding.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}io.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}iseq.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}missing.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-18 18:28:08 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}vm_debug.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}vm_dump.c
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_dump.$(OBJEXT): {$(VPATH)}vm_opts.h
|
|
|
|
vm_trace.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
|
|
|
vm_trace.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
|
|
|
vm_trace.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
|
|
|
vm_trace.$(OBJEXT): $(CCAN_DIR)/str/str.h
|
2014-12-19 16:34:54 +03:00
|
|
|
vm_trace.$(OBJEXT): $(hdrdir)/ruby/ruby.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_trace.$(OBJEXT): $(top_srcdir)/include/ruby.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}config.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}debug.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}defines.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}encoding.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}eval_intern.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}id.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}intern.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}internal.h
|
2014-11-18 18:28:08 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}io.h
|
2017-11-14 15:58:36 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}iseq.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}method.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}missing.h
|
2018-07-05 15:48:45 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}mjit.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}node.h
|
2017-03-22 09:00:18 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}onigmo.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}oniguruma.h
|
2016-01-22 11:37:36 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
2014-11-15 13:28:25 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}st.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}subst.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}thread_$(THREAD_MODEL).h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}thread_native.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}vm_core.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}vm_opts.h
|
2014-11-21 06:04:44 +03:00
|
|
|
vm_trace.$(OBJEXT): {$(VPATH)}vm_trace.c
|
2014-11-15 14:14:08 +03:00
|
|
|
# AUTOGENERATED DEPENDENCIES END
|