diff --git a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/FixedAttributeAccessNode.java b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/FixedAttributeAccessNode.java index 325b73821631d4ac1071d8dead3ec202d76ef530..9a4a27636eeb72b5c75a2b94d04b9f07fa02ccde 100644 --- a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/FixedAttributeAccessNode.java +++ b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/FixedAttributeAccessNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -35,5 +35,4 @@ public abstract class FixedAttributeAccessNode extends AttributeAccessNode { assert name.intern() == name; this.name = name; } - } diff --git a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetAttributeNode.java b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetAttributeNode.java index 858530667ff7dc7246205f084dd710e3e0b2d631..00cbacb9d148fba16704a411e4b779ec8e965352 100644 --- a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetAttributeNode.java +++ b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetAttributeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -57,12 +57,11 @@ public abstract class GetAttributeNode extends AttributeAccessNode { @Specialization(limit = "3", // guards = {"cachedName.equals(name)", "shapeCheck(shape, attrs)"}, // assumptions = {"shape.getValidAssumption()"}) - @SuppressWarnings("unused") - protected Object getAttrCached(DynamicObject attrs, String name, - @Cached("name") String cachedName, + protected Object getAttrCached(DynamicObject attrs, @SuppressWarnings("unused") String name, + @SuppressWarnings("unused") @Cached("name") String cachedName, @Cached("lookupShape(attrs)") Shape shape, @Cached("lookupLocation(shape, name)") Location location) { - return location == null ? null : location.get(attrs); + return location == null ? null : location.get(attrs, shape); } @TruffleBoundary @@ -96,5 +95,4 @@ public abstract class GetAttributeNode extends AttributeAccessNode { return recursive.execute(attributes, name); } - } diff --git a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetFixedAttributeNode.java b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetFixedAttributeNode.java index 5b1b1963faebb517b9f6156dad202f17cfa632b8..e003117e424bf6b61013db3770d28b5396b9286c 100644 --- a/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetFixedAttributeNode.java +++ b/com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/attributes/GetFixedAttributeNode.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -81,11 +81,10 @@ public abstract class GetFixedAttributeNode extends FixedAttributeAccessNode { @Specialization(limit = "3", // guards = {"shapeCheck(shape, attrs)"}, // assumptions = {"shape.getValidAssumption()"}) - @SuppressWarnings("unused") protected Object getAttrCached(DynamicObject attrs, @Cached("lookupShape(attrs)") Shape shape, @Cached("lookupLocation(shape, name)") Location location) { - return location == null ? null : location.get(attrs); + return location == null ? null : location.get(attrs, shape); } @Specialization(contains = "getAttrCached") @@ -119,5 +118,4 @@ public abstract class GetFixedAttributeNode extends FixedAttributeAccessNode { return recursive.execute(attributes); } - }