Skip to content

Commit 14224f1

Browse files
committed
Adopt switching from BlockDefinitionNode to BlockDefinitionNodeGen
1 parent 8fb9237 commit 14224f1

File tree

71 files changed

+72
-288
lines changed

Some content is hidden

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

71 files changed

+72
-288
lines changed

spec/truffle/parsing/fixtures/END.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,14 @@ ast: |
5050
value = false
5151
]
5252
block =
53-
BlockDefinitionNode
53+
BlockDefinitionNodeGen
5454
attributes:
5555
breakID = org.truffleruby.language.control.BreakID@...
5656
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
5757
flags = 0
5858
frameOnStackMarkerSlot = 2
5959
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=5, characters=END {), staticLexicalScope = :: Object, arity = Arity{preRequired = 0, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [], requiredKeywordArgumentsCount = 0, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [])
6060
type = PROC
61-
children:
62-
readSpecialVariableStorageNode =
63-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
6461
call targets:
6562
RubyProcRootNode
6663
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,14 @@ ruby: |
1010
proc do |&bar|
1111
end
1212
ast: |
13-
BlockDefinitionNode
13+
BlockDefinitionNodeGen
1414
attributes:
1515
breakID = org.truffleruby.language.control.BreakID@...
1616
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
1717
flags = 0
1818
frameOnStackMarkerSlot = 2
1919
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=14, characters=proc do |&bar|), staticLexicalScope = :: Object, arity = Arity{preRequired = 0, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [], requiredKeywordArgumentsCount = 0, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = bar, type = block)])
2020
type = PROC
21-
children:
22-
readSpecialVariableStorageNode =
23-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2421
call targets:
2522
RubyProcRootNode
2623
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ ruby: |
1212
proc do |a:, b:, **other|
1313
end
1414
ast: |
15-
BlockDefinitionNode
15+
BlockDefinitionNodeGen
1616
attributes:
1717
breakID = org.truffleruby.language.control.BreakID@...
1818
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
1919
flags = 0
2020
frameOnStackMarkerSlot = 2
2121
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=25, characters=proc do |a:, b:, **other|), staticLexicalScope = :: Object, arity = Arity{preRequired = 0, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [a, b], requiredKeywordArgumentsCount = 2, hasKeywordsRest = true}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = keyreq), ArgumentDescriptor(name = b, type = keyreq), ArgumentDescriptor(name = other, type = keyrest)])
2222
type = PROC
23-
children:
24-
readSpecialVariableStorageNode =
25-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2623
call targets:
2724
RubyProcRootNode
2825
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ ruby: |
1313
proc do |a:, b:, **|
1414
end
1515
ast: |
16-
BlockDefinitionNode
16+
BlockDefinitionNodeGen
1717
attributes:
1818
breakID = org.truffleruby.language.control.BreakID@...
1919
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
2020
flags = 0
2121
frameOnStackMarkerSlot = 2
2222
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=20, characters=proc do |a:, b:, **|), staticLexicalScope = :: Object, arity = Arity{preRequired = 0, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [a, b], requiredKeywordArgumentsCount = 2, hasKeywordsRest = true}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = keyreq), ArgumentDescriptor(name = b, type = keyreq), ArgumentDescriptor(name = %kwrest, type = keyrest)])
2323
type = PROC
24-
children:
25-
readSpecialVariableStorageNode =
26-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2724
call targets:
2825
RubyProcRootNode
2926
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ ruby: |
1111
proc do |a:, b:|
1212
end
1313
ast: |
14-
BlockDefinitionNode
14+
BlockDefinitionNodeGen
1515
attributes:
1616
breakID = org.truffleruby.language.control.BreakID@...
1717
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
1818
flags = 0
1919
frameOnStackMarkerSlot = 2
2020
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=16, characters=proc do |a:, b:|), staticLexicalScope = :: Object, arity = Arity{preRequired = 0, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [a, b], requiredKeywordArgumentsCount = 2, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = keyreq), ArgumentDescriptor(name = b, type = keyreq)])
2121
type = PROC
22-
children:
23-
readSpecialVariableStorageNode =
24-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2522
call targets:
2623
RubyProcRootNode
2724
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ ruby: |
1313
proc do |a:, b: 42, c:, d: 100500|
1414
end
1515
ast: |
16-
BlockDefinitionNode
16+
BlockDefinitionNodeGen
1717
attributes:
1818
breakID = org.truffleruby.language.control.BreakID@...
1919
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
2020
flags = 0
2121
frameOnStackMarkerSlot = 2
2222
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=34, characters=proc do |a:, b: 42, c:, d: 100500|), staticLexicalScope = :: Object, arity = Arity{preRequired = 0, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [a, c, b, d], requiredKeywordArgumentsCount = 2, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = keyreq), ArgumentDescriptor(name = b, type = key), ArgumentDescriptor(name = c, type = keyreq), ArgumentDescriptor(name = d, type = key)])
2323
type = PROC
24-
children:
25-
readSpecialVariableStorageNode =
26-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2724
call targets:
2825
RubyProcRootNode
2926
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ ruby: |
1212
proc do |a, b=42, c=100500|
1313
end
1414
ast: |
15-
BlockDefinitionNode
15+
BlockDefinitionNodeGen
1616
attributes:
1717
breakID = org.truffleruby.language.control.BreakID@...
1818
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
1919
flags = 0
2020
frameOnStackMarkerSlot = 2
2121
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=27, characters=proc do |a, b=42, c=100500|), staticLexicalScope = :: Object, arity = Arity{preRequired = 1, optional = 2, hasRest = false, postRequired = 0, keywordArguments = [], requiredKeywordArgumentsCount = 0, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = req), ArgumentDescriptor(name = b, type = opt), ArgumentDescriptor(name = c, type = opt)])
2222
type = PROC
23-
children:
24-
readSpecialVariableStorageNode =
25-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2623
call targets:
2724
RubyProcRootNode
2825
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,14 @@ ruby: |
1212
proc do |a, b, c|
1313
end
1414
ast: |
15-
BlockDefinitionNode
15+
BlockDefinitionNodeGen
1616
attributes:
1717
breakID = org.truffleruby.language.control.BreakID@...
1818
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
1919
flags = 0
2020
frameOnStackMarkerSlot = 2
2121
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=17, characters=proc do |a, b, c|), staticLexicalScope = :: Object, arity = Arity{preRequired = 3, optional = 0, hasRest = false, postRequired = 0, keywordArguments = [], requiredKeywordArgumentsCount = 0, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = req), ArgumentDescriptor(name = b, type = req), ArgumentDescriptor(name = c, type = req)])
2222
type = PROC
23-
children:
24-
readSpecialVariableStorageNode =
25-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2623
call targets:
2724
RubyProcRootNode
2825
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ ruby: |
1414
proc do |a, b, *c, d, f|
1515
end
1616
ast: |
17-
BlockDefinitionNode
17+
BlockDefinitionNodeGen
1818
attributes:
1919
breakID = org.truffleruby.language.control.BreakID@...
2020
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
2121
flags = 0
2222
frameOnStackMarkerSlot = 2
2323
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=24, characters=proc do |a, b, *c, d, f|), staticLexicalScope = :: Object, arity = Arity{preRequired = 2, optional = 0, hasRest = true, postRequired = 2, keywordArguments = [], requiredKeywordArgumentsCount = 0, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = req), ArgumentDescriptor(name = b, type = req), ArgumentDescriptor(name = c, type = rest), ArgumentDescriptor(name = d, type = req), ArgumentDescriptor(name = f, type = req)])
2424
type = PROC
25-
children:
26-
readSpecialVariableStorageNode =
27-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2825
call targets:
2926
RubyProcRootNode
3027
attributes:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ ruby: |
1414
proc do |a, b, *, d, f|
1515
end
1616
ast: |
17-
BlockDefinitionNode
17+
BlockDefinitionNodeGen
1818
attributes:
1919
breakID = org.truffleruby.language.control.BreakID@...
2020
callTargets = ProcCallTargets(callTargetForProc = block in <top (required)>, callTargetForLambda = null, altCallTargetCompiler = org.truffleruby.parser.MethodTranslator$$Lambda$.../0x...@...)
2121
flags = 0
2222
frameOnStackMarkerSlot = 2
2323
sharedMethodInfo = SharedMethodInfo(sourceSection = SourceSection(source=<parse_ast> [1 - 1], index=0, length=23, characters=proc do |a, b, *, d, f|), staticLexicalScope = :: Object, arity = Arity{preRequired = 2, optional = 0, hasRest = true, postRequired = 2, keywordArguments = [], requiredKeywordArgumentsCount = 0, hasKeywordsRest = false}, originName = block in <top (required)>, blockDepth = 1, parseName = block in <top (required)>, notes = <top (required)>, argumentDescriptors = [ArgumentDescriptor(name = a, type = req), ArgumentDescriptor(name = b, type = req), ArgumentDescriptor(name = null, type = anonrest), ArgumentDescriptor(name = d, type = req), ArgumentDescriptor(name = f, type = req)])
2424
type = PROC
25-
children:
26-
readSpecialVariableStorageNode =
27-
TruffleKernelNodesFactory$GetSpecialVariableStorageNodeGen
2825
call targets:
2926
RubyProcRootNode
3027
attributes:

0 commit comments

Comments
 (0)