Skip to content

Commit cb66bc4

Browse files
committed
fix variable name to be more clear
1 parent 2999c93 commit cb66bc4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

zjit/src/hir.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7195,11 +7195,11 @@ pub fn iseq_to_hir(iseq: *const rb_iseq_t) -> Result<Function, ParseError> {
71957195
if profiled_shape.is_complex() { continue; }
71967196
if seen_shape.contains(&profiled_shape) { continue; }
71977197
seen_shape.push(profiled_shape);
7198-
let runtime_shape = fun.load_shape(block, self_param);
7198+
let actual_shape = fun.load_shape(block, self_param);
71997199
// The expected shape can change over run, so we put it
72007200
// as a pointer to keep it stable in snapshot tests.
72017201
let expected_shape = fun.push_insn(block, Insn::Const { val: Const::CShape(profiled_shape) });
7202-
let has_shape = fun.push_insn(block, Insn::IsBitEqual { left: runtime_shape, right: expected_shape });
7202+
let has_shape = fun.push_insn(block, Insn::IsBitEqual { left: actual_shape, right: expected_shape });
72037203
let iftrue_block = fun.new_block(insn_idx);
72047204
let target = BranchEdge { target: iftrue_block, args: vec![] };
72057205
let fall_through = fun.new_block(insn_idx);
@@ -8358,10 +8358,10 @@ pub fn iseq_to_hir(iseq: *const rb_iseq_t) -> Result<Function, ParseError> {
83588358
if profiled_shape.is_complex() { continue; }
83598359
if seen_shape.contains(&profiled_shape) { continue; }
83608360
seen_shape.push(profiled_shape);
8361-
let runtime_shape = fun.load_shape(block, self_param);
8361+
let actual_shape = fun.load_shape(block, self_param);
83628362
// Load the expected shape to a variable
83638363
let expected_shape = fun.push_insn(block, Insn::Const { val: Const::CShape(profiled_shape) });
8364-
let has_shape = fun.push_insn(block, Insn::IsBitEqual { left: runtime_shape, right: expected_shape });
8364+
let has_shape = fun.push_insn(block, Insn::IsBitEqual { left: actual_shape, right: expected_shape });
83658365
let iftrue_block = fun.new_block(insn_idx);
83668366
let target = BranchEdge { target: iftrue_block, args: vec![] };
83678367
let fall_through = fun.new_block(insn_idx);

0 commit comments

Comments
 (0)