2007-02-02 15:21:41 +00:00
|
|
|
/** -*-c-*-
|
|
|
|
This file contains YARV instructions list.
|
2008-12-09 07:14:13 +00:00
|
|
|
|
2007-02-02 15:21:41 +00:00
|
|
|
----
|
|
|
|
This file is auto generated by insns2vm.rb
|
|
|
|
DO NOT TOUCH!
|
|
|
|
|
|
|
|
If you want to fix something, you must edit 'template/insns.inc.tmpl'
|
2014-10-26 03:26:31 +00:00
|
|
|
or tool/insns2vm.rb
|
2007-02-02 15:21:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* BIN : Basic Instruction Name */
|
|
|
|
#define BIN(n) YARVINSN_##n
|
|
|
|
|
2008-04-20 05:58:59 +00:00
|
|
|
enum ruby_vminsn_type {
|
2017-08-22 04:22:01 +00:00
|
|
|
% @insns.each do |insn|
|
|
|
|
BIN(<%=insn.name%>),
|
|
|
|
% end
|
|
|
|
VM_INSTRUCTION_SIZE
|
2007-02-02 15:21:41 +00:00
|
|
|
};
|
|
|
|
|
2017-08-22 03:07:01 +00:00
|
|
|
#define ASSERT_VM_INSTRUCTION_SIZE(array) \
|
|
|
|
STATIC_ASSERT(numberof_##array, numberof(array) == VM_INSTRUCTION_SIZE)
|