mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-06 09:33:22 +00:00
Improve performance of typing expressions
This commit is contained in:
parent
e3d5ce4e81
commit
b8e5e71c19
@ -228,7 +228,7 @@ object AbstractExpressionCompiler {
|
|||||||
def getExpressionTypeLoosely(env: Environment, log: Logger, expr: Expression): Type = getExpressionTypeImpl(env, log, expr, loosely = true)
|
def getExpressionTypeLoosely(env: Environment, log: Logger, expr: Expression): Type = getExpressionTypeImpl(env, log, expr, loosely = true)
|
||||||
|
|
||||||
def getExpressionTypeImpl(env: Environment, log: Logger, expr: Expression, loosely: Boolean): Type = {
|
def getExpressionTypeImpl(env: Environment, log: Logger, expr: Expression, loosely: Boolean): Type = {
|
||||||
if (expr.typeCache ne null) expr.typeCache
|
if (expr.typeCache ne null) return expr.typeCache
|
||||||
val b = env.get[Type]("byte")
|
val b = env.get[Type]("byte")
|
||||||
val bool = env.get[Type]("bool$")
|
val bool = env.get[Type]("bool$")
|
||||||
val boolTrue = env.get[Type]("true$")
|
val boolTrue = env.get[Type]("true$")
|
||||||
|
Loading…
Reference in New Issue
Block a user