-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM language frontend based on SootUp #1402
base: main
Are you sure you want to change the base?
Conversation
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 5 New issues |
@@ -10,6 +10,7 @@ val enablePythonFrontend: Boolean by rootProject.extra | |||
val enableLLVMFrontend: Boolean by rootProject.extra | |||
val enableTypeScriptFrontend: Boolean by rootProject.extra | |||
val enableRubyFrontend: Boolean by rootProject.extra | |||
val enableJVMFrontend: Boolean by rootProject.extra |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JavaFrontend and JVMFrontend could be confused. Not sure what could be a better naming. Maybe JavaSource and JVM?
@@ -18,5 +19,5 @@ dependencies { | |||
if (enablePythonFrontend) api(project(":cpg-language-python")) | |||
if (enableLLVMFrontend) api(project(":cpg-language-llvm")) | |||
if (enableTypeScriptFrontend) api(project(":cpg-language-typescript")) | |||
if (enableRubyFrontend) api(project(":cpg-language-ruby")) | |||
if (enableJVMFrontend) api(project(":cpg-language-jvm")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intentionally remove Ruby?
@@ -5,6 +5,8 @@ log4j = "2.22.0" | |||
sonarqube = "4.4.1.3373" | |||
spotless = "6.23.2" | |||
nexus-publish = "1.3.0" | |||
#sootup = "5f72ac96f3cb230c438d038975c88ba2acc86d23" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#sootup = "5f72ac96f3cb230c438d038975c88ba2acc86d23" |
This PR adds a new language frontend for the JVM, based on the new version of Soot: SootUp (https://soot-oss.github.io/SootUp/). It currently features loading code from compiled Java class files. In the future, we might extend it to Jimple and/or Java source, depending on how things progress in SootUp.
Meta-Tasks
Supported Declarations
SootClass
SootMethod
SootField
Local
Supported Expressions
JArrayRef
JCaughtExceptionRef
JInstanceFieldRef
JParameterRef
JStaticFieldRef
JThisRef
BooleanConstant
,DoubleConstant
,FloatConstant
,IntConstant
,LongConstant
,NullConstant
,StringConstant
ClassConstant
,EnumConstant
, only seems to be used in annotationsMethodHandle
,MethodType
AbstractBinopExpr
JCastExpr
JPhiExpr
JDynamicInvokeExpr
at least partiallyJInstanceOfExpr
JInterfaceInvokeExpr
JLengthExpr
JNewArrayExpr
JNewExpr
JNewMultiArrayExpr
JSpecialInvokeExpr
JVirtualInvokeExpr