Callum Seabrook
12/08/2022, 3:18 PM@JvmStatic
declarations to have the generated static method replace the companion object declaration rather than be a proxy to it, but I cannot run the tests. Every time I try to run the tests, my 32 GB of RAM is maxed out and I'm forced to hold the power button to shut down the computer so I can reboot it. I feel like this can't be an issue for most of the people working on the compiler, and also feel like I'm not meant to be running all the tests, but I don't really know that much about the tests in the compiler. Can anyone help me out?dmitriy.novozhilov
12/08/2022, 3:24 PMCallum Seabrook
12/08/2022, 3:29 PMJvmCachedDeclarations
to facilitate the caching of static replacement methods. I also added a new JvmLoweredDeclarationOrigin
to distinguish the static proxy from the static rewrite. I also changed the CompanionObjectJvmStaticTransformer
in JvmStaticAnnotationLowering
to do the actual overwriting if the new configuration key I added is set to true.dmitriy.novozhilov
12/08/2022, 3:33 PMIrBlackBoxCodegenTestGenerated
and IrBlackBoxInlineCodegenTestGenerated
tests as sanity check
You can also look at tests which lays around those twodmitriy.novozhilov
12/08/2022, 3:33 PMCallum Seabrook
12/08/2022, 3:37 PMCallum Seabrook
12/08/2022, 5:41 PMtestData/codegen/box
, and I don't believe how they work is suitable for what I need to test. Specifically, what I need to test is that, when my option is enabled, the output of @JvmStatic
declarations in companion objects doesn't contain an instance method in the companion object and, if possible, that the generated static method in the base class doesn't try to delegate to one.
I don't know whether I'm not seeing something or doing something wrong, or if these tests actually aren't suitable.dmitriy.novozhilov
12/09/2022, 8:18 AMIrBytecodeListingTestGenerated
, which dump list of declarations from resulting bytecodedmitriy.novozhilov
12/09/2022, 8:18 AMCallum Seabrook
12/09/2022, 11:06 AM