зеркало из https://github.com/github/ruby.git
Fix compilation for OPT_THREADED_CODE=2
This commit is contained in:
Родитель
edede7733d
Коммит
7662653b4c
|
@ -25,16 +25,19 @@
|
||||||
<%= render 'insn_entry', locals: { insn: insn } -%>
|
<%= render 'insn_entry', locals: { insn: insn } -%>
|
||||||
% end
|
% end
|
||||||
%
|
%
|
||||||
% RubyVM::TraceInstructions.to_a.each do |insn|
|
|
||||||
<%= render 'trace_instruction', locals: { insn: insn } -%>
|
|
||||||
% end
|
|
||||||
% RubyVM::MicroJIT::ExampleInstructions.to_a.each do |insn|
|
% RubyVM::MicroJIT::ExampleInstructions.to_a.each do |insn|
|
||||||
INSN_ENTRY(<%= insn.name %>)
|
INSN_ENTRY(<%= insn.name %>)
|
||||||
{
|
{
|
||||||
START_OF_ORIGINAL_INSN(<%= insn.name %>);
|
START_OF_ORIGINAL_INSN(<%= insn.name %>);
|
||||||
|
#if USE_MACHINE_REGS
|
||||||
// assumes USE_MACHINE_REGS, aka reg_pc setup,
|
// assumes USE_MACHINE_REGS, aka reg_pc setup,
|
||||||
// aka #define SET_PC(x) (reg_cfp->pc = reg_pc = (x))
|
// aka #define SET_PC(x) (reg_cfp->pc = reg_pc = (x))
|
||||||
reg_pc = rb_ujit_empty_func(GET_CFP());
|
reg_pc = rb_ujit_empty_func(GET_CFP());
|
||||||
|
#endif
|
||||||
END_INSN(<%= insn.name %>);
|
END_INSN(<%= insn.name %>);
|
||||||
}
|
}
|
||||||
% end
|
% end
|
||||||
|
%
|
||||||
|
% RubyVM::TraceInstructions.to_a.each do |insn|
|
||||||
|
<%= render 'trace_instruction', locals: { insn: insn } -%>
|
||||||
|
% end
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
* 2: call (function call for each insn dispatch)
|
* 2: call (function call for each insn dispatch)
|
||||||
*/
|
*/
|
||||||
#ifndef OPT_THREADED_CODE
|
#ifndef OPT_THREADED_CODE
|
||||||
#define OPT_THREADED_CODE 0
|
#define OPT_THREADED_CODE 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define OPT_DIRECT_THREADED_CODE (OPT_THREADED_CODE == 0)
|
#define OPT_DIRECT_THREADED_CODE (OPT_THREADED_CODE == 0)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче