Skip to content

Commit

Permalink
Fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
sisshiki1969 committed Jan 6, 2025
1 parent 9eb3054 commit 7ada82f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/yjit-bench
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

cargo install --path monoruby
#cd ../yjit-bench && ./run_benchmarks.rb rubykon -e "monoruby" -e "yjit::ruby --yjit"
cd ../yjit-bench && ./run_benchmarks.rb --rss fib binarytrees rubykon nbody optcarrot matmul nqueens sudoku bedcov -e "monoruby" -e "yjit::ruby --yjit"
cd ../yjit-bench && ./run_benchmarks.rb --rss so_mandelbrot bf fib binarytrees rubykon nbody optcarrot matmul nqueens sudoku bedcov -e "monoruby" -e "yjit::ruby --yjit"
#cd ../yjit-bench && ./run_benchmarks.rb --harness=harness-warmup --rss -e "monoruby" -e "yjit::ruby --yjit"
1 change: 1 addition & 0 deletions monoruby/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ type FiberInvoker = extern "C" fn(
) -> Option<Value>;

const COUNT_START_COMPILE: i32 = 20;
const COUNT_LOOP_START_COMPILE: i32 = 40;
const COUNT_RECOMPILE_ARECV_CLASS: i32 = 5;
const COUNT_DEOPT_RECOMPILE: i32 = 5;

Expand Down
2 changes: 1 addition & 1 deletion monoruby/src/compiler/vmgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ impl Codegen {
jmp rax;
count:
addl [r13 - 16], 1;
cmpl [r13 - 16], 5;
cmpl [r13 - 16], (COUNT_LOOP_START_COMPILE);
jae compile;
};
};
Expand Down

0 comments on commit 7ada82f

Please sign in to comment.