summaryrefslogtreecommitdiff
path: root/template/insns_info.inc.tmpl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-02 15:21:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-02 15:21:41 +0000
commitc1f5d2271974b3b36a472a3af3c2acd275c69a65 (patch)
tree6128a79dae15e30f31ff321b0aad2057f428162c /template/insns_info.inc.tmpl
parent6cee897b59eafc2d8e2d4390f9f60f1e89e8733d (diff)
* *.def, proc.c, vm_opts.h.base, template/*: set properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/insns_info.inc.tmpl')
-rw-r--r--template/insns_info.inc.tmpl154
1 files changed, 77 insertions, 77 deletions
diff --git a/template/insns_info.inc.tmpl b/template/insns_info.inc.tmpl
index 8f63cea..5ac92f8 100644
--- a/template/insns_info.inc.tmpl
+++ b/template/insns_info.inc.tmpl
@@ -1,77 +1,77 @@
-/** -*-c-*-
- This file contains instruction information for yarv instruction sequence.
-
- ----
- This file is auto generated by insns2vm.rb
- DO NOT TOUCH!
-
- If you want to fix something, you must edit 'template/insns_info.inc.tmpl'
- or insns2vm.rb
- */
-
-<%= insn_type_chars %>
-
-static char *insn_name_info[] = {
-<%= insn_names %>
-};
-
-static char *insn_operand_info[] = {
-<%= operands_info %>
-};
-
-static int insn_len_info[] = {
-<%= operands_num_info %>
-};
-
-static int insn_stack_push_num_info[] = {
-<%= stack_num_info %>
-};
-
-static int
-insn_stack_increase(int depth, int insn, VALUE *opes)
-{
- switch(insn){
-<%= stack_increase %>
- default:
- rb_bug("insn_sp_increase: unreachable");
- }
- return 0;
-}
-
-/* some utilities */
-
-static int
-insn_len(int insn)
-{
- return insn_len_info[insn];
-}
-
-static char *
-insn_name(int insn)
-{
- return insn_name_info[insn];
-}
-
-static char *
-insn_op_types(int insn)
-{
- return insn_operand_info[insn];
-}
-
-static int
-insn_op_type(int insn, int pos)
-{
- int len = insn_len(insn) - 1;
- if(pos < len){
- return insn_operand_info[insn][pos];
- }
- else{
- return 0;
- }
-}
-
-static int
-insn_ret_num(int insn)
-{
- return insn_stack_push_num_info[insn];
-}
+/** -*-c-*-
+ This file contains instruction information for yarv instruction sequence.
+
+ ----
+ This file is auto generated by insns2vm.rb
+ DO NOT TOUCH!
+
+ If you want to fix something, you must edit 'template/insns_info.inc.tmpl'
+ or insns2vm.rb
+ */
+
+<%= insn_type_chars %>
+
+static char *insn_name_info[] = {
+<%= insn_names %>
+};
+
+static char *insn_operand_info[] = {
+<%= operands_info %>
+};
+
+static int insn_len_info[] = {
+<%= operands_num_info %>
+};
+
+static int insn_stack_push_num_info[] = {
+<%= stack_num_info %>
+};
+
+static int
+insn_stack_increase(int depth, int insn, VALUE *opes)
+{
+ switch(insn){
+<%= stack_increase %>
+ default:
+ rb_bug("insn_sp_increase: unreachable");
+ }
+ return 0;
+}
+
+/* some utilities */
+
+static int
+insn_len(int insn)
+{
+ return insn_len_info[insn];
+}
+
+static char *
+insn_name(int insn)
+{
+ return insn_name_info[insn];
+}
+
+static char *
+insn_op_types(int insn)
+{
+ return insn_operand_info[insn];
+}
+
+static int
+insn_op_type(int insn, int pos)
+{
+ int len = insn_len(insn) - 1;
+ if(pos < len){
+ return insn_operand_info[insn][pos];
+ }
+ else{
+ return 0;
+ }
+}
+
+static int
+insn_ret_num(int insn)
+{
+ return insn_stack_push_num_info[insn];
+}