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
a40ea846
Commit
a40ea846
authored
6 years ago
by
stepan
Browse files
Options
Downloads
Patches
Plain Diff
Remove naProfile field in CastDoubleBaseNode and use it only as @Cached
parent
150ae12c
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/src/com/oracle/truffle/r/nodes/unary/CastDoubleBaseNode.java
+2
-2
2 additions, 2 deletions
.../com/oracle/truffle/r/nodes/unary/CastDoubleBaseNode.java
with
2 additions
and
2 deletions
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/unary/CastDoubleBaseNode.java
+
2
−
2
View file @
a40ea846
...
...
@@ -40,7 +40,6 @@ import com.oracle.truffle.r.runtime.ops.na.NAProfile;
public
abstract
class
CastDoubleBaseNode
extends
CastBaseNode
{
protected
final
NACheck
naCheck
=
NACheck
.
create
();
protected
final
NAProfile
naProfile
=
NAProfile
.
create
();
protected
CastDoubleBaseNode
(
boolean
preserveNames
,
boolean
preserveDimensions
,
boolean
preserveAttributes
)
{
super
(
preserveNames
,
preserveDimensions
,
preserveAttributes
);
...
...
@@ -110,7 +109,8 @@ public abstract class CastDoubleBaseNode extends CastBaseNode {
@Specialization
protected
double
doString
(
String
operand
,
@Cached
(
"createBinaryProfile()"
)
ConditionProfile
emptyStringProfile
)
{
@Cached
(
"createBinaryProfile()"
)
ConditionProfile
emptyStringProfile
,
@Cached
(
"create()"
)
NAProfile
naProfile
)
{
if
(
naProfile
.
isNA
(
operand
)
||
emptyStringProfile
.
profile
(
operand
.
isEmpty
()))
{
return
RRuntime
.
DOUBLE_NA
;
}
...
...
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