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
07f9ae56
Commit
07f9ae56
authored
7 years ago
by
stepan
Browse files
Options
Downloads
Patches
Plain Diff
Add missing @CompilationFinal to profile in EnvFunctions
parent
6224ba9f
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/EnvFunctions.java
+4
-2
4 additions, 2 deletions
...com/oracle/truffle/r/nodes/builtin/base/EnvFunctions.java
with
4 additions
and
2 deletions
com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/EnvFunctions.java
+
4
−
2
View file @
07f9ae56
/*
* Copyright (c) 2013, 201
7
, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 201
8
, 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,6 +35,7 @@ import static com.oracle.truffle.r.runtime.builtins.RBuiltinKind.INTERNAL;
import
static
com
.
oracle
.
truffle
.
r
.
runtime
.
builtins
.
RBuiltinKind
.
PRIMITIVE
;
import
com.oracle.truffle.api.CompilerDirectives
;
import
com.oracle.truffle.api.CompilerDirectives.CompilationFinal
;
import
com.oracle.truffle.api.CompilerDirectives.TruffleBoundary
;
import
com.oracle.truffle.api.RootCallTarget
;
import
com.oracle.truffle.api.dsl.Cached
;
...
...
@@ -609,12 +610,13 @@ public class EnvFunctions {
casts
.
arg
(
"env"
).
mustBe
(
REnvironment
.
class
,
Message
.
NOT_AN_ENVIRONMENT
);
}
private
BranchProfile
frameSlotBranchProfile
;
@CompilationFinal
private
BranchProfile
frameSlotBranchProfile
;
@TruffleBoundary
@Specialization
protected
Object
makeActiveBinding
(
RSymbol
sym
,
RFunction
fun
,
REnvironment
env
)
{
if
(
frameSlotBranchProfile
==
null
)
{
CompilerDirectives
.
transferToInterpreterAndInvalidate
();
frameSlotBranchProfile
=
BranchProfile
.
create
();
}
...
...
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