Skip to content

Commit 2a812f3

Browse files
committed
add logical value for RIntSeqVectorData
1 parent fd6b203 commit 2a812f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

visualvm/heapviewer.truffle/src/org/graalvm/visualvm/heapviewer/truffle/lang/r/RDetailsProvider.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class RDetailsProvider extends DetailsProvider.Basic {
5151
private static final String RLOGICAL_FQN = "com.oracle.truffle.r.runtime.data.RLogical"; // NOI18N
5252
private static final String RCOMPLEX_VECTOR_FQN = "com.oracle.truffle.r.runtime.data.RComplexVector"; // NOI18N
5353
private static final String RINT_SEQUENCE_FQN = "com.oracle.truffle.r.runtime.data.RIntSequence"; // NOI18N
54+
private static final String RINT_SEQUENCE1_FQN = "com.oracle.truffle.r.runtime.data.RIntSeqVectorData"; // NOI18N
5455
private static final String REXPRESSION_FQN = "com.oracle.truffle.r.runtime.data.RExpression"; // NOI18N
5556
private static final String RWRAPPER_MASK = "com.oracle.truffle.r.runtime.data.RForeignWrapper+"; // NOI18N
5657
private static final String RSYMBOL_MASK = "com.oracle.truffle.r.runtime.data.RSymbol"; //NOI18N
@@ -65,8 +66,9 @@ public class RDetailsProvider extends DetailsProvider.Basic {
6566
private static final byte LOGICAL_NA = -1;
6667

6768
public RDetailsProvider() {
68-
super(RVECTOR_MASK, RABSTRACT_VECTOR_MASK, RSCALAR_VECTOR_MASK, RINT_SEQUENCE_FQN, RWRAPPER_MASK,
69-
RSYMBOL_MASK, RFUNCTION_MASK, RS4OBJECT_MASK, RNULL_MASK, RENVIRONMENT_MASK, CHARSXPWRAPPER_FQN);
69+
super(RVECTOR_MASK, RABSTRACT_VECTOR_MASK, RSCALAR_VECTOR_MASK, RINT_SEQUENCE_FQN,
70+
RINT_SEQUENCE1_FQN, RWRAPPER_MASK, RSYMBOL_MASK, RFUNCTION_MASK,
71+
RS4OBJECT_MASK, RNULL_MASK, RENVIRONMENT_MASK, CHARSXPWRAPPER_FQN);
7072
}
7173

7274
public String getDetailsString(String className, Instance instance, Heap heap) {
@@ -157,7 +159,7 @@ public String getDetailsString(String className, Instance instance, Heap heap) {
157159
if (RSCALAR_VECTOR_MASK.equals(className)) {
158160
return getScalar(instance, heap);
159161
}
160-
if (RINT_SEQUENCE_FQN.equals(className)) {
162+
if (RINT_SEQUENCE_FQN.equals(className) || RINT_SEQUENCE1_FQN.equals(className)) {
161163
Integer stride = (Integer) instance.getValueOfField("stride"); // NOI18N
162164
Integer start = (Integer) instance.getValueOfField("start"); // NOI18N
163165
Integer len = (Integer) instance.getValueOfField("length"); // NOI18N

0 commit comments

Comments
 (0)