Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions .github/auto_request_review.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
files:
# JIT sources (Rust + C + Ruby)
'jit/**': [team:jit]
# All of {y,z}jit/ except the generated cruby_bindings.inc.rs files.
'yjit*': [team:jit]
'yjit/**/*': [team:jit]
'yjit/src/cruby_bindings.inc.rs': []
'bootstraptest/test_yjit*': [team:jit]
'test/ruby/test_yjit*': [team:jit]
'zjit*': [team:jit]
'zjit/**/*': [team:jit]
'zjit/src/cruby_bindings.inc.rs': []
'test/ruby/test_zjit*': [team:jit]
'jit.c': [team:jit]
'jit_hook.rb': [team:jit]
'jit_undef.rb': [team:jit]

# Build + GC fast paths
'defs/jit.mk': [team:jit]
'tool/zjit_bisect.rb': [team:jit]
'gc/**/zjit_fastpath.h': [team:jit]

# Docs
'doc/jit/*': [team:jit]

# Specs + tests
'spec/zjit.mspec': [team:jit]
'test/.excludes-zjit/**': [team:jit]
'test/lib/jit_support.rb': [team:jit]
'test/ruby/test_*jit*': [team:jit]
'bootstraptest/test_*jit*.rb': [team:jit]

# Tooling
'tool/zjit_*': [team:jit]
'tool/ruby_vm/**/*zjit*': [team:jit]

# Skip files updated by dependabot. It's noisy in notifications, and they're auto-merged anyway.
'yjit/Cargo.lock': []
'zjit/Cargo.lock': []
Expand Down
28 changes: 28 additions & 0 deletions benchmark/keyword_arguments_many.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 31 keywords use the bitmask; 32 and 128 exercise the overflow container.
# Sparse defaults are dynamic only for the last two keywords; dense defaults
# are all dynamic. Reuse an object to avoid allocating default values.
prelude: |
DEFAULT = Object.new
kwargs = {k0: 0}
[31, 32, 128].each do |n|
[:sparse, :dense].each do |kind|
params = n.times.map do |i|
default = kind == :dense || i >= n - 2 ? "DEFAULT" : "0"
"k#{i}: #{default}"
end
eval "def many_#{n}_#{kind}(#{params.join(", ")}); end"
end
end
benchmark:
kw_31_sparse: "many_31_sparse(k0: 0)"
kwsplat_31_sparse: "many_31_sparse(**kwargs)"
kw_31_dense: "many_31_dense(k0: 0)"
kwsplat_31_dense: "many_31_dense(**kwargs)"
kw_32_sparse: "many_32_sparse(k0: 0)"
kwsplat_32_sparse: "many_32_sparse(**kwargs)"
kw_32_dense: "many_32_dense(k0: 0)"
kwsplat_32_dense: "many_32_dense(**kwargs)"
kw_128_sparse: "many_128_sparse(k0: 0)"
kwsplat_128_sparse: "many_128_sparse(**kwargs)"
kw_128_dense: "many_128_dense(k0: 0)"
kwsplat_128_dense: "many_128_dense(**kwargs)"
2 changes: 1 addition & 1 deletion gc/mmtk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mmtk_ruby"
version = "0.1.0"
authors = []
edition = "2021"
edition = "2024"

[lib]
name = "mmtk_ruby"
Expand Down
2 changes: 1 addition & 1 deletion gc/mmtk/src/abi.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::Ruby;
use crate::api::RubyMutator;
use crate::extra_assert;
use crate::Ruby;
use libc::c_int;
use mmtk::scheduler::GCWorker;
use mmtk::util::Address;
Expand Down
4 changes: 2 additions & 2 deletions gc/mmtk/src/active_plan.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use std::collections::VecDeque;
use std::marker::PhantomData;

use crate::Ruby;
use crate::mmtk;
use crate::upcalls;
use crate::Ruby;
use mmtk::Mutator;
use mmtk::util::opaque_pointer::*;
use mmtk::vm::ActivePlan;
use mmtk::Mutator;

pub struct VMActivePlan {}

Expand Down
Loading