ruby-changes:73446
From: Takashi <ko1@a...>
Date: Tue, 6 Sep 2022 16:00:46 +0900 (JST)
Subject: [ruby-changes:73446] 4214023309 (master): Run mjit-bindgen again
https://git.ruby-lang.org/ruby.git/commit/?id=4214023309 From 4214023309ec68f49b30d8a1ee691b05ce75e287 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Tue, 6 Sep 2022 15:59:05 +0900 Subject: Run mjit-bindgen again I'm thinking about Ruby builtin code instead of doing this. It'll be hopefully more portable and easier because the same C code could handle both 32bit and 64bit. --- lib/mjit/c_32.rb | 4 +++- lib/mjit/c_64.rb | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/mjit/c_32.rb b/lib/mjit/c_32.rb index ee8324ba4d..85f9d3eab4 100644 --- a/lib/mjit/c_32.rb +++ b/lib/mjit/c_32.rb @@ -119,7 +119,7 @@ module RubyVM::MJIT https://github.com/ruby/ruby/blob/trunk/lib/mjit/c_32.rb#L119 def C.mjit_options @mjit_options ||= CType::Struct.new( - "mjit_options", 24, + "mjit_options", 32, on: [0, self._Bool], save_temps: [8, self._Bool], warnings: [16, self._Bool], @@ -129,6 +129,8 @@ module RubyVM::MJIT https://github.com/ruby/ruby/blob/trunk/lib/mjit/c_32.rb#L129 min_calls: [96, CType::Immediate.new(-4)], verbose: [128, CType::Immediate.new(4)], max_cache_size: [160, CType::Immediate.new(4)], + pause: [192, self._Bool], + pause: [224, self._Bool], ) end diff --git a/lib/mjit/c_64.rb b/lib/mjit/c_64.rb index cd0fd47e9e..864cb32b64 100644 --- a/lib/mjit/c_64.rb +++ b/lib/mjit/c_64.rb @@ -119,7 +119,7 @@ module RubyVM::MJIT https://github.com/ruby/ruby/blob/trunk/lib/mjit/c_64.rb#L119 def C.mjit_options @mjit_options ||= CType::Struct.new( - "mjit_options", 32, + "mjit_options", 40, on: [0, self._Bool], save_temps: [8, self._Bool], warnings: [16, self._Bool], @@ -129,6 +129,8 @@ module RubyVM::MJIT https://github.com/ruby/ruby/blob/trunk/lib/mjit/c_64.rb#L129 min_calls: [160, CType::Immediate.new(-4)], verbose: [192, CType::Immediate.new(4)], max_cache_size: [224, CType::Immediate.new(4)], + pause: [256, self._Bool], + custom: [264, self._Bool], ) end -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/