mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
24 lines
941 B
Text
24 lines
941 B
Text
/* -*- C -*- */
|
|
|
|
%# Copyright (c) 2020 Wu, Alan. 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.
|
|
<%= render 'copyright' %>
|
|
<%= render 'notice', locals: {
|
|
this_file: 'contains raw instruction bytes that helps MicroJIT generate code',
|
|
edit: __FILE__,
|
|
} -%>
|
|
|
|
% success, byte_arrays = RubyVM::MicroJIT.scrape
|
|
static const uint8_t ujit_scrape_successful = <%= success %>;
|
|
% byte_arrays.each do |(prefix, scrape_result)|
|
|
// Disassembly:
|
|
% scrape_result.disassembly_lines.each do |line|
|
|
// <%= line %>
|
|
% end
|
|
static const uint8_t <%= prefix %>_pre_call_bytes[] = { <%= scrape_result.pre_call_bytes %> };
|
|
static const uint8_t <%= prefix %>_post_call_bytes[] = { <%= scrape_result.post_call_bytes %> };
|
|
% end
|