Skip to content

Commit

Permalink
Adapt to upstream DeclareTag changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjordan committed Dec 7, 2019
1 parent 1e10c94 commit 51d1f0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ public void analysisReady(AnalysisFilterBase filter) {
ProfiledTagEnum.STATEMENT,
ProfiledTagEnum.EXPRESSION,
ProfiledTagEnum.CF_BRANCH,
ProfiledTagEnum.ROOT
ProfiledTagEnum.ROOT,
ProfiledTagEnum.DECLARE
};

@TruffleBoundary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.oracle.truffle.api.instrumentation.EventContext;

import ch.usi.inf.nodeprof.ProfiledTagEnum;
import com.oracle.truffle.js.nodes.instrumentation.JSTags.DeclareTag;

/**
* Abstract event handler for literal events
Expand All @@ -28,8 +29,8 @@ public abstract class DeclareEventHandler extends BaseSingleTagEventHandler {

public DeclareEventHandler(EventContext context) {
super(context, ProfiledTagEnum.DECLARE);
this.declareType = (String) getAttribute("type");
this.declareName = (String) getAttribute("name");
this.declareType = (String) getAttribute(DeclareTag.TYPE);
this.declareName = (String) getAttribute(DeclareTag.NAME);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public abstract class LiteralEventHandler extends BaseSingleTagEventHandler {

public LiteralEventHandler(EventContext context) {
super(context, ProfiledTagEnum.LITERAL);
this.literalType = (String) getAttribute("type");
this.literalType = (String) getAttribute(LiteralTag.TYPE);
}

/**
Expand Down

0 comments on commit 51d1f0d

Please sign in to comment.