@@ -3236,7 +3236,7 @@ mod hir_opt_tests {
32363236 PatchPoint NoSingletonClass(Object@0x1000)
32373237 PatchPoint MethodRedefined(Object@0x1000, block_given?@0x1008, cme:0x1010)
32383238 v20:HeapObject[class_exact*:Object@VALUE(0x1000)] = GuardType v6, HeapObject[class_exact*:Object@VALUE(0x1000)]
3239- v21:CPtr = GetLEP
3239+ v21:CPtr = GetEP 0
32403240 v22:BoolExact = IsBlockGiven v21
32413241 IncrCounter inline_cfunc_optimized_send_count
32423242 CheckInterrupts
@@ -8753,7 +8753,7 @@ mod hir_opt_tests {
87538753 test = PushSubArray.new
87548754 test << 1
87558755 " ) ;
8756- assert_snapshot ! ( hir_string_proc( "PushSubArray.new.method(:<<)" ) , @"
8756+ assert_snapshot ! ( hir_string_proc( "PushSubArray.new.method(:<<)" ) , @r "
87578757 fn <<@<compiled>:3:
87588758 bb1():
87598759 EntryPoint interpreter
@@ -8768,7 +8768,7 @@ mod hir_opt_tests {
87688768 Jump bb3(v6, v7)
87698769 bb3(v9:BasicObject, v10:BasicObject):
87708770 PatchPoint MethodRedefined(Array@0x1008, <<@0x1010, cme:0x1018)
8771- v23:CPtr = GetLEP
8771+ v23:CPtr = GetEP 0
87728772 v24:RubyValue = LoadField v23, :_ep_method_entry@0x1040
87738773 v25:CallableMethodEntry[VALUE(0x1048)] = GuardBitEquals v24, Value(VALUE(0x1048))
87748774 v26:RubyValue = LoadField v23, :_ep_specval@0x1050
@@ -8802,12 +8802,12 @@ mod hir_opt_tests {
88028802 Jump bb3(v4)
88038803 bb3(v6:BasicObject):
88048804 PatchPoint MethodRedefined(Array@0x1000, pop@0x1008, cme:0x1010)
8805- v18:CPtr = GetLEP
8805+ v18:CPtr = GetEP 0
88068806 v19:RubyValue = LoadField v18, :_ep_method_entry@0x1038
88078807 v20:CallableMethodEntry[VALUE(0x1040)] = GuardBitEquals v19, Value(VALUE(0x1040))
88088808 v21:RubyValue = LoadField v18, :_ep_specval@0x1048
88098809 v22:FalseClass = GuardBitEquals v21, Value(false)
8810- v28:CPtr = GetLEP
8810+ v28:CPtr = GetEP 0
88118811 v29:RubyValue = LoadField v28, :_ep_method_entry@0x1038
88128812 v30:CallableMethodEntry[VALUE(0x1040)] = GuardBitEquals v29, Value(VALUE(0x1040))
88138813 v31:RubyValue = LoadField v28, :_ep_specval@0x1048
@@ -8831,7 +8831,7 @@ mod hir_opt_tests {
88318831 test = ArefSubArray.new([1])
88328832 test[0]
88338833 " ) ;
8834- assert_snapshot ! ( hir_string_proc( "ArefSubArray.new.method(:[])" ) , @"
8834+ assert_snapshot ! ( hir_string_proc( "ArefSubArray.new.method(:[])" ) , @r "
88358835 fn []@<compiled>:3:
88368836 bb1():
88378837 EntryPoint interpreter
@@ -8846,12 +8846,12 @@ mod hir_opt_tests {
88468846 Jump bb3(v6, v7)
88478847 bb3(v9:BasicObject, v10:BasicObject):
88488848 PatchPoint MethodRedefined(Array@0x1008, []@0x1010, cme:0x1018)
8849- v23:CPtr = GetLEP
8849+ v23:CPtr = GetEP 0
88508850 v24:RubyValue = LoadField v23, :_ep_method_entry@0x1040
88518851 v25:CallableMethodEntry[VALUE(0x1048)] = GuardBitEquals v24, Value(VALUE(0x1048))
88528852 v26:RubyValue = LoadField v23, :_ep_specval@0x1050
88538853 v27:FalseClass = GuardBitEquals v26, Value(false)
8854- v37:CPtr = GetLEP
8854+ v37:CPtr = GetEP 0
88558855 v38:RubyValue = LoadField v37, :_ep_method_entry@0x1040
88568856 v39:CallableMethodEntry[VALUE(0x1048)] = GuardBitEquals v38, Value(VALUE(0x1048))
88578857 v40:RubyValue = LoadField v37, :_ep_specval@0x1050
@@ -8879,7 +8879,7 @@ mod hir_opt_tests {
88798879 test = ArefSubArrayRange.new([1, 2, 3])
88808880 test[0..1]
88818881 " ) ;
8882- assert_snapshot ! ( hir_string_proc( "ArefSubArrayRange.new.method(:[])" ) , @"
8882+ assert_snapshot ! ( hir_string_proc( "ArefSubArrayRange.new.method(:[])" ) , @r "
88838883 fn []@<compiled>:3:
88848884 bb1():
88858885 EntryPoint interpreter
@@ -8894,7 +8894,7 @@ mod hir_opt_tests {
88948894 Jump bb3(v6, v7)
88958895 bb3(v9:BasicObject, v10:BasicObject):
88968896 PatchPoint MethodRedefined(Array@0x1008, []@0x1010, cme:0x1018)
8897- v23:CPtr = GetLEP
8897+ v23:CPtr = GetEP 0
88988898 v24:RubyValue = LoadField v23, :_ep_method_entry@0x1040
88998899 v25:CallableMethodEntry[VALUE(0x1048)] = GuardBitEquals v24, Value(VALUE(0x1048))
89008900 v26:RubyValue = LoadField v23, :_ep_specval@0x1050
@@ -12629,7 +12629,7 @@ mod hir_opt_tests {
1262912629 Jump bb3(v4)
1263012630 bb3(v6:BasicObject):
1263112631 PatchPoint MethodRedefined(A@0x1000, foo@0x1008, cme:0x1010)
12632- v18:CPtr = GetLEP
12632+ v18:CPtr = GetEP 0
1263312633 v19:RubyValue = LoadField v18, :_ep_method_entry@0x1038
1263412634 v20:CallableMethodEntry[VALUE(0x1040)] = GuardBitEquals v19, Value(VALUE(0x1040))
1263512635 v21:RubyValue = LoadField v18, :_ep_specval@0x1048
@@ -12686,7 +12686,7 @@ mod hir_opt_tests {
1268612686 assert ! ( !hir. contains( "InvokeSuper " ) , "InvokeSuper should optimize to SendDirect but got:\n {hir}" ) ;
1268712687 assert ! ( hir. contains( "SendDirect" ) , "Should optimize to SendDirect for call without args or block:\n {hir}" ) ;
1268812688
12689- assert_snapshot ! ( hir, @"
12689+ assert_snapshot ! ( hir, @r "
1269012690 fn foo@<compiled>:10:
1269112691 bb1():
1269212692 EntryPoint interpreter
@@ -12701,7 +12701,7 @@ mod hir_opt_tests {
1270112701 Jump bb3(v6, v7)
1270212702 bb3(v9:BasicObject, v10:BasicObject):
1270312703 PatchPoint MethodRedefined(A@0x1008, foo@0x1010, cme:0x1018)
12704- v28:CPtr = GetLEP
12704+ v28:CPtr = GetEP 0
1270512705 v29:RubyValue = LoadField v28, :_ep_method_entry@0x1040
1270612706 v30:CallableMethodEntry[VALUE(0x1048)] = GuardBitEquals v29, Value(VALUE(0x1048))
1270712707 v31:RubyValue = LoadField v28, :_ep_specval@0x1050
@@ -12827,7 +12827,7 @@ mod hir_opt_tests {
1282712827 Jump bb3(v4)
1282812828 bb3(v6:BasicObject):
1282912829 PatchPoint MethodRedefined(Hash@0x1000, size@0x1008, cme:0x1010)
12830- v18:CPtr = GetLEP
12830+ v18:CPtr = GetEP 0
1283112831 v19:RubyValue = LoadField v18, :_ep_method_entry@0x1038
1283212832 v20:CallableMethodEntry[VALUE(0x1040)] = GuardBitEquals v19, Value(VALUE(0x1040))
1283312833 v21:RubyValue = LoadField v18, :_ep_specval@0x1048
@@ -12862,7 +12862,7 @@ mod hir_opt_tests {
1286212862 Jump bb3(v4)
1286312863 bb3(v6:BasicObject):
1286412864 PatchPoint MethodRedefined(BasicObject@0x1000, initialize@0x1008, cme:0x1010)
12865- v18:CPtr = GetLEP
12865+ v18:CPtr = GetEP 0
1286612866 v19:RubyValue = LoadField v18, :_ep_method_entry@0x1038
1286712867 v20:CallableMethodEntry[VALUE(0x1040)] = GuardBitEquals v19, Value(VALUE(0x1040))
1286812868 v21:RubyValue = LoadField v18, :_ep_specval@0x1048
@@ -12890,7 +12890,7 @@ mod hir_opt_tests {
1289012890 assert ! ( !hir. contains( "InvokeSuper " ) , "InvokeSuper should optimize to CCallVariadic but got:\n {hir}" ) ;
1289112891 assert ! ( hir. contains( "CCallVariadic" ) , "Should optimize to CCallVariadic for variadic cfunc:\n {hir}" ) ;
1289212892
12893- assert_snapshot ! ( hir, @"
12893+ assert_snapshot ! ( hir, @r "
1289412894 fn byteindex@<compiled>:3:
1289512895 bb1():
1289612896 EntryPoint interpreter
@@ -12920,7 +12920,7 @@ mod hir_opt_tests {
1292012920 Jump bb5(v16, v17, v18)
1292112921 bb5(v28:BasicObject, v29:BasicObject, v30:BasicObject):
1292212922 PatchPoint MethodRedefined(String@0x1018, byteindex@0x1020, cme:0x1028)
12923- v44:CPtr = GetLEP
12923+ v44:CPtr = GetEP 0
1292412924 v45:RubyValue = LoadField v44, :_ep_method_entry@0x1050
1292512925 v46:CallableMethodEntry[VALUE(0x1058)] = GuardBitEquals v45, Value(VALUE(0x1058))
1292612926 v47:RubyValue = LoadField v44, :_ep_specval@0x1060
0 commit comments