diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb index 379591641c..aaf70e7b93 100644 --- a/bootstraptest/test_yjit.rb +++ b/bootstraptest/test_yjit.rb @@ -259,7 +259,7 @@ assert_normal_exit %q{ } assert_normal_exit %q{ - # Test to ensure send on overriden c functions + # Test to ensure send on overridden c functions # doesn't corrupt the stack class Bar def bar(x) @@ -4195,7 +4195,7 @@ assert_equal '[true, true, true, true, true]', %q{ calling_my_func } -# Regresssion test: rest and optional and splat +# Regression test: rest and optional and splat assert_equal 'true', %q{ def my_func(base=nil, *args) [base, args] @@ -4225,7 +4225,7 @@ assert_equal 'true', %q{ end } unless rjit_enabled? # Not yet working on RJIT -# Regresssion test: register allocator on expandarray +# Regression test: register allocator on expandarray assert_equal '[]', %q{ func = proc { [] } proc do diff --git a/spec/ruby/core/hash/hash_spec.rb b/spec/ruby/core/hash/hash_spec.rb index 2ccb483120..19eb806dc4 100644 --- a/spec/ruby/core/hash/hash_spec.rb +++ b/spec/ruby/core/hash/hash_spec.rb @@ -43,7 +43,7 @@ describe "Hash#hash" do end ruby_version_is "3.1" do - it "allows ommiting values" do + it "allows omitting values" do a = 1 b = 2 diff --git a/spec/ruby/shared/sizedqueue/enque.rb b/spec/ruby/shared/sizedqueue/enque.rb index 7b6b1df730..6307f3c3ca 100644 --- a/spec/ruby/shared/sizedqueue/enque.rb +++ b/spec/ruby/shared/sizedqueue/enque.rb @@ -73,7 +73,7 @@ describe :sizedqueue_enq, shared: true do t.join end - it "returns nil if no space is avialable and timeout is 0" do + it "returns nil if no space is available and timeout is 0" do q = @object.call(1) q.send(@method, 1, timeout: 0).should == q q.send(@method, 2, timeout: 0).should == nil diff --git a/yjit/src/asm/arm64/inst/smulh.rs b/yjit/src/asm/arm64/inst/smulh.rs index 796a19433f..5e9b231fde 100644 --- a/yjit/src/asm/arm64/inst/smulh.rs +++ b/yjit/src/asm/arm64/inst/smulh.rs @@ -1,4 +1,4 @@ -/// The struct that represents an A64 signed multipy high instruction +/// The struct that represents an A64 signed multiply high instruction /// /// +-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ /// | 31 30 29 28 | 27 26 25 24 | 23 22 21 20 | 19 18 17 16 | 15 14 13 12 | 11 10 09 08 | 07 06 05 04 | 03 02 01 00 | diff --git a/yjit/src/backend/x86_64/mod.rs b/yjit/src/backend/x86_64/mod.rs index 043139f492..25c92642d3 100644 --- a/yjit/src/backend/x86_64/mod.rs +++ b/yjit/src/backend/x86_64/mod.rs @@ -135,7 +135,7 @@ impl Assembler // Opnd::Value operands into registers here because: // // - Most instructions can't be encoded with 64-bit immediates. - // - We look for Op::Load specifically when emiting to keep GC'ed + // - We look for Op::Load specifically when emitting to keep GC'ed // VALUEs alive. This is a sort of canonicalization. let mut unmapped_opnds: Vec = vec![]; diff --git a/yjit/src/codegen.rs b/yjit/src/codegen.rs index a50bed3bc3..6d85ca4266 100644 --- a/yjit/src/codegen.rs +++ b/yjit/src/codegen.rs @@ -4395,7 +4395,7 @@ fn jit_rb_kernel_is_a( let sample_rhs = jit.peek_at_stack(&asm.ctx, 0); let sample_lhs = jit.peek_at_stack(&asm.ctx, 1); - // We are not allowing module here because the module hierachy can change at runtime. + // We are not allowing module here because the module hierarchy can change at runtime. if !unsafe { RB_TYPE_P(sample_rhs, RUBY_T_CLASS) } { return false; } @@ -6127,7 +6127,7 @@ fn gen_send_iseq( } if iseq_has_rest && opt_num > 0 { - // If we have a rest and option arugments + // If we have a rest and option arguments // we are going to set the pc_offset for where // to jump in the called method. // If the number of args change, that would need to @@ -6163,7 +6163,7 @@ fn gen_send_iseq( assert_eq!(opts_missing + opts_filled, opt_num); assert!(opts_filled >= 0); - // ISeq with optional paramters start at different + // ISeq with optional parameters start at different // locations depending on the number of optionals given. if opt_num > 0 { assert!(opts_filled >= 0); diff --git a/yjit/src/invariants.rs b/yjit/src/invariants.rs index ad684cd54e..59f7b70e20 100644 --- a/yjit/src/invariants.rs +++ b/yjit/src/invariants.rs @@ -407,7 +407,7 @@ pub extern "C" fn rb_yjit_constant_ic_update(iseq: *const rb_iseq_t, ic: IC, ins let insn_idx: IseqIdx = if let Ok(idx) = insn_idx.try_into() { idx } else { - // The index is too large, YJIT can't possibily have code for it, + // The index is too large, YJIT can't possibly have code for it, // so there is nothing to invalidate. return; };