From 4214023309ec68f49b30d8a1ee691b05ce75e287 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun 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 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 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 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 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.3