Fix typos [ci skip]

This commit is contained in:
Kazuhiro NISHIYAMA 2022-04-28 17:51:05 +09:00
parent 5250210aa9
commit 7c141f996b
No known key found for this signature in database
GPG Key ID: 262ED8DBB4222F7A

View File

@ -1989,7 +1989,7 @@ fn gen_get_ivar(
let out_opnd = ctx.stack_push(Type::Unknown); let out_opnd = ctx.stack_push(Type::Unknown);
mov(cb, out_opnd, REG1); mov(cb, out_opnd, REG1);
} else { } else {
// Compile time value is *not* embeded. // Compile time value is *not* embedded.
// Guard that value is *not* embedded // Guard that value is *not* embedded
// See ROBJECT_IVPTR() from include/ruby/internal/core/robject.h // See ROBJECT_IVPTR() from include/ruby/internal/core/robject.h
@ -2647,7 +2647,7 @@ fn gen_opt_aref(
call_ptr(cb, REG0, rb_hash_aref as *const u8); call_ptr(cb, REG0, rb_hash_aref as *const u8);
// Pop the key and the reciever // Pop the key and the receiver
ctx.stack_pop(2); ctx.stack_pop(2);
// Push the return value onto the stack // Push the return value onto the stack
@ -3082,7 +3082,7 @@ fn gen_opt_case_dispatch(
// Normally this instruction would lookup the key in a hash and jump to an // Normally this instruction would lookup the key in a hash and jump to an
// offset based on that. // offset based on that.
// Instead we can take the fallback case and continue with the next // Instead we can take the fallback case and continue with the next
// instruciton. // instruction.
// We'd hope that our jitted code will be sufficiently fast without the // We'd hope that our jitted code will be sufficiently fast without the
// hash lookup, at least for small hashes, but it's worth revisiting this // hash lookup, at least for small hashes, but it's worth revisiting this
// assumption in the future. // assumption in the future.
@ -3417,7 +3417,7 @@ fn jit_guard_known_klass(
// Note that in case the sample instance has a singleton class that // Note that in case the sample instance has a singleton class that
// doesn't attach to the sample instance, it means the sample instance // doesn't attach to the sample instance, it means the sample instance
// has an empty singleton class that hasn't been materialized yet. In // has an empty singleton class that hasn't been materialized yet. In
// this case, comparing against the sample instance doesn't gurantee // this case, comparing against the sample instance doesn't guarantee
// that its singleton class is empty, so we can't avoid the memory // that its singleton class is empty, so we can't avoid the memory
// access. As an example, `Object.new.singleton_class` is an object in // access. As an example, `Object.new.singleton_class` is an object in
// this situation. // this situation.
@ -5433,7 +5433,7 @@ fn gen_opt_getinlinecache(
// Push the explicit block parameter onto the temporary stack. Part of the // Push the explicit block parameter onto the temporary stack. Part of the
// interpreter's scheme for avoiding Proc allocations when delegating // interpreter's scheme for avoiding Proc allocations when delegating
// explict block parameters. // explicit block parameters.
fn gen_getblockparamproxy( fn gen_getblockparamproxy(
jit: &mut JITState, jit: &mut JITState,
ctx: &mut Context, ctx: &mut Context,