2007-02-02 18:21:41 +03:00
|
|
|
/** -*-c-*-
|
|
|
|
This file contains YARV instructions list.
|
2008-12-09 10:14:13 +03:00
|
|
|
|
2007-02-02 18:21:41 +03: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 06:26:31 +03:00
|
|
|
or tool/insns2vm.rb
|
2007-02-02 18:21:41 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* BIN : Basic Instruction Name */
|
|
|
|
#define BIN(n) YARVINSN_##n
|
|
|
|
|
2008-04-20 09:58:59 +04:00
|
|
|
enum ruby_vminsn_type {
|
2017-08-22 07:22:01 +03:00
|
|
|
% @insns.each do |insn|
|
|
|
|
BIN(<%=insn.name%>),
|
|
|
|
% end
|
|
|
|
VM_INSTRUCTION_SIZE
|
2007-02-02 18:21:41 +03:00
|
|
|
};
|
|
|
|
|
2017-08-22 06:07:01 +03:00
|
|
|
#define ASSERT_VM_INSTRUCTION_SIZE(array) \
|
|
|
|
STATIC_ASSERT(numberof_##array, numberof(array) == VM_INSTRUCTION_SIZE)
|