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
26e5563d
Commit
26e5563d
authored
8 years ago
by
Lukas Stadler
Browse files
Options
Downloads
Patches
Plain Diff
use the profiling VirtualEvalFrame subclasses in a proper way
parent
d3c06c77
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.runtime/src/com/oracle/truffle/r/runtime/VirtualEvalFrame.java
+24
-26
24 additions, 26 deletions
...me/src/com/oracle/truffle/r/runtime/VirtualEvalFrame.java
with
24 additions
and
26 deletions
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/VirtualEvalFrame.java
+
24
−
26
View file @
26e5563d
...
...
@@ -48,7 +48,7 @@ public abstract class VirtualEvalFrame implements VirtualFrame, MaterializedFram
@Override
public
FrameDescriptor
getFrameDescriptor
()
{
return
o
riginalFrame
.
getFrameDescriptor
();
return
getO
riginalFrame
()
.
getFrameDescriptor
();
}
@Override
...
...
@@ -56,9 +56,7 @@ public abstract class VirtualEvalFrame implements VirtualFrame, MaterializedFram
return
arguments
;
}
public
MaterializedFrame
getOriginalFrame
()
{
return
originalFrame
;
}
public
abstract
MaterializedFrame
getOriginalFrame
();
@Override
public
MaterializedFrame
materialize
()
{
...
...
@@ -71,112 +69,112 @@ public abstract class VirtualEvalFrame implements VirtualFrame, MaterializedFram
@Override
public
Object
getObject
(
FrameSlot
slot
)
throws
FrameSlotTypeException
{
return
o
riginalFrame
.
getObject
(
slot
);
return
getO
riginalFrame
()
.
getObject
(
slot
);
}
@Override
public
void
setObject
(
FrameSlot
slot
,
Object
value
)
{
o
riginalFrame
.
setObject
(
slot
,
value
);
getO
riginalFrame
()
.
setObject
(
slot
,
value
);
}
@Override
public
byte
getByte
(
FrameSlot
slot
)
throws
FrameSlotTypeException
{
return
o
riginalFrame
.
getByte
(
slot
);
return
getO
riginalFrame
()
.
getByte
(
slot
);
}
@Override
public
void
setByte
(
FrameSlot
slot
,
byte
value
)
{
o
riginalFrame
.
setByte
(
slot
,
value
);
getO
riginalFrame
()
.
setByte
(
slot
,
value
);
}
@Override
public
boolean
getBoolean
(
FrameSlot
slot
)
throws
FrameSlotTypeException
{
return
o
riginalFrame
.
getBoolean
(
slot
);
return
getO
riginalFrame
()
.
getBoolean
(
slot
);
}
@Override
public
void
setBoolean
(
FrameSlot
slot
,
boolean
value
)
{
o
riginalFrame
.
setBoolean
(
slot
,
value
);
getO
riginalFrame
()
.
setBoolean
(
slot
,
value
);
}
@Override
public
int
getInt
(
FrameSlot
slot
)
throws
FrameSlotTypeException
{
return
o
riginalFrame
.
getInt
(
slot
);
return
getO
riginalFrame
()
.
getInt
(
slot
);
}
@Override
public
void
setInt
(
FrameSlot
slot
,
int
value
)
{
o
riginalFrame
.
setInt
(
slot
,
value
);
getO
riginalFrame
()
.
setInt
(
slot
,
value
);
}
@Override
public
long
getLong
(
FrameSlot
slot
)
throws
FrameSlotTypeException
{
return
o
riginalFrame
.
getLong
(
slot
);
return
getO
riginalFrame
()
.
getLong
(
slot
);
}
@Override
public
void
setLong
(
FrameSlot
slot
,
long
value
)
{
o
riginalFrame
.
setLong
(
slot
,
value
);
getO
riginalFrame
()
.
setLong
(
slot
,
value
);
}
@Override
public
float
getFloat
(
FrameSlot
slot
)
throws
FrameSlotTypeException
{
return
o
riginalFrame
.
getFloat
(
slot
);
return
getO
riginalFrame
()
.
getFloat
(
slot
);
}
@Override
public
void
setFloat
(
FrameSlot
slot
,
float
value
)
{
o
riginalFrame
.
setFloat
(
slot
,
value
);
getO
riginalFrame
()
.
setFloat
(
slot
,
value
);
}
@Override
public
double
getDouble
(
FrameSlot
slot
)
throws
FrameSlotTypeException
{
return
o
riginalFrame
.
getDouble
(
slot
);
return
getO
riginalFrame
()
.
getDouble
(
slot
);
}
@Override
public
void
setDouble
(
FrameSlot
slot
,
double
value
)
{
o
riginalFrame
.
setDouble
(
slot
,
value
);
getO
riginalFrame
()
.
setDouble
(
slot
,
value
);
}
@Override
public
Object
getValue
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
getValue
(
slot
);
return
getO
riginalFrame
()
.
getValue
(
slot
);
}
@Override
public
boolean
isObject
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
isObject
(
slot
);
return
getO
riginalFrame
()
.
isObject
(
slot
);
}
@Override
public
boolean
isByte
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
isByte
(
slot
);
return
getO
riginalFrame
()
.
isByte
(
slot
);
}
@Override
public
boolean
isBoolean
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
isBoolean
(
slot
);
return
getO
riginalFrame
()
.
isBoolean
(
slot
);
}
@Override
public
boolean
isInt
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
isInt
(
slot
);
return
getO
riginalFrame
()
.
isInt
(
slot
);
}
@Override
public
boolean
isLong
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
isLong
(
slot
);
return
getO
riginalFrame
()
.
isLong
(
slot
);
}
@Override
public
boolean
isFloat
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
isFloat
(
slot
);
return
getO
riginalFrame
()
.
isFloat
(
slot
);
}
@Override
public
boolean
isDouble
(
FrameSlot
slot
)
{
return
o
riginalFrame
.
isDouble
(
slot
);
return
getO
riginalFrame
()
.
isDouble
(
slot
);
}
private
static
final
class
Substitute1
extends
VirtualEvalFrame
{
...
...
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