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
b09b89d1
Commit
b09b89d1
authored
7 years ago
by
Florian Angerer
Browse files
Options
Downloads
Patches
Plain Diff
Modified taggging semantics to be able to register breakpoints to top-level call statements.
parent
80b65387
Branches
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.engine/src/com/oracle/truffle/r/engine/RRuntimeASTAccessImpl.java
+4
-2
4 additions, 2 deletions
...rc/com/oracle/truffle/r/engine/RRuntimeASTAccessImpl.java
with
4 additions
and
2 deletions
com.oracle.truffle.r.engine/src/com/oracle/truffle/r/engine/RRuntimeASTAccessImpl.java
+
4
−
2
View file @
b09b89d1
...
@@ -72,6 +72,7 @@ import com.oracle.truffle.r.runtime.RInternalError;
...
@@ -72,6 +72,7 @@ import com.oracle.truffle.r.runtime.RInternalError;
import
com.oracle.truffle.r.runtime.RRuntimeASTAccess
;
import
com.oracle.truffle.r.runtime.RRuntimeASTAccess
;
import
com.oracle.truffle.r.runtime.RSrcref
;
import
com.oracle.truffle.r.runtime.RSrcref
;
import
com.oracle.truffle.r.runtime.ReturnException
;
import
com.oracle.truffle.r.runtime.ReturnException
;
import
com.oracle.truffle.r.runtime.RootWithBody
;
import
com.oracle.truffle.r.runtime.Utils
;
import
com.oracle.truffle.r.runtime.Utils
;
import
com.oracle.truffle.r.runtime.context.Engine
;
import
com.oracle.truffle.r.runtime.context.Engine
;
import
com.oracle.truffle.r.runtime.context.RContext
;
import
com.oracle.truffle.r.runtime.context.RContext
;
...
@@ -520,7 +521,8 @@ class RRuntimeASTAccessImpl implements RRuntimeASTAccess {
...
@@ -520,7 +521,8 @@ class RRuntimeASTAccessImpl implements RRuntimeASTAccess {
String
className
=
tag
.
getSimpleName
();
String
className
=
tag
.
getSimpleName
();
switch
(
className
)
{
switch
(
className
)
{
case
"CallTag"
:
case
"CallTag"
:
return
node
instanceof
RCallNode
;
// TODO: should just mark calls to other languages
return
false
;
case
"StatementTag"
:
{
case
"StatementTag"
:
{
Node
parent
=
((
RInstrumentableNode
)
node
).
unwrapParent
();
Node
parent
=
((
RInstrumentableNode
)
node
).
unwrapParent
();
...
@@ -541,7 +543,7 @@ class RRuntimeASTAccessImpl implements RRuntimeASTAccess {
...
@@ -541,7 +543,7 @@ class RRuntimeASTAccessImpl implements RRuntimeASTAccess {
case
"RootTag"
:
{
case
"RootTag"
:
{
Node
parent
=
((
RInstrumentableNode
)
node
).
unwrapParent
();
Node
parent
=
((
RInstrumentableNode
)
node
).
unwrapParent
();
return
parent
instanceof
FunctionDefinitionNode
;
return
parent
instanceof
FunctionDefinitionNode
||
parent
instanceof
RootWithBody
;
}
}
case
"LoopTag"
:
case
"LoopTag"
:
...
...
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