Skip to content
Permalink
Browse files

2019-02-08 Vladimir Makarov <vmakarov@redhat.com>

	* tool/ruby_vm/views/_insn_leaf_flag.erb: Add missed file.
  • Loading branch information...
Vladimir N. Makarov
Vladimir N. Makarov committed Feb 8, 2019
1 parent 2c24f0c commit 2c97a18e11c336c1912ebfc6f05e45baa3cec8ac
Showing with 35 additions and 0 deletions.
  1. +4 −0 ChangeLog.RTL_MJIT
  2. +31 −0 tool/ruby_vm/views/_insn_leaf_flag.erb
@@ -1,3 +1,7 @@
2019-02-08 Vladimir Makarov <vmakarov@redhat.com>

* tool/ruby_vm/views/_insn_leaf_flag.erb: Add missed file.

2019-02-01 Vladimir Makarov <vmakarov@redhat.com>

* README.md: Rewrite.
@@ -0,0 +1,31 @@
%# -*- mode:c; style:ruby; coding: utf-8; indent-tabs-mode: nil -*-
%# Copyright (c) 2017 Urabe, Shyouhei. All rights reserved.
%#
%# This file is a part of the programming language Ruby. Permission is hereby
%# granted, to either redistribute and/or modify this file, provided that the
%# conditions mentioned in the file COPYING are met. Consult the file for
%# details.
%#
PUREFUNC(MAYBE_UNUSED(static bool insn_leaf_flag(enum ruby_vminsn_type insn, const VALUE *opes)));

bool
insn_leaf_flag(enum ruby_vminsn_type insn, const VALUE *opes)
{
switch(insn) {
% RubyVM::Instructions.each do |i|
% next unless i.has_attribute?('leaf')
case <%= i.bin %>:
return attr_leaf_<%= i.name %>(<%=
i.opes.map.with_index do |v, j|
if v[:name] == '_'
nil
else
"(#{v[:type]})opes[#{j}]"
end
end.compact.join(", ")
%>);
% end
default:
return true;
}
}

0 comments on commit 2c97a18

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.