diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-08-23 17:44:55 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2011-08-23 17:44:55 +0000 |
commit | c05c04d9479f735ae6bcb2eb034c5aa7324a4bb3 (patch) | |
tree | 63fb7b056e1ac8e63e8ad632afc9bcb03694ff90 /compiler/cgutils.pas | |
parent | 1a421f1cbef755b5640a1b6f7515cce51f8a0d82 (diff) | |
download | fpc-c05c04d9479f735ae6bcb2eb034c5aa7324a4bb3.tar.gz |
* generalized handling of pointers to non-implicit pointer types:
as far as Java is concerned, they're now all arrays of JLObject.
When loading a value from them, we typecast the loaded value
to the appropriate type. This allows typecasting one pointer
type to another without getting verification errors (since an
"array of JLObject" is not compatible with "array of JLString")
- no longer allow dereferencing untyped pointers on the JVM
target, since that always results in invalid bytecode
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/jvmbackend@18819 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/cgutils.pas')
-rw-r--r-- | compiler/cgutils.pas | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/cgutils.pas b/compiler/cgutils.pas index b6247855b9..60a185c26f 100644 --- a/compiler/cgutils.pas +++ b/compiler/cgutils.pas @@ -69,6 +69,7 @@ unit cgutils; indexbase: tregister; indexsymbol: tasmsymbol; indexoffset: aint; + checkcast: boolean; {$endif jvm} alignment : byte; end; |