Skip to content

Commit 8fb572c

Browse files
author
Pavel Marek
committed
[GR-28570] Remove shareable field from RAbstractVector.
PullRequest: fastr/2629
2 parents 8d754b3 + 8d9ac1f commit 8fb572c

17 files changed

+62
-26
lines changed

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RComplexArrayVectorData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import com.oracle.truffle.r.runtime.ops.na.NACheck;
4545

4646
@ExportLibrary(VectorDataLibrary.class)
47-
class RComplexArrayVectorData implements TruffleObject {
47+
class RComplexArrayVectorData implements TruffleObject, ShareableVectorData {
4848
private final double[] data;
4949
private boolean complete;
5050

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RComplexNativeVectorData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@
3737
import com.oracle.truffle.r.runtime.ops.na.NACheck;
3838

3939
@ExportLibrary(VectorDataLibrary.class)
40-
public class RComplexNativeVectorData implements TruffleObject {
40+
public class RComplexNativeVectorData implements TruffleObject, ShareableVectorData {
4141
// We need the vector, so that we can easily use the existing NativeDataAccess methods
4242
// TODO: this field should be replaced with address/length fields and
4343
// the address/length fields and logic should be removed from NativeMirror

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RDoubleArrayVectorData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import com.oracle.truffle.r.runtime.ops.na.NACheck;
4545

4646
@ExportLibrary(VectorDataLibrary.class)
47-
public class RDoubleArrayVectorData implements TruffleObject {
47+
public class RDoubleArrayVectorData implements TruffleObject, ShareableVectorData {
4848
private final double[] data;
4949
private boolean complete;
5050

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RDoubleNativeVectorData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@
3737
import com.oracle.truffle.r.runtime.ops.na.NACheck;
3838

3939
@ExportLibrary(VectorDataLibrary.class)
40-
public class RDoubleNativeVectorData implements TruffleObject {
40+
public class RDoubleNativeVectorData implements TruffleObject, ShareableVectorData {
4141
// We need the vector, so that we can easily use the existing NativeDataAccess methods
4242
// TODO: this field should be replaced with address/length fields and
4343
// the address/length fields and logic should be removed from NativeMirror

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RIntArrayVectorData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import com.oracle.truffle.r.runtime.ops.na.NACheck;
4545

4646
@ExportLibrary(VectorDataLibrary.class)
47-
public class RIntArrayVectorData implements TruffleObject {
47+
public class RIntArrayVectorData implements TruffleObject, ShareableVectorData {
4848
private final int[] data;
4949
private boolean complete;
5050

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RIntNativeVectorData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@
3737
import com.oracle.truffle.r.runtime.ops.na.NACheck;
3838

3939
@ExportLibrary(VectorDataLibrary.class)
40-
public class RIntNativeVectorData implements TruffleObject {
40+
public class RIntNativeVectorData implements TruffleObject, ShareableVectorData {
4141
// We need the vector, so that we can easily use the existing NativeDataAccess methods
4242
// TODO: this field should be replaced with address/length fields and
4343
// the address/length fields and logic should be removed from NativeMirror

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RListArrayDataLibrary.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,7 +39,7 @@
3939
import com.oracle.truffle.r.runtime.ops.na.NACheck;
4040

4141
@ExportLibrary(value = VectorDataLibrary.class, receiverType = Object[].class)
42-
public class RListArrayDataLibrary {
42+
public class RListArrayDataLibrary implements ShareableVectorData {
4343
@ExportMessage
4444
public static NACheck getNACheck(@SuppressWarnings("unused") Object[] receiver) {
4545
return NACheck.getEnabled();

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RListNativeData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@
3737
import com.oracle.truffle.r.runtime.ops.na.NACheck;
3838

3939
@ExportLibrary(VectorDataLibrary.class)
40-
public class RListNativeData implements TruffleObject {
40+
public class RListNativeData implements TruffleObject, ShareableVectorData {
4141
// We need the vector, so that we can easily use the existing NativeDataAccess methods
4242
// TODO: this field should be replaced with address/length fields and
4343
// the address/length fields and logic should be removed from NativeMirror

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RLogicalArrayVectorData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import com.oracle.truffle.r.runtime.ops.na.NACheck;
4545

4646
@ExportLibrary(VectorDataLibrary.class)
47-
class RLogicalArrayVectorData implements TruffleObject {
47+
class RLogicalArrayVectorData implements TruffleObject, ShareableVectorData {
4848
private final byte[] data;
4949
private boolean complete;
5050

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data/RLogicalNativeVectorData.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -38,7 +38,7 @@
3838
import com.oracle.truffle.r.runtime.ops.na.NACheck;
3939

4040
@ExportLibrary(VectorDataLibrary.class)
41-
public class RLogicalNativeVectorData implements TruffleObject {
41+
public class RLogicalNativeVectorData implements TruffleObject, ShareableVectorData {
4242
// We need the vector, so that we can easily use the existing NativeDataAccess methods
4343
// TODO: this field should be replaced with address/length fields and
4444
// the address/length fields and logic should be removed from NativeMirror

0 commit comments

Comments
 (0)