Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julien Lopez
QueryR
Commits
b4361fcc
Commit
b4361fcc
authored
7 years ago
by
stepan
Browse files
Options
Downloads
Patches
Plain Diff
Fix: DoCall should not call transferToInterpreter() when the call is not simple.
parent
676846ba
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DoCall.java
+0
-3
0 additions, 3 deletions
...n/src/com/oracle/truffle/r/nodes/builtin/base/DoCall.java
with
0 additions
and
3 deletions
com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/DoCall.java
+
0
−
3
View file @
b4361fcc
...
...
@@ -30,7 +30,6 @@ import static com.oracle.truffle.r.runtime.builtins.RBehavior.COMPLEX;
import
java.util.Arrays
;
import
com.oracle.truffle.api.CompilerDirectives
;
import
com.oracle.truffle.api.CompilerDirectives.TruffleBoundary
;
import
com.oracle.truffle.api.dsl.Cached
;
import
com.oracle.truffle.api.dsl.Specialization
;
...
...
@@ -184,12 +183,10 @@ public abstract class DoCall extends RBuiltinNode.Arg4 implements InternalRSynta
protected
static
boolean
isSimple
(
RFunction
function
,
RList
args
)
{
RBuiltinDescriptor
builtin
=
function
.
getRBuiltin
();
if
(
builtin
!=
null
&&
builtin
.
getDispatch
()
!=
RDispatch
.
DEFAULT
)
{
CompilerDirectives
.
transferToInterpreter
();
return
false
;
}
for
(
int
i
=
0
;
i
<
args
.
getLength
();
i
++)
{
if
(
args
.
getDataAt
(
i
)
instanceof
RLanguage
)
{
CompilerDirectives
.
transferToInterpreter
();
// Note: language is tricky because of formulae, which are language that is
// really not meant to be evaluated again in a different frame than the one were
// the were evaluated for the first time. The solution should be to clone the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment