diff options
author | Alan Wu <XrXr@users.noreply.github.com> | 2020-10-29 17:37:40 -0400 |
---|---|---|
committer | Alan Wu <XrXr@users.noreply.github.com> | 2021-10-20 18:19:26 -0400 |
commit | 5f9beb9b1b931a90b314f6adcf9ca5b7447471aa (patch) | |
tree | f49fbfbe9b829ea5bba6171ae2c207b2b41144de /tool/ruby_vm/views | |
parent | 188c54428c46c1098cda0e366ee8c974f25ac07b (diff) | |
download | ruby-5f9beb9b1b931a90b314f6adcf9ca5b7447471aa.tar.gz |
Include disassembly in MicroJIT scraper output
Diffstat (limited to 'tool/ruby_vm/views')
-rw-r--r-- | tool/ruby_vm/views/ujit_examples.inc.erb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tool/ruby_vm/views/ujit_examples.inc.erb b/tool/ruby_vm/views/ujit_examples.inc.erb index af0561f852..9409c996b1 100644 --- a/tool/ruby_vm/views/ujit_examples.inc.erb +++ b/tool/ruby_vm/views/ujit_examples.inc.erb @@ -14,6 +14,11 @@ % success, byte_arrays = RubyVM::MicroJIT.scrape static const uint8_t ujit_scrape_successful = <%= success %>; -% byte_arrays.each do |(name, bytes)| -static const uint8_t <%= name %>[] = { <%= bytes %> }; +% 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 |