Typofix under bootstraptest, spec and yjit directories

This commit is contained in:
Hiroshi SHIBATA 2023-12-25 13:48:26 +09:00
parent 2cdbeb29e6
commit 863ded45a1
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
7 changed files with 11 additions and 11 deletions

View File

@ -259,7 +259,7 @@ assert_normal_exit %q{
} }
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 # doesn't corrupt the stack
class Bar class Bar
def bar(x) def bar(x)
@ -4195,7 +4195,7 @@ assert_equal '[true, true, true, true, true]', %q{
calling_my_func calling_my_func
} }
# Regresssion test: rest and optional and splat # Regression test: rest and optional and splat
assert_equal 'true', %q{ assert_equal 'true', %q{
def my_func(base=nil, *args) def my_func(base=nil, *args)
[base, args] [base, args]
@ -4225,7 +4225,7 @@ assert_equal 'true', %q{
end end
} unless rjit_enabled? # Not yet working on RJIT } unless rjit_enabled? # Not yet working on RJIT
# Regresssion test: register allocator on expandarray # Regression test: register allocator on expandarray
assert_equal '[]', %q{ assert_equal '[]', %q{
func = proc { [] } func = proc { [] }
proc do proc do

View File

@ -43,7 +43,7 @@ describe "Hash#hash" do
end end
ruby_version_is "3.1" do ruby_version_is "3.1" do
it "allows ommiting values" do it "allows omitting values" do
a = 1 a = 1
b = 2 b = 2

View File

@ -73,7 +73,7 @@ describe :sizedqueue_enq, shared: true do
t.join t.join
end 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 = @object.call(1)
q.send(@method, 1, timeout: 0).should == q q.send(@method, 1, timeout: 0).should == q
q.send(@method, 2, timeout: 0).should == nil q.send(@method, 2, timeout: 0).should == nil

View File

@ -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 | /// | 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 |

View File

@ -135,7 +135,7 @@ impl Assembler
// Opnd::Value operands into registers here because: // Opnd::Value operands into registers here because:
// //
// - Most instructions can't be encoded with 64-bit immediates. // - 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. // VALUEs alive. This is a sort of canonicalization.
let mut unmapped_opnds: Vec<Opnd> = vec![]; let mut unmapped_opnds: Vec<Opnd> = vec![];

View File

@ -4395,7 +4395,7 @@ fn jit_rb_kernel_is_a(
let sample_rhs = jit.peek_at_stack(&asm.ctx, 0); let sample_rhs = jit.peek_at_stack(&asm.ctx, 0);
let sample_lhs = jit.peek_at_stack(&asm.ctx, 1); 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) } { if !unsafe { RB_TYPE_P(sample_rhs, RUBY_T_CLASS) } {
return false; return false;
} }
@ -6127,7 +6127,7 @@ fn gen_send_iseq(
} }
if iseq_has_rest && opt_num > 0 { 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 // we are going to set the pc_offset for where
// to jump in the called method. // to jump in the called method.
// If the number of args change, that would need to // 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_eq!(opts_missing + opts_filled, opt_num);
assert!(opts_filled >= 0); 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. // locations depending on the number of optionals given.
if opt_num > 0 { if opt_num > 0 {
assert!(opts_filled >= 0); assert!(opts_filled >= 0);

View File

@ -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() { let insn_idx: IseqIdx = if let Ok(idx) = insn_idx.try_into() {
idx idx
} else { } 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. // so there is nothing to invalidate.
return; return;
}; };