@@ -110,31 +110,31 @@ public static ReadCallerFrameNode create() {
110
110
return new ReadCallerFrameNode ();
111
111
}
112
112
113
- public final PFrame executeWith (VirtualFrame frame , int level ) {
114
- return executeWith (frame , PArguments .getCurrentFrameInfo (frame ), FrameSelector .SKIP_PYTHON_INTERNAL , level );
113
+ public PFrame executeWith (VirtualFrame frame , int level ) {
114
+ return executeWith (PArguments .getCurrentFrameInfo (frame ), FrameSelector .SKIP_PYTHON_INTERNAL , level );
115
115
}
116
116
117
- public final PFrame executeWith (VirtualFrame frame , FrameSelector selector , int level ) {
118
- return executeWith (frame , PArguments .getCurrentFrameInfo (frame ), selector , level );
117
+ public PFrame executeWith (VirtualFrame frame , FrameSelector selector , int level ) {
118
+ return executeWith (PArguments .getCurrentFrameInfo (frame ), selector , level );
119
119
}
120
120
121
- public final PFrame executeWith (VirtualFrame frame , Frame startFrame , int level ) {
122
- return executeWith (frame , PArguments .getCurrentFrameInfo (startFrame ), FrameSelector .SKIP_PYTHON_INTERNAL , level );
121
+ public PFrame executeWith (Frame startFrame , int level ) {
122
+ return executeWith (PArguments .getCurrentFrameInfo (startFrame ), FrameSelector .SKIP_PYTHON_INTERNAL , level );
123
123
}
124
124
125
- public PFrame executeWith (VirtualFrame frame , PFrame .Reference startFrameInfo , int level ) {
126
- return executeWith (frame , startFrameInfo , FrameSelector .SKIP_PYTHON_INTERNAL , level );
125
+ public PFrame executeWith (PFrame .Reference startFrameInfo , int level ) {
126
+ return executeWith (startFrameInfo , FrameSelector .SKIP_PYTHON_INTERNAL , level );
127
127
}
128
128
129
- public PFrame executeWith (VirtualFrame frame , PFrame .Reference startFrameInfo , FrameInstance .FrameAccess frameAccess , int level ) {
130
- return executeWith (frame , startFrameInfo , frameAccess , FrameSelector .SKIP_PYTHON_INTERNAL , level );
129
+ public PFrame executeWith (PFrame .Reference startFrameInfo , FrameInstance .FrameAccess frameAccess , int level ) {
130
+ return executeWith (startFrameInfo , frameAccess , FrameSelector .SKIP_PYTHON_INTERNAL , level );
131
131
}
132
132
133
- public PFrame executeWith (VirtualFrame frame , PFrame .Reference startFrameInfo , FrameSelector selector , int level ) {
134
- return executeWith (frame , startFrameInfo , FrameInstance .FrameAccess .READ_ONLY , selector , level );
133
+ public PFrame executeWith (PFrame .Reference startFrameInfo , FrameSelector selector , int level ) {
134
+ return executeWith (startFrameInfo , FrameInstance .FrameAccess .READ_ONLY , selector , level );
135
135
}
136
136
137
- public PFrame executeWith (VirtualFrame frame , PFrame .Reference startFrameInfo , FrameInstance .FrameAccess frameAccess , FrameSelector selector , int level ) {
137
+ public PFrame executeWith (PFrame .Reference startFrameInfo , FrameInstance .FrameAccess frameAccess , FrameSelector selector , int level ) {
138
138
PFrame .Reference curFrameInfo = startFrameInfo ;
139
139
if (cachedCallerFrameProfile == null ) {
140
140
CompilerDirectives .transferToInterpreterAndInvalidate ();
@@ -145,7 +145,7 @@ public PFrame executeWith(VirtualFrame frame, PFrame.Reference startFrameInfo, F
145
145
if (callerInfo == null ) {
146
146
Frame callerFrame = getCallerFrame (startFrameInfo , frameAccess , selector , level );
147
147
if (callerFrame != null ) {
148
- return ensureMaterializeNode ().execute (frame , false , true , callerFrame );
148
+ return ensureMaterializeNode ().execute (false , true , callerFrame );
149
149
}
150
150
return null ;
151
151
} else if (!selector .skip (callerInfo )) {
@@ -154,12 +154,12 @@ public PFrame executeWith(VirtualFrame frame, PFrame.Reference startFrameInfo, F
154
154
curFrameInfo = callerInfo ;
155
155
}
156
156
} else {
157
- curFrameInfo = walkLevels (frame , curFrameInfo , frameAccess , selector , level );
157
+ curFrameInfo = walkLevels (curFrameInfo , frameAccess , selector , level );
158
158
}
159
159
return curFrameInfo .getPyFrame ();
160
160
}
161
161
162
- private PFrame .Reference walkLevels (VirtualFrame frame , PFrame .Reference startFrameInfo , FrameInstance .FrameAccess frameAccess , FrameSelector selector , int level ) {
162
+ private PFrame .Reference walkLevels (PFrame .Reference startFrameInfo , FrameInstance .FrameAccess frameAccess , FrameSelector selector , int level ) {
163
163
PFrame .Reference currentFrame = startFrameInfo ;
164
164
for (int i = 0 ; i <= level ;) {
165
165
PFrame .Reference callerInfo = currentFrame .getCallerInfo ();
@@ -169,7 +169,7 @@ private PFrame.Reference walkLevels(VirtualFrame frame, PFrame.Reference startFr
169
169
// At this point, we must 'materialize' the frame. Actually, the Truffle frame
170
170
// is never materialized but we ensure that a corresponding PFrame is created
171
171
// and that the locals and arguments are synced.
172
- ensureMaterializeNode ().execute (frame , false , true , callerFrame );
172
+ ensureMaterializeNode ().execute (false , true , callerFrame );
173
173
return PArguments .getCurrentFrameInfo (callerFrame );
174
174
}
175
175
return PFrame .Reference .EMPTY ;
0 commit comments