2 * Assignments of the same variable to itself are a big problem. The
3 underlying storge is dropped and then copied, but atm the drop code
4 cleans out the storage (e.g. any pointers or references).
6 * &array[n] is causing extra hanging locks in the interpreter.
8 * &lvalue --- do not set SRS flags!!! The address is not the local stack
11 * ptr.method() calls (other than new()) just don't understand whether
12 the method object is locked or unlocked. This isn't a problem for
13 ptr->method() calls through classes since the contents of a class is
14 always naturally unlocked (but still ref'd of course).
16 * XXX *pptr or *ptr-to-compound-type does not know whether the indirected
17 object resides in naturally locked or naturally unlocked storage.
19 --> intention - disallow &locked-storage-ptr or &locked-storage-comptype,
20 require the use of 'unlocked' on the storage to be able to take its
21 address. Relax requirements if TF_HASLVPTR is false.
23 * Do not allow the address of any return argument be taken during a
24 call. Messes up content-locked return data.
26 * Global compound types need to be fixed to not try to maintain locks.
28 * Lock global and (class) object storage in GenGetDeclarationData()
30 * on LValueStor, do not flow-through LVRSGet's. Instead require that
31 LValueStor's passed as an argument or return value have their
32 underlying object locked (and other LValueStor's do not, even if on
35 This makes .new() work as the lock will be borrowed if relaying an
36 lvs passed in, and if not relaying the caller must lock the underlying.
38 When an object is forwarded by constructing an LValueStor for it,
39 the lock must be borrowed if the object is already locked. Access
40 semantics are such that this should always be the case.
42 * insnx86.c line 149 ish.. remove rea->regused ???
44 * gen_refstor.c ~720, make DOP_ARGS_STORAGE cacheable. But to
45 work properly RAS needs to do a dummy load of each argument
46 from EA[non-cache] to EA.CACHE to ensure that the register
47 is properly initialized. And for pointers, to sync back
50 * Cacheability of compound types in RAS ?
52 * see classes strlen() code. CMP/BRA opt causes RSPUT to be improperly
53 handled (fix by optimizing out the PRSGET/RSPUT sequence for the
54 comparison? what if both args need it?)
56 * optimize const global access to immediate value XXX doesn't currently
57 happen (strlen()'s test against NIL).
59 * optimized stack storage in llvm is not cleared
61 * return/result sequencing must be validated by the resolver. break/continue
62 may not cross a result; point and result; cannot be conditionalized in one
63 path unless it is also present in the other.
65 * Add 'finalize' to class/subclass decl indicating that no further subclassing
68 * libgen initializers for global declarations w/ assignments or type defaults.
70 * resolver propagate CTF_RESOLVING flag in run-time context.
72 * resolver and runtime and generator - validate when casting pointers
73 that an integral number of objects of the target fits in the source.
74 Otherwise the cast is illegal.
76 * tests/refine.d - method call through non-replicated (i.e. not part of
77 subclass) @ref currently executes the superclass method
78 instead of looking up the actual method via the type.
80 * generally speaking must change how interfaces and classes work when making
81 field accesses. Disallow in interfaces, allow otherwise but then restrict
82 how refine operates so field offsets remain consistent across all
83 sub-classes. Disallow alias access via @ref?
85 * resolver - Disallow binding of incompatible subclasses to a superclass.
86 Do this by flagging the incompatibility.
88 * resolver - Enforce that non-interface classes cannot contain interfaces.
90 * resolver - Enforce that it is not allowed to take the sizeof() an interface
93 * resolver - Enforce that one cannot instantiate/declare an interface type.
95 * resolver - Enforce that object accessors can only be to non-generic elements.
97 * resolver - Reorder generic elements in an interface to the end for offset
100 * resolver - Do not allow pointer arithmatic on references.
102 * libgen - chained temporary data returned along one side of an expressin
103 can get corrupted by the other side. On the top-level temporary data is
106 * libgen - RunRelsRefStor in operators a mess.
108 * libgen - exp.c RunCastExpPtrToRef() is basically messing with the
109 type of the passed-in lvalue, which is really a bad idea.
111 * read, write, sizeof, arysize, and bcopy currently taking Int32 !!!'s. FIX!
114 * When realizing persistent store we have to clean out any previously
117 * map files containing structures with pointers can get corrupted. Maybe
118 we should just disallow pointers entirely for any persistent store.
120 * Persistent store mmap() file path is currently hacked up. Needs command
121 line arg to set the home directory for the program, and the default
122 should be "$HOME/.<program>/rune_%s.map". libgen/heap.c
124 * infinintely recursive aliases are not currently detected.
129 * get rid of need for 'auto' prefix in casts to distinguish between
130 variable names and types.
132 * share pens and also share font information
134 * Handle simple exposure aggregation and use clip to limit update area
135 (see tests/gfxslider.d)
137 * Wide char for SSTRING ? i.e. 'x'
139 isg for resolveType's assigned expression
141 DONE<<constructors/destructors for global elements and statement blocks>> ?
143 reference type resolver and libi/exp.c TOK_STRIND and TOK_CALL. METHOD CALLS
144 via ref types (don't screw around with the exp, dup it instead?)
146 refine: check validity of procedural refinements (different return types,
147 argument types, etc...)
149 is d_Search now obsolete?
151 Add support for 'super'. Either 'structural->super' or 'super.<blah>'
152 (for method calls), to access a superclass element that has been overloaded
155 We need to be able to copy a statement tree (procedure body) on the fly
156 in the resolver, when a subclass is passed to a procedure expecting its
157 superclass. We have to keep track of compound types (proc args) in order
158 to cache the various versions of the procedure. We already have d_Super
159 to locate the procedure in a TOK_CALL if the procedure body is NULL.
160 The modified procedure must be able to pass a different sg_Level.. i.e.
161 the one for the superclass, even though all of its types will be the actual
162 class (the subclass), in order to locate the proper declaration (a declaration
163 may be invisible to the subclass but visible to the superclass).
168 int ary[exp] ... the exp is shared across qualifications of the type,
169 which is bad. Also, what about compound types sharing the same semgroup?
172 double check 'isglobal' TF/SGF_NOINIT cache
174 cast procedures generally work but we really need to formalize
175 how ex_Type is set verses what the exp node really wants (e.g. for
176 procedures... look at ex_Type or look at the procdecl's return type?).
178 really fix cast... in libi/exp.c
180 Check global scope when indirecting through a type or class rather
181 then storage. only allow global scope for storage in that case.
183 non-global procedure called through object -- automatic "this" reference.
184 procedures embedded in class accessing class elements????? global vs
187 Implement STF_FORWARD checking (do not allow forward reference stack
188 declarations to other decls at the same semantic level.)
190 Make procedural refinement work
194 Implement heap variables (implement as initialized pointers / use '@' ?)
196 Partial procedure args resolution
198 procedure pointers (point to the declaration)