Simplify positioning of '{' and '}'
and fix inconsistent indentation in mjit_compile.inc.erb
This commit is contained in:
parent
72a73691bd
commit
9d85ed6cbb
@ -48,7 +48,7 @@
|
||||
switch (insn) {
|
||||
% (RubyVM::BareInstructions.to_a + RubyVM::OperandsUnifications.to_a).each do |insn|
|
||||
% next if unsupported_insns.include?(insn.name)
|
||||
case BIN(<%= insn.name %>):
|
||||
case BIN(<%= insn.name %>): {
|
||||
% # Instruction-specific behavior in JIT
|
||||
% case insn.name
|
||||
% when 'opt_send_without_block', 'send'
|
||||
@ -64,11 +64,8 @@ switch (insn) {
|
||||
% when 'getinstancevariable', 'setinstancevariable'
|
||||
<%= render 'mjit_compile_ivar', locals: { insn: insn } -%>
|
||||
% when 'invokebuiltin', 'opt_invokebuiltin_delegate'
|
||||
{
|
||||
<%= render 'mjit_compile_invokebuiltin', locals: { insn: insn } -%>
|
||||
}
|
||||
% when 'leave', 'opt_invokebuiltin_delegate_leave'
|
||||
{
|
||||
% # opt_invokebuiltin_delegate_leave also implements leave insn. We need to handle it here for inlining.
|
||||
% if insn.name == 'opt_invokebuiltin_delegate_leave'
|
||||
<%= render 'mjit_compile_invokebuiltin', locals: { insn: insn } -%>
|
||||
@ -94,12 +91,12 @@ switch (insn) {
|
||||
b->stack_size += <%= insn.call_attribute('sp_inc') %>;
|
||||
b->finish_p = TRUE;
|
||||
break;
|
||||
}
|
||||
% end
|
||||
%
|
||||
% # Main insn implementation generated by insns.def
|
||||
<%= render 'mjit_compile_insn', locals: { insn: insn } -%>
|
||||
break;
|
||||
}
|
||||
% end
|
||||
%
|
||||
% # We don't support InstructionsUnifications yet because it's not used for now.
|
||||
|
Loading…
x
Reference in New Issue
Block a user