|
58 | 58 | import com.oracle.graal.python.lib.PyObjectGetIter; |
59 | 59 | import com.oracle.graal.python.lib.PyObjectHashNode; |
60 | 60 | import com.oracle.graal.python.nodes.PGuards; |
61 | | -import com.oracle.graal.python.nodes.bytecode.PBytecodeRootNode; |
62 | 61 | import com.oracle.graal.python.nodes.bytecode_dsl.PBytecodeDSLRootNode; |
63 | 62 | import com.oracle.graal.python.nodes.function.PythonBuiltinBaseNode; |
64 | 63 | import com.oracle.graal.python.nodes.function.builtins.PythonBinaryBuiltinNode; |
@@ -310,10 +309,10 @@ static Object lines(PCode self) { |
310 | 309 | CodeUnit co = self.getCodeUnit(); |
311 | 310 | if (co != null) { |
312 | 311 | if (PythonOptions.ENABLE_BYTECODE_DSL_INTERPRETER) { |
313 | | - BytecodeIntrospection introspectionData = ((PBytecodeDSLRootNode) self.getRootNode()).getIntrospectionData(); |
| 312 | + BytecodeIntrospection introspectionData = ((PBytecodeDSLRootNode) self.getRootNodeForExtraction()).getIntrospectionData(); |
314 | 313 | List<PTuple> lines = new ArrayList<>(); |
315 | 314 | for (SourceInformation sourceInfo : introspectionData.getSourceInformation()) { |
316 | | - lines.add(factory.createTuple(new int[]{sourceInfo.getStartBci(), sourceInfo.getEndBci(), sourceInfo.getSourceSection().getStartLine()})); |
| 315 | + lines.add(factory.createTuple(new int[]{sourceInfo.getBeginBci(), sourceInfo.getEndBci(), sourceInfo.getSourceSection().getStartLine()})); |
317 | 316 | } |
318 | 317 | tuple = factory.createTuple(lines.toArray()); |
319 | 318 | } else { |
@@ -354,7 +353,7 @@ Object positions(PCode self) { |
354 | 353 | if (co != null) { |
355 | 354 | List<PTuple> lines = new ArrayList<>(); |
356 | 355 | if (PythonOptions.ENABLE_BYTECODE_DSL_INTERPRETER) { |
357 | | - PBytecodeDSLRootNode rootNode = (PBytecodeDSLRootNode) self.getRootNode(); |
| 356 | + PBytecodeDSLRootNode rootNode = (PBytecodeDSLRootNode) self.getRootNodeForExtraction(); |
358 | 357 | for (Instruction instruction : rootNode.getIntrospectionData().getInstructions()) { |
359 | 358 | SourceSection section = rootNode.getSourceSectionForLocation(instruction.getLocation()); |
360 | 359 | lines.add(factory.createTuple(new int[]{ |
|
0 commit comments