Skip to content

Commit 12cd32b

Browse files
committed
Use OrLazyValueDefinedNode instead of OrNode for fully qualified constants, attribute and reference optional assignment
1 parent 56a3aea commit 12cd32b

11 files changed

+23
-14
lines changed

spec/truffle/parsing/fixtures/operators/||=/attribute_assignment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ ast: |
4747
SelfNode
4848
attributes:
4949
flags = 0
50-
OrNodeGen
50+
OrLazyValueDefinedNodeGen
5151
attributes:
5252
flags = 0
53+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
5354
children:
5455
left =
5556
RubyCallNode

spec/truffle/parsing/fixtures/operators/||=/attribute_assignment_with_explicit_self_receiver.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ ast: |
1515
flags = 1
1616
children:
1717
child =
18-
OrNodeGen
18+
OrLazyValueDefinedNodeGen
1919
attributes:
2020
flags = 0
21+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
2122
children:
2223
left =
2324
RubyCallNode

spec/truffle/parsing/fixtures/operators/||=/attribute_assignment_with_safe_navigation_operator.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ ast: |
7373
frameSlot = 2 # %value_0
7474
type = FRAME_LOCAL
7575
thenBody =
76-
OrNodeGen
76+
OrLazyValueDefinedNodeGen
7777
attributes:
7878
flags = 0
79+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
7980
children:
8081
left =
8182
RubyCallNode

spec/truffle/parsing/fixtures/operators/||=/reference_assignment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,10 @@ ast: |
7878
SelfNode
7979
attributes:
8080
flags = 0
81-
OrNodeGen
81+
OrLazyValueDefinedNodeGen
8282
attributes:
8383
flags = 0
84+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
8485
children:
8586
left =
8687
InlinedIndexGetNodeGen

spec/truffle/parsing/fixtures/operators/||=/reference_assignment_with_block_argument.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ ast: |
103103
SelfNode
104104
attributes:
105105
flags = 0
106-
OrNodeGen
106+
OrLazyValueDefinedNodeGen
107107
attributes:
108108
flags = 0
109+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
109110
children:
110111
left =
111112
RubyCallNode

spec/truffle/parsing/fixtures/operators/||=/reference_assignment_with_explicit_self_receiver.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ ast: |
4949
attributes:
5050
flags = 0
5151
value = 42
52-
OrNodeGen
52+
OrLazyValueDefinedNodeGen
5353
attributes:
5454
flags = 0
55+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
5556
children:
5657
left =
5758
InlinedIndexGetNodeGen

spec/truffle/parsing/fixtures/operators/||=/reference_assignment_with_multiple_indexes.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ ast: |
9191
SelfNode
9292
attributes:
9393
flags = 0
94-
OrNodeGen
94+
OrLazyValueDefinedNodeGen
9595
attributes:
9696
flags = 0
97+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
9798
children:
9899
left =
99100
RubyCallNode

spec/truffle/parsing/fixtures/operators/||=/reference_assignment_with_nested_splatted_argument.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ ast: |
9696
SelfNode
9797
attributes:
9898
flags = 0
99-
OrNodeGen
99+
OrLazyValueDefinedNodeGen
100100
attributes:
101101
flags = 0
102+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
102103
children:
103104
left =
104105
RubyCallNode

spec/truffle/parsing/fixtures/operators/||=/reference_assignment_with_splatted_argument.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,10 @@ ast: |
9595
SelfNode
9696
attributes:
9797
flags = 0
98-
OrNodeGen
98+
OrLazyValueDefinedNodeGen
9999
attributes:
100100
flags = 0
101+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
101102
children:
102103
left =
103104
RubyCallNode

spec/truffle/parsing/fixtures/operators/||=/variable_assignments/constant_fully_qualified.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ ast: |
5656
attributes:
5757
lexicalScope = :: Object
5858
name = "FOO"
59-
OrNodeGen
59+
OrLazyValueDefinedNodeGen
6060
attributes:
6161
flags = 0
62+
rightTwiceProfile = org.truffleruby.utils.RunTwiceBranchProfile@...
6263
children:
6364
left =
6465
AndNodeGen

0 commit comments

Comments
 (0)