|
40 | 40 | import com.oracle.graal.python.builtins.objects.function.PArguments;
|
41 | 41 | import com.oracle.graal.python.builtins.objects.module.PythonModule;
|
42 | 42 | import com.oracle.graal.python.builtins.objects.object.ObjectBuiltins.DictNode;
|
43 |
| -import com.oracle.graal.python.builtins.objects.object.ObjectBuiltinsFactory.DictNodeFactory; |
44 | 43 | import com.oracle.graal.python.builtins.objects.object.PythonObject;
|
| 44 | +import com.oracle.graal.python.builtins.objects.object.ObjectBuiltinsFactory.DictNodeFactory; |
45 | 45 | import com.oracle.graal.python.nodes.PRootNode;
|
46 | 46 | import com.oracle.graal.python.nodes.argument.ReadArgumentNode;
|
47 | 47 | import com.oracle.graal.python.nodes.frame.MaterializeFrameNode;
|
@@ -136,7 +136,7 @@ int get(VirtualFrame frame, PFrame self,
|
136 | 136 | // we need to sync the location of the frame if and only if 'self' represents the
|
137 | 137 | // current frame. If 'self' represents another frame on the stack, the location is
|
138 | 138 | // already set
|
139 |
| - if (isCurrentFrameProfile.profile(PArguments.getCurrentFrameInfo(frame) == self.getRef())) { |
| 139 | + if (isCurrentFrameProfile.profile(frame != null && PArguments.getCurrentFrameInfo(frame) == self.getRef())) { |
140 | 140 | PFrame pyFrame = materializeNode.execute(frame, this, false, false);
|
141 | 141 | assert pyFrame == self;
|
142 | 142 | }
|
@@ -205,7 +205,7 @@ Object getUpdating(VirtualFrame frame, PFrame self,
|
205 | 205 | // we need to sync the values of the frame if and only if 'self' represents the current
|
206 | 206 | // frame. If 'self' represents another frame on the stack, the values are already
|
207 | 207 | // refreshed.
|
208 |
| - if (profile.profile(PArguments.getCurrentFrameInfo(frame) == self.getRef())) { |
| 208 | + if (profile.profile(frame != null && PArguments.getCurrentFrameInfo(frame) == self.getRef())) { |
209 | 209 | PFrame pyFrame = materializeNode.execute(frame, false, true, frame);
|
210 | 210 | assert pyFrame == self;
|
211 | 211 | }
|
|
0 commit comments