Skip to content

Commit fab28b9

Browse files
committed
YAML fixtures - annotate frame slot attributes with local variable names
1 parent cdcaf82 commit fab28b9

File tree

213 files changed

+784
-723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

213 files changed

+784
-723
lines changed

spec/truffle/parsing/fixtures/block/argument_descriptors/with_block.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ ast: |
4242
WriteLocalVariableNode
4343
attributes:
4444
flags = 0
45-
frameSlot = 0
45+
frameSlot = 0 # (self)
4646
children:
4747
valueNode =
4848
ProfileArgumentNodeGen

spec/truffle/parsing/fixtures/block/argument_descriptors/with_double_splat_operator.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ast: |
4444
WriteLocalVariableNode
4545
attributes:
4646
flags = 0
47-
frameSlot = 0
47+
frameSlot = 0 # (self)
4848
children:
4949
valueNode =
5050
ProfileArgumentNodeGen
@@ -58,7 +58,7 @@ ast: |
5858
WriteLocalVariableNode
5959
attributes:
6060
flags = 0
61-
frameSlot = 1
61+
frameSlot = 1 # a
6262
children:
6363
valueNode =
6464
ReadKeywordArgumentNodeGen
@@ -71,7 +71,7 @@ ast: |
7171
WriteLocalVariableNode
7272
attributes:
7373
flags = 0
74-
frameSlot = 2
74+
frameSlot = 2 # b
7575
children:
7676
valueNode =
7777
ReadKeywordArgumentNodeGen
@@ -84,7 +84,7 @@ ast: |
8484
WriteLocalVariableNode
8585
attributes:
8686
flags = 0
87-
frameSlot = 3
87+
frameSlot = 3 # other
8888
children:
8989
valueNode =
9090
ReadKeywordRestArgumentNode

spec/truffle/parsing/fixtures/block/argument_descriptors/with_double_splat_operator_without_name.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ast: |
4545
WriteLocalVariableNode
4646
attributes:
4747
flags = 0
48-
frameSlot = 0
48+
frameSlot = 0 # (self)
4949
children:
5050
valueNode =
5151
ProfileArgumentNodeGen
@@ -59,7 +59,7 @@ ast: |
5959
WriteLocalVariableNode
6060
attributes:
6161
flags = 0
62-
frameSlot = 1
62+
frameSlot = 1 # a
6363
children:
6464
valueNode =
6565
ReadKeywordArgumentNodeGen
@@ -72,7 +72,7 @@ ast: |
7272
WriteLocalVariableNode
7373
attributes:
7474
flags = 0
75-
frameSlot = 2
75+
frameSlot = 2 # b
7676
children:
7777
valueNode =
7878
ReadKeywordArgumentNodeGen
@@ -85,7 +85,7 @@ ast: |
8585
WriteLocalVariableNode
8686
attributes:
8787
flags = 0
88-
frameSlot = 3
88+
frameSlot = 3 # %kwrest
8989
children:
9090
valueNode =
9191
ReadKeywordRestArgumentNode

spec/truffle/parsing/fixtures/block/argument_descriptors/with_keyword_arguments.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ast: |
4343
WriteLocalVariableNode
4444
attributes:
4545
flags = 0
46-
frameSlot = 0
46+
frameSlot = 0 # (self)
4747
children:
4848
valueNode =
4949
ProfileArgumentNodeGen
@@ -57,7 +57,7 @@ ast: |
5757
WriteLocalVariableNode
5858
attributes:
5959
flags = 0
60-
frameSlot = 1
60+
frameSlot = 1 # a
6161
children:
6262
valueNode =
6363
ReadKeywordArgumentNodeGen
@@ -70,7 +70,7 @@ ast: |
7070
WriteLocalVariableNode
7171
attributes:
7272
flags = 0
73-
frameSlot = 2
73+
frameSlot = 2 # b
7474
children:
7575
valueNode =
7676
ReadKeywordArgumentNodeGen

spec/truffle/parsing/fixtures/block/argument_descriptors/with_numbered_parameters.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ ast: |
6464
WriteLocalVariableNode
6565
attributes:
6666
flags = 0
67-
frameSlot = 5
67+
frameSlot = 5 # %destructure_1
6868
children:
6969
valueNode =
7070
SplatCastNodeGen
@@ -99,7 +99,7 @@ ast: |
9999
ReadLocalVariableNode
100100
attributes:
101101
flags = 0
102-
frameSlot = 5
102+
frameSlot = 5 # %destructure_1
103103
type = FRAME_LOCAL
104104
]
105105
elseBody =
@@ -111,7 +111,7 @@ ast: |
111111
WriteLocalVariableNode
112112
attributes:
113113
flags = 0
114-
frameSlot = 0
114+
frameSlot = 0 # (self)
115115
children:
116116
valueNode =
117117
ProfileArgumentNodeGen
@@ -125,7 +125,7 @@ ast: |
125125
WriteLocalVariableNode
126126
attributes:
127127
flags = 0
128-
frameSlot = 1
128+
frameSlot = 1 # _1
129129
children:
130130
valueNode =
131131
ProfileArgumentNodeGen
@@ -142,7 +142,7 @@ ast: |
142142
WriteLocalVariableNode
143143
attributes:
144144
flags = 0
145-
frameSlot = 2
145+
frameSlot = 2 # _2
146146
children:
147147
valueNode =
148148
ProfileArgumentNodeGen
@@ -159,7 +159,7 @@ ast: |
159159
WriteLocalVariableNode
160160
attributes:
161161
flags = 0
162-
frameSlot = 3
162+
frameSlot = 3 # _3
163163
children:
164164
valueNode =
165165
ProfileArgumentNodeGen
@@ -176,7 +176,7 @@ ast: |
176176
WriteLocalVariableNode
177177
attributes:
178178
flags = 0
179-
frameSlot = 4
179+
frameSlot = 4 # _4
180180
children:
181181
valueNode =
182182
ProfileArgumentNodeGen
@@ -200,7 +200,7 @@ ast: |
200200
WriteLocalVariableNode
201201
attributes:
202202
flags = 0
203-
frameSlot = 0
203+
frameSlot = 0 # (self)
204204
children:
205205
valueNode =
206206
ProfileArgumentNodeGen
@@ -214,7 +214,7 @@ ast: |
214214
WriteLocalVariableNode
215215
attributes:
216216
flags = 0
217-
frameSlot = 1
217+
frameSlot = 1 # _1
218218
children:
219219
valueNode =
220220
ArrayIndexNodesFactory$ReadConstantIndexNodeGen
@@ -226,12 +226,12 @@ ast: |
226226
ReadLocalVariableNode
227227
attributes:
228228
flags = 0
229-
frameSlot = 5
229+
frameSlot = 5 # %destructure_1
230230
type = FRAME_LOCAL
231231
WriteLocalVariableNode
232232
attributes:
233233
flags = 0
234-
frameSlot = 2
234+
frameSlot = 2 # _2
235235
children:
236236
valueNode =
237237
ArrayIndexNodesFactory$ReadConstantIndexNodeGen
@@ -243,12 +243,12 @@ ast: |
243243
ReadLocalVariableNode
244244
attributes:
245245
flags = 0
246-
frameSlot = 5
246+
frameSlot = 5 # %destructure_1
247247
type = FRAME_LOCAL
248248
WriteLocalVariableNode
249249
attributes:
250250
flags = 0
251-
frameSlot = 3
251+
frameSlot = 3 # _3
252252
children:
253253
valueNode =
254254
ArrayIndexNodesFactory$ReadConstantIndexNodeGen
@@ -260,12 +260,12 @@ ast: |
260260
ReadLocalVariableNode
261261
attributes:
262262
flags = 0
263-
frameSlot = 5
263+
frameSlot = 5 # %destructure_1
264264
type = FRAME_LOCAL
265265
WriteLocalVariableNode
266266
attributes:
267267
flags = 0
268-
frameSlot = 4
268+
frameSlot = 4 # _4
269269
children:
270270
valueNode =
271271
ArrayIndexNodesFactory$ReadConstantIndexNodeGen
@@ -277,12 +277,12 @@ ast: |
277277
ReadLocalVariableNode
278278
attributes:
279279
flags = 0
280-
frameSlot = 5
280+
frameSlot = 5 # %destructure_1
281281
type = FRAME_LOCAL
282282
]
283283
ReadLocalVariableNode
284284
attributes:
285285
flags = 1
286-
frameSlot = 4
286+
frameSlot = 4 # _4
287287
type = FRAME_LOCAL
288288
]

spec/truffle/parsing/fixtures/block/argument_descriptors/with_optional_keyword_arguments.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ast: |
4545
WriteLocalVariableNode
4646
attributes:
4747
flags = 0
48-
frameSlot = 0
48+
frameSlot = 0 # (self)
4949
children:
5050
valueNode =
5151
ProfileArgumentNodeGen
@@ -59,7 +59,7 @@ ast: |
5959
WriteLocalVariableNode
6060
attributes:
6161
flags = 0
62-
frameSlot = 1
62+
frameSlot = 1 # a
6363
children:
6464
valueNode =
6565
ReadKeywordArgumentNodeGen
@@ -72,7 +72,7 @@ ast: |
7272
WriteLocalVariableNode
7373
attributes:
7474
flags = 0
75-
frameSlot = 2
75+
frameSlot = 2 # b
7676
children:
7777
valueNode =
7878
ReadKeywordArgumentNodeGen
@@ -90,7 +90,7 @@ ast: |
9090
WriteLocalVariableNode
9191
attributes:
9292
flags = 0
93-
frameSlot = 3
93+
frameSlot = 3 # c
9494
children:
9595
valueNode =
9696
ReadKeywordArgumentNodeGen
@@ -103,7 +103,7 @@ ast: |
103103
WriteLocalVariableNode
104104
attributes:
105105
flags = 0
106-
frameSlot = 4
106+
frameSlot = 4 # d
107107
children:
108108
valueNode =
109109
ReadKeywordArgumentNodeGen

0 commit comments

Comments
 (0)