File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/statement Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 27
27
28
28
import com .oracle .graal .python .nodes .expression .ExpressionNode ;
29
29
import com .oracle .truffle .api .frame .VirtualFrame ;
30
+ import com .oracle .truffle .api .instrumentation .GenerateWrapper ;
31
+ import com .oracle .truffle .api .instrumentation .ProbeNode ;
30
32
33
+ @ GenerateWrapper
31
34
public class ImportNode extends AbstractImportNode {
32
35
private final String moduleName ;
33
36
34
37
public ImportNode (String moduleName ) {
35
38
this .moduleName = moduleName ;
36
39
}
37
40
41
+ public ImportNode (ImportNode original ) {
42
+ this .moduleName = original .moduleName ;
43
+ }
44
+
38
45
@ Override
39
46
public void executeVoid (VirtualFrame frame ) {
40
47
importModule (moduleName );
@@ -57,4 +64,9 @@ public Object execute(VirtualFrame frame) {
57
64
public ExpressionNode asExpression () {
58
65
return new ImportExpression (this );
59
66
}
67
+
68
+ @ Override
69
+ public WrapperNode createWrapper (ProbeNode probe ) {
70
+ return new ImportNodeWrapper (this , this , probe );
71
+ }
60
72
}
You can’t perform that action at this time.
0 commit comments