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
f3901a2b
Commit
f3901a2b
authored
10 years ago
by
Lukas Stadler
Browse files
Options
Downloads
Patches
Plain Diff
remove unused fields in DispatchedCallNode
parent
c6900fac
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/function/DispatchedCallNode.java
+10
-14
10 additions, 14 deletions
...m/oracle/truffle/r/nodes/function/DispatchedCallNode.java
with
10 additions
and
14 deletions
com.oracle.truffle.r.nodes/src/com/oracle/truffle/r/nodes/function/DispatchedCallNode.java
+
10
−
14
View file @
f3901a2b
...
...
@@ -22,11 +22,9 @@ import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
public
abstract
class
DispatchedCallNode
extends
RNode
{
private
static
final
int
INLINE_CACHE_SIZE
=
4
;
protected
Object
[]
args
;
protected
RNode
[]
argNodes
;
public
static
DispatchedCallNode
create
(
final
String
genericName
,
final
String
dispatchType
,
String
[]
suppliedArgsNames
)
{
return
new
UninitializedDispatchedCallNode
(
genericName
,
dispatchType
,
suppliedArgsNames
);
return
new
UninitializedDispatchedCallNode
(
genericName
,
dispatchType
,
null
,
suppliedArgsNames
);
}
public
static
DispatchedCallNode
create
(
final
String
genericName
,
final
String
dispatchType
,
final
Object
[]
args
,
String
[]
suppliedArgsNames
)
{
...
...
@@ -48,30 +46,28 @@ public abstract class DispatchedCallNode extends RNode {
public
abstract
Object
execute
(
VirtualFrame
frame
,
RStringVector
type
);
public
abstract
Object
executeInternal
(
VirtualFrame
frame
,
RStringVector
type
,
@SuppressWarnings
(
"hiding"
)
Object
[]
args
);
public
abstract
Object
executeInternal
(
VirtualFrame
frame
,
RStringVector
type
,
Object
[]
args
);
private
static
final
class
UninitializedDispatchedCallNode
extends
DispatchedCallNode
{
protected
final
int
depth
;
protected
final
String
genericName
;
protected
final
String
dispatchType
;
protected
final
String
[]
suppliedArgsNames
;
protected
final
Object
[]
args
;
public
UninitializedDispatchedCallNode
(
final
String
genericName
,
final
String
dispatchType
,
String
[]
suppliedArgsNames
)
{
this
.
genericName
=
genericName
;
this
.
depth
=
0
;
this
.
dispatchType
=
dispatchType
;
this
.
suppliedArgsNames
=
suppliedArgsNames
;
}
private
UninitializedDispatchedCallNode
(
final
UninitializedDispatchedCallNode
copy
,
final
int
depth
)
{
private
UninitializedDispatchedCallNode
(
UninitializedDispatchedCallNode
copy
,
int
depth
)
{
this
.
genericName
=
copy
.
genericName
;
this
.
dispatchType
=
copy
.
dispatchType
;
this
.
depth
=
depth
;
this
.
suppliedArgsNames
=
copy
.
suppliedArgsNames
;
this
.
args
=
null
;
}
public
UninitializedDispatchedCallNode
(
final
String
genericName
,
final
String
dispatchType
,
final
Object
[]
args
,
String
[]
suppliedArgsNames
)
{
this
(
genericName
,
dispatchType
,
suppliedArgsNames
);
public
UninitializedDispatchedCallNode
(
String
genericName
,
String
dispatchType
,
Object
[]
args
,
String
[]
suppliedArgsNames
)
{
this
.
depth
=
0
;
this
.
genericName
=
genericName
;
this
.
dispatchType
=
dispatchType
;
this
.
suppliedArgsNames
=
suppliedArgsNames
;
this
.
args
=
args
;
}
...
...
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