blob: 39dc8bfa6b25db740cde8fc97e7bcadc0e80e27b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* -*- C -*- */
%# 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.
%
% zjit_insns, insns = RubyVM::Instructions.partition { |i| i.name.start_with?('zjit_') }
%
<%= render 'copyright' -%>
<%= render 'notice', locals: {
this_file: 'is for threaded code',
edit: __FILE__,
} -%>
static const void *const insns_address_table[] = {
% insns.each do |i|
LABEL_PTR(<%= i.name %>),
% end
#if USE_ZJIT
% zjit_insns.each do |i|
LABEL_PTR(<%= i.name %>),
% end
#endif
};
ASSERT_VM_INSTRUCTION_SIZE(insns_address_table);
|