Skip to content

Commit

Permalink
Another place to provide frameInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Aug 28, 2024
1 parent 0195953 commit 0a37ddf
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ class IrToTruffle(
() => scopeInfo().graph,
() => scopeInfo().graph.rootScope,
dataflowInfo,
atomDefn.name.name
atomDefn.name.name,
frameInfo
)
val expressionNode =
expressionProcessor.run(annotation.expression, true)
Expand Down Expand Up @@ -812,6 +813,10 @@ class IrToTruffle(
DataflowAnalysis,
"Method definition missing dataflow information."
)
def frameInfo() = methodDef.unsafeGetMetadata(
FramePointerAnalysis,
"Method definition missing frame information."
)

val toOpt =
methodDef.methodReference.typePointer match {
Expand All @@ -827,7 +832,8 @@ class IrToTruffle(
() => scopeInfo().graph,
() => scopeInfo().graph.rootScope,
dataflowInfo,
methodDef.methodName.name
methodDef.methodName.name,
frameInfo
)

val function = methodDef.body match {
Expand Down

0 comments on commit 0a37ddf

Please sign in to comment.