Typofix under bootstraptest, spec and yjit directories

This commit is contained in:
Hiroshi SHIBATA 2023-12-25 13:48:26 +09:00
Родитель 2cdbeb29e6
Коммит 863ded45a1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
7 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

@ -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<Opnd> = vec![];

Просмотреть файл

@ -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);

Просмотреть файл

@ -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;
};