Skip to content

Commit 1175b5b

Browse files
committed
CalleeContext node is not printed in the golden files.
1 parent 28be5cf commit 1175b5b

File tree

480 files changed

+530
-2696
lines changed

Some content is hidden

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

480 files changed

+530
-2696
lines changed

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/ParserTestSuite.java

Lines changed: 0 additions & 55 deletions
This file was deleted.

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/ParserTreePrinter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
import com.oracle.graal.python.nodes.statement.ImportFromNode;
7474
import com.oracle.graal.python.nodes.statement.ImportNode;
7575
import com.oracle.graal.python.parser.ExecutionCellSlots;
76+
import com.oracle.graal.python.runtime.ExecutionContext;
7677
import com.oracle.truffle.api.frame.FrameDescriptor;
7778
import com.oracle.truffle.api.frame.FrameSlot;
7879
import com.oracle.truffle.api.nodes.Node;
@@ -556,6 +557,10 @@ public boolean visit(Node node) {
556557
visitChildren(node);
557558
return false;
558559
}
560+
if (node instanceof ExecutionContext.CalleeContext) {
561+
// these nodes shouldn't be printed in the result.
562+
return false;
563+
}
559564
if (sb.length() > 0 && sb.charAt(sb.length() - 1) == '\n') {
560565
indent(level);
561566
}

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/PerformanceTests.statistics.txt

Lines changed: 0 additions & 109 deletions
This file was deleted.

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment01.tast

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ ModuleRootNode Name: <module 'assignment01'> SourceSection: [0,5]`a = 1`
1212
WriteNameNodeGen SourceSection: [0,5]`a = 1`
1313
Identifier: a
1414
IntegerLiteralNode SourceSection: [4,5]`1`
15-
Value: 1
16-
CalleeContext SourceSection: None
15+
Value: 1

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment02.tast

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ ModuleRootNode Name: <module 'assignment02'> SourceSection: [0,9]`a = b = 1`
2222
ReadLocalVariableNode SourceSection: None
2323
Frame: [0,<>temp0,Illegal]
2424
ReadVariableFromFrameNodeGen SourceSection: None
25-
EmptyNode SourceSection: None
26-
CalleeContext SourceSection: None
25+
EmptyNode SourceSection: None

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment03.tast

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ ModuleRootNode Name: <module 'assignment03'> SourceSection: [0,25]`a = 0↵b = a
3131
ReadNameNodeGen SourceSection: [20,21]`a`
3232
Identifier: a
3333
ReadNameNodeGen SourceSection: [24,25]`b`
34-
Identifier: b
35-
CalleeContext SourceSection: None
34+
Identifier: b

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment04.tast

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ ModuleRootNode Name: <module 'assignment04'> SourceSection: [0,17]`a = b = c = d
3232
ReadLocalVariableNode SourceSection: None
3333
Frame: [0,<>temp0,Illegal]
3434
ReadVariableFromFrameNodeGen SourceSection: None
35-
EmptyNode SourceSection: None
36-
CalleeContext SourceSection: None
35+
EmptyNode SourceSection: None

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment05.tast

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ ModuleRootNode Name: <module 'assignment05'> SourceSection: [0,17]`a, b, c = 1,
4444
Identifier: c
4545
ReadLocalVariableNode SourceSection: None
4646
Frame: [2,<>temp2,Illegal]
47-
ReadVariableFromFrameNodeGen SourceSection: None
48-
CalleeContext SourceSection: None
47+
ReadVariableFromFrameNodeGen SourceSection: None

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment06.tast

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,4 @@ ModuleRootNode Name: <module 'assignment06'> SourceSection: [0,29]`def fn():↵
7171
ReadVariableFromFrameNodeGen SourceSection: None
7272
Return Expresssion: ReadLocalVariableNode SourceSection: None
7373
Frame: [5,<return_val>,Illegal]
74-
ReadVariableFromFrameNodeGen SourceSection: None
75-
CalleeContext SourceSection: None
76-
CalleeContext SourceSection: None
74+
ReadVariableFromFrameNodeGen SourceSection: None

graalpython/com.oracle.graal.python.test/testData/goldenFiles/AssignmentTests/assignment07.tast

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,4 @@ ModuleRootNode Name: <module 'assignment07'> SourceSection: [0,29]`def fn():↵
7777
ReadVariableFromFrameNodeGen SourceSection: None
7878
Return Expresssion: ReadLocalVariableNode SourceSection: None
7979
Frame: [6,<return_val>,Illegal]
80-
ReadVariableFromFrameNodeGen SourceSection: None
81-
CalleeContext SourceSection: None
82-
CalleeContext SourceSection: None
80+
ReadVariableFromFrameNodeGen SourceSection: None

0 commit comments

Comments
 (0)