Skip to content

Commit 2c44668

Browse files
committed
Fix tests after rebase
1 parent c9546ae commit 2c44668

1 file changed

Lines changed: 26 additions & 19 deletions

File tree

zjit/src/hir/opt_tests.rs

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15264,8 +15264,33 @@ mod hir_opt_tests {
1526415264
end
1526515265
IFuncTestList.new.map { |x| x }
1526615266
");
15267-
assert_snapshot!(hir_string_proc("IFuncTestList.instance_method(:each)"), @"
15267+
assert_snapshot!(hir_string_proc("IFuncTestList.instance_method(:each)"), @r"
1526815268
fn each@<compiled>:5:
15269+
bb1():
15270+
EntryPoint interpreter
15271+
v1:BasicObject = LoadSelf
15272+
Jump bb3(v1)
15273+
bb2():
15274+
EntryPoint JIT(0)
15275+
v4:BasicObject = LoadArg :self@0
15276+
Jump bb3(v4)
15277+
bb3(v6:BasicObject):
15278+
v10:Fixnum[1] = Const Value(1)
15279+
v12:CPtr = GetEP 0
15280+
v13:CInt64 = LoadField v12, :_env_data_index_specval@0x1000
15281+
v14:CInt64[3] = Const CInt64(3)
15282+
v15:CInt64 = IntAnd v13, v14
15283+
v16:CInt64[3] = GuardBitEquals v15, CInt64(3)
15284+
v17:BasicObject = InvokeBlockIfunc v13, v10
15285+
v21:Fixnum[2] = Const Value(2)
15286+
v23:CPtr = GetEP 0
15287+
v24:CInt64 = LoadField v23, :_env_data_index_specval@0x1000
15288+
v25:CInt64[3] = Const CInt64(3)
15289+
v26:CInt64 = IntAnd v24, v25
15290+
v27:CInt64[3] = GuardBitEquals v26, CInt64(3)
15291+
v28:BasicObject = InvokeBlockIfunc v24, v21
15292+
CheckInterrupts
15293+
Return v28
1526915294
");
1527015295
}
1527115296

@@ -15294,24 +15319,6 @@ mod hir_opt_tests {
1529415319
Jump bb3(v4)
1529515320
bb3(v6:BasicObject):
1529615321
v10:Fixnum[1] = Const Value(1)
15297-
v12:CPtr = GetEP 0
15298-
v13:CInt64 = LoadField v12, :_env_data_index_specval@0x1000
15299-
v14:CInt64[3] = Const CInt64(3)
15300-
v15:CInt64 = IntAnd v13, v14
15301-
v16:CInt64[3] = GuardBitEquals v15, CInt64(3)
15302-
v17:BasicObject = InvokeBlockIfunc v13, v10
15303-
v21:Fixnum[2] = Const Value(2)
15304-
v23:CPtr = GetEP 0
15305-
v24:CInt64 = LoadField v23, :_env_data_index_specval@0x1000
15306-
v25:CInt64[3] = Const CInt64(3)
15307-
v26:CInt64 = IntAnd v24, v25
15308-
v27:CInt64[3] = GuardBitEquals v26, CInt64(3)
15309-
v28:BasicObject = InvokeBlockIfunc v24, v21
15310-
CheckInterrupts
15311-
Return v28
15312-
15313-
15314-
1531515322
PatchPoint SingleRactorMode
1531615323
v35:HeapBasicObject = GuardType v6, HeapBasicObject
1531715324
v36:CShape = LoadField v35, :_shape_id@0x1000

0 commit comments

Comments
 (0)