fpc/compiler/jvm
Jonas Maebe 43c5ed20c2 + support for initialising typed constants via compiler-generated
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 -
2011-08-20 08:02:58 +00:00
..
aasmcpu.pas + support for (formal/untyped) constants (ordinal, floating point, 2011-08-20 07:55:41 +00:00
cgcpu.pas * removed unused local variables 2011-08-20 07:54:37 +00:00
cpubase.pas + cpubase for jvm: opcodes, basic register definitions, ... 2011-08-20 07:35:32 +00:00
cpuinfo.pas * fixed compilation 2011-08-20 07:36:22 +00:00
cpunode.pas + support for regular arrays and open arrays 2011-08-20 07:55:27 +00:00
cpupara.pas * don't create (useless) temporary array/record/... for the result 2011-08-20 07:58:09 +00:00
cpupi.pas + tjvmprocinfo, only overrides set_first_temp_offset() and sets it to 2011-08-20 07:37:20 +00:00
cputarg.pas + support for JVM local variable and parameter debug information 2011-08-20 07:50:41 +00:00
dbgjasm.pas + support for unit initialisation sections for the JVM target, 2011-08-20 08:01:39 +00:00
hlcgcpu.pas + support for class constructors for the JVM target 2011-08-20 08:01:51 +00:00
itcpujas.pas + jvm (cpu architecure) and java ("OS"/target) identifiers 2011-08-20 07:37:33 +00:00
jvmreg.dat + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
njvmadd.pas + unicodestring support for the JVM target (except for multiple adds 2011-08-20 08:02:33 +00:00
njvmcal.pas * allocate/initialize implicit pointer type fields (arrays, records) in 2011-08-20 08:01:24 +00:00
njvmcnv.pas + unicodestring support for the JVM target (except for multiple adds 2011-08-20 08:02:33 +00:00
njvmcon.pas + support for JVM string constants 2011-08-20 07:57:50 +00:00
njvmflw.pas * replaced partial manual declarations of some Java classes with 2011-08-20 07:58:20 +00:00
njvminl.pas + unicodestring support for the JVM target (except for multiple adds 2011-08-20 08:02:33 +00:00
njvmld.pas + unicodestring support for the JVM target (except for multiple adds 2011-08-20 08:02:33 +00:00
njvmmat.pas * fixed 64 bit shl/shr/sar operations: the second argument of the 2011-08-20 07:48:23 +00:00
njvmmem.pas + unicodestring support for the JVM target (except for multiple adds 2011-08-20 08:02:33 +00:00
njvmutil.pas + support for initialising typed constants via compiler-generated 2011-08-20 08:02:58 +00:00
rgcpu.pas * don't remove regalloc/regdealloc pair if it's immediately followed by a 2011-08-20 08:01:19 +00:00
rjvmcon.inc + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
rjvmnor.inc + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
rjvmnum.inc + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
rjvmrni.inc + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
rjvmsri.inc + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
rjvmstd.inc + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
rjvmsup.inc + (mostly fake) register definitions for the JVM 2011-08-20 07:35:17 +00:00
tgcpu.pas + support for (non-variant) arrayconstructornodes for the JVM target 2011-08-20 08:02:22 +00:00