Skip to content

Commit a7a026a

Browse files
authored
YJIT: Improve locals names (ruby#14285)
1 parent 2c7ec3d commit a7a026a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

yjit/src/codegen.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,11 +4315,11 @@ fn gen_opt_ary_freeze(
43154315
return None;
43164316
}
43174317

4318-
let str = jit.get_arg(0);
4318+
let ary = jit.get_arg(0);
43194319

43204320
// Push the return value onto the stack
43214321
let stack_ret = asm.stack_push(Type::CArray);
4322-
asm.mov(stack_ret, str.into());
4322+
asm.mov(stack_ret, ary.into());
43234323

43244324
Some(KeepCompiling)
43254325
}
@@ -4332,11 +4332,11 @@ fn gen_opt_hash_freeze(
43324332
return None;
43334333
}
43344334

4335-
let str = jit.get_arg(0);
4335+
let hash = jit.get_arg(0);
43364336

43374337
// Push the return value onto the stack
43384338
let stack_ret = asm.stack_push(Type::CHash);
4339-
asm.mov(stack_ret, str.into());
4339+
asm.mov(stack_ret, hash.into());
43404340

43414341
Some(KeepCompiling)
43424342
}

0 commit comments

Comments
 (0)