Skip to content

Commit 6746faa

Browse files
committed
[GR-26028] Set internal generic dispatch for the lengths builtin (#164) and update Truffle import.
PullRequest: fastr/2514
2 parents 2e3e355 + 8dc4e4f commit 6746faa

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# 20.3.0
2+
3+
Bug fixes:
4+
5+
* Set internal generic dispatch for the lengths builtin, #164
6+
7+
New features:
8+
9+
* preliminary implementation of the ALTREP framework
10+
* support for registering custom ALTREP classes
11+
* ALTREP specific C API, e.g., `INTEGER_IS_SORTED`
12+
* serialization and deserialization of custom ALTREP objects is not supported yet
13+
114
# 20.2.0
215

316
Bug fixes:

com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/Lengths.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2020, 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
@@ -36,14 +36,15 @@
3636
import com.oracle.truffle.api.dsl.Specialization;
3737
import com.oracle.truffle.r.nodes.builtin.RBuiltinNode;
3838
import com.oracle.truffle.r.nodes.control.RLengthNode;
39+
import com.oracle.truffle.r.runtime.RDispatch;
3940
import com.oracle.truffle.r.runtime.builtins.RBuiltin;
4041
import com.oracle.truffle.r.runtime.data.RDataFactory;
4142
import com.oracle.truffle.r.runtime.data.RIntVector;
4243
import com.oracle.truffle.r.runtime.data.RList;
4344
import com.oracle.truffle.r.runtime.data.RNull;
4445
import com.oracle.truffle.r.runtime.data.model.RAbstractVector;
4546

46-
@RBuiltin(name = "lengths", kind = INTERNAL, parameterNames = {"x", "use.names"}, behavior = PURE)
47+
@RBuiltin(name = "lengths", kind = INTERNAL, dispatch = RDispatch.INTERNAL_GENERIC, parameterNames = {"x", "use.names"}, behavior = PURE)
4748
public abstract class Lengths extends RBuiltinNode.Arg2 {
4849

4950
@Child private RLengthNode lengthNode;

mx.fastr/suite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"subdir" : True,
1010
# The version must be the same as the version of Sulong
1111
# TRUFFLE REVISION (note: this is a marker for script that can update this)
12-
"version" : "c28201d846702acff38cae0910efc5a4069ea4e0",
12+
"version" : "db6bcb241f4c0d64f03febe9dda24631db1b4e74",
1313
"urls" : [
1414
{"url" : "https://github.com/graalvm/graal", "kind" : "git"},
1515
{"url" : "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind" : "binary"},
@@ -20,7 +20,7 @@
2020
"subdir" : True,
2121
# The version must be the same as the version of Truffle
2222
# TRUFFLE REVISION (note: this is a marker for script that can update this)
23-
"version" : "c28201d846702acff38cae0910efc5a4069ea4e0",
23+
"version" : "db6bcb241f4c0d64f03febe9dda24631db1b4e74",
2424
"urls" : [
2525
{"url" : "https://github.com/graalvm/graal", "kind" : "git"},
2626
{"url" : "https://curio.ssw.jku.at/nexus/content/repositories/snapshots", "kind" : "binary"},

0 commit comments

Comments
 (0)