File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/nodes Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -176,4 +176,8 @@ public static JavaScriptNode getWrappedNode(JavaScriptNode node) {
176176 public static boolean isTaggedNode (Node node ) {
177177 return node instanceof JSTaggedExecutionNode || (node instanceof WrapperNode && ((WrapperNode ) node ).getDelegateNode () instanceof JSTaggedExecutionNode );
178178 }
179+
180+ public static boolean isInputGeneratingNode (Node node ) {
181+ return node instanceof JSInputGeneratingNodeWrapper || (node instanceof WrapperNode && ((WrapperNode ) node ).getDelegateNode () instanceof JSInputGeneratingNodeWrapper );
182+ }
179183}
Original file line number Diff line number Diff line change 6161import com .oracle .truffle .api .library .CachedLibrary ;
6262import com .oracle .truffle .api .object .DynamicObject ;
6363import com .oracle .truffle .api .profiles .ConditionProfile ;
64+ import com .oracle .truffle .js .nodes .JSNodeUtil ;
6465import com .oracle .truffle .js .nodes .JavaScriptNode ;
6566import com .oracle .truffle .js .nodes .instrumentation .JSInputGeneratingNodeWrapper ;
6667import com .oracle .truffle .js .nodes .instrumentation .JSTags ;
@@ -134,7 +135,7 @@ public InstrumentableNode materializeInstrumentableNodes(Set<Class<? extends Tag
134135
135136 private boolean materializationNeeded (Set <Class <? extends Tag >> materializedTags ) {
136137 if (materializedTags .contains (ObjectAllocationTag .class )) {
137- return (!getTarget ().hasSourceSection () && !(getTarget () instanceof JSInputGeneratingNodeWrapper ));
138+ return (!getTarget ().hasSourceSection () && !JSNodeUtil . isInputGeneratingNode (getTarget ()));
138139 }
139140 return false ;
140141 }
You can’t perform that action at this time.
0 commit comments