mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 19:05:54 +02:00
The sources of the Free Pascal compiler, RTL, packages and utilities.
See https://www.freepascal.org/ for more info.
![]() assignment-nodes. For global typed constants and typed constants/ local variable initialisers in regular functions/procedurs, the assignments are performed in the unit initialisation code. For those in object/record definitions and their methods, it's done in the class constructor. Since we may not yet have parsed all method implementations when the class constructor is parsed, part of these may be initialised in a helper routine called from the class constructor. The ones known when the class constructor is parsed are inited there, because the ones marked as "final" and declared as static class fields must be initialised in the class constructor for Java o new set systems_typed_constants_node_init in systems unit that indicates that a target uses node trees to initialise typed consts instead of an initialised data section o mark typed constants in {$j-} mode as "final" for JVM o mangle the name of staticvarsyms inside localtables a bit to avoid name clashes (only with procedure names for now, no parameters yet so can still cause problems with overloaded routines) o after a routine has been parsed, it is now processed by cnodeutils.wrap_proc_body(), which can add extra nodes before code generation (used for injected the typed constant node trees) git-svn-id: branches/jvmbackend@18475 - |
||
---|---|---|
compiler | ||
ide | ||
installer | ||
packages | ||
rtl | ||
tests | ||
utils | ||
.gitattributes | ||
.gitignore | ||
Makefile | ||
Makefile.fpc |