ASM Bytecode Generation to unwrap Expressions of adv-expr API #94

Merged
CommanderTvis merged 44 commits from adv-expr into adv-expr 2020-06-13 21:07:15 +03:00
Showing only changes of commit 6686144538 - Show all commits

View File

@ -178,9 +178,9 @@ class AsmGenerationContext<T>(classOfT: Class<*>, private val algebra: Algebra<T
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
.newInstance(algebra, constants) as AsmCompiled<T>
}
fun visitLoadFromConstants(value: T) = visitLoadAnyFromConstants(value as Any)
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
fun visitLoadFromConstants(value: T) = visitLoadAnyFromConstants(value as Any, T_CLASS)
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
fun visitLoadAnyFromConstants(value: Any) {
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
fun visitLoadAnyFromConstants(value: Any, type: String) {
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
val idx = if (value in constants) constants.indexOf(value) else constants.apply { add(value) }.lastIndex
maxStack++
@ -189,7 +189,7 @@ class AsmGenerationContext<T>(classOfT: Class<*>, private val algebra: Algebra<T
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
visitFieldInsn(GETFIELD, slashesClassName, "constants", "L$LIST_CLASS;")
visitLdcOrIConstInsn(idx)
visitMethodInsn(INVOKEINTERFACE, LIST_CLASS, "get", "(I)L$OBJECT_CLASS;", true)
visitCastToT()
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
evaluateMethodVisitor.visitTypeInsn(CHECKCAST, type)
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
}
}
@ -214,7 +214,7 @@ class AsmGenerationContext<T>(classOfT: Class<*>, private val algebra: Algebra<T
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
return
}
visitLoadAnyFromConstants(value)
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
visitLoadAnyFromConstants(value, c)
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
}
fun visitLoadFromVariables(name: String, defaultValue: T? = null) = evaluateMethodVisitor.run {

altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 19:15:24 +03:00 (Migrated from github.com)
Review

Add suppress for unused parameters and documentation.

Add suppress for unused parameters and documentation.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:37 +03:00 (Migrated from github.com)
Review

Space is not actually used.

Space is not actually used.
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used
altavir commented 2020-06-07 20:02:44 +03:00 (Migrated from github.com)
Review

Not used

Not used