summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-10-02 20:53:39 +0200
committerJo-Philipp Wich <jo@mein.io>2022-10-04 21:14:31 +0200
commit7bbba788dba3a5cd2339b81d8a62761e6dc83b7e (patch)
treedd781b5d8b04c7929229f1915730cb2b65c92621 /CMakeLists.txt
parenta45f2a388efb649e0373a45c6db1d009dc18072d (diff)
compiler: optimize function return opcode generation
Track last emitted statement type in compiled code and only generate final `return null` opcodes if there is no preceeding `return` statement. Also use this statement tracking to avoid emitting invalid return opcodes for arrow function bodies with trailing empty statements. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions