Changes

Summary

  1. We do not generate code for blocks that are just visited for effect (as (details)
Commit 6774fde5c2b698915bb8ec6d78994c86a4b1cd79 by marcus.denker
We do not generate code for blocks that are just visited for effect (as
there is none). Example would be just a line like
["this does nothing as we do not store it nor assign it" |temp| temp :=
1].
But this is not a good idea as the compiler creates meta data that we
need to access temps and map to the bytecode.
This PR thus enables compiling code for blocks visited for effect only.
The file was modifiedsrc/OpalCompiler-Core/OCASTTranslatorForEffect.class.st (diff)
The file was modifiedsrc/Reflectivity/RFASTTranslatorForEffect.class.st (diff)

Summary

  1. We do not generate code for blocks that are just visited for effect (as (details)
Commit 6774fde5c2b698915bb8ec6d78994c86a4b1cd79 by marcus.denker
We do not generate code for blocks that are just visited for effect (as
there is none). Example would be just a line like
["this does nothing as we do not store it nor assign it" |temp| temp :=
1].
But this is not a good idea as the compiler creates meta data that we
need to access temps and map to the bytecode.
This PR thus enables compiling code for blocks visited for effect only.
The file was modifiedsrc/OpalCompiler-Core/OCASTTranslatorForEffect.class.st (diff)
The file was modifiedsrc/Reflectivity/RFASTTranslatorForEffect.class.st (diff)