Axel Naumann
37e58b7dba
Typo
2013-09-11 10:11:04 +02:00
Axel Naumann
3a8534d285
Improve exception reporting.
2013-09-11 09:41:52 +02:00
Axel Naumann
4222ba870d
Add more rationale as to how this exception is different from others.
2013-09-11 09:14:56 +02:00
Vassil Vassilev
18f3af5661
Use the correct routine.
2013-09-10 19:39:51 +02:00
Vassil Vassilev
f9a0b72594
Merge the two routines.
2013-09-10 19:02:53 +02:00
Vassil Vassilev
56829dd334
Reuse code.
2013-09-10 19:02:53 +02:00
Vassil Vassilev
a204e40a01
Silence warnings for unused fields.
2013-09-10 17:04:55 +02:00
Vassil Vassilev
90a59ff3bc
Comment out that unused variable until the new llvm import.
2013-09-10 17:04:55 +02:00
Vassil Vassilev
45af08a167
Spell out that we want only one wrapper per transaction.
2013-09-10 15:41:01 +02:00
Vassil Vassilev
c35e529cd6
Remove unused code.
2013-09-10 15:41:01 +02:00
Vassil Vassilev
d2b1e288a4
Spaces.
2013-09-10 15:41:01 +02:00
Vassil Vassilev
9024bbacde
Use best argument match constructor.
2013-09-10 11:43:57 +02:00
Baozeng Ding
a62759105c
Add support for int *p = 0; *p; at AST level.
2013-09-10 11:43:57 +02:00
Vassil Vassilev
d057535f0a
Add tmp prefix.
2013-09-10 11:43:57 +02:00
Axel Naumann
8f435ec57a
File renamed
2013-09-09 18:02:53 +02:00
Axel Naumann
0782d4d515
Make CompilationException public, (also) use new cling runtime exception as base.
2013-09-09 18:02:53 +02:00
Axel Naumann
0a9be4bfd1
Install fatal error handler throwing an exception. Yes that is dangerous.
2013-09-09 18:02:53 +02:00
Vassil Vassilev
5873981203
File was renamed.
2013-09-09 17:31:53 +02:00
Vassil Vassilev
7875d921f6
Update the Module.mk. (Sorry for the mess).
2013-09-09 16:10:59 +02:00
Baozeng Ding
a46498e831
Adapt the test suite to the new warnings produced.
...
Disable the indirect calls. We don't support them yet on AST level.
2013-09-09 15:38:51 +02:00
Baozeng Ding
2fe19f6639
Reduce the dependence from the IR. It will be soon replaced by the AST one.
2013-09-09 15:38:51 +02:00
Vassil Vassilev
bffd16ea1d
RuntimeExceptions got renamed.
2013-09-09 15:24:51 +02:00
Vassil Vassilev
8e9970d472
Rename filename. We don't use plural in the names...
2013-09-09 15:04:51 +02:00
Baozeng Ding
04d71f9f82
Pass in the Expr* instead of the SourceLocation.
2013-09-09 14:45:51 +02:00
Vassil Vassilev
fe753e0bb2
Spell it syntactically correct.
2013-09-09 14:33:56 +02:00
Vassil Vassilev
6cb325d52a
Try silence an warning.
2013-09-09 14:04:50 +02:00
Vassil Vassilev
aa1cd1d208
Fix doxygen warning.
2013-09-09 13:14:55 +02:00
Vassil Vassilev
1a2a7862c5
Propagate the new callback to our InterpreterCallbacks interface.
2013-09-09 13:14:55 +02:00
Vassil Vassilev
a779afdcc1
Don't use local type as template argument.
2013-09-07 12:26:52 +02:00
Vassil Vassilev
0c4a39f10f
Handle better the exceptions.
2013-09-07 10:46:54 +02:00
Vassil Vassilev
89d47f66d1
Improve the look&feel of the exception classes.
2013-09-07 10:46:54 +02:00
Baozeng Ding
905c97724b
Remove the unused code.
2013-09-07 10:41:01 +02:00
Jerome Beclin
afcd8a7cca
Commit of storeState/compareState that now print lookup table and included files
...
Implementation of .files moved in the Interpreter.cpp
storeState now calls three functions: dumpAST(), dumpLookup(), printIncludedFiles().
compareState now calls three functions: compareAST(), compareLookup(), compareIncludedFiles().
It's working for the included files and the AST, and it needs a new patch for
being able to dump the lookup tables (we cannot use dumpLookups() for the moment).
2013-09-07 10:41:01 +02:00
Jerome Beclin
624354cfb4
Commit Interpreter.cpp with dumpLookupTable() function not working yet.
...
This will be fully operational after the LLVM/Clang update.
2013-09-07 10:41:00 +02:00
Vassil Vassilev
34d2c33c18
Handle the default interpreter's runtime exception.
2013-09-06 23:47:55 +02:00
Vassil Vassilev
7c6324d79b
Add base class for the interpreter's runtime exceptions.
2013-09-06 23:47:55 +02:00
Vassil Vassilev
683a11e9e9
Use default cling style for naming classes.
2013-09-06 23:47:55 +02:00
Vassil Vassilev
eff9830b09
Add missing header method declarations.
2013-09-06 23:47:54 +02:00
Baozeng Ding
fc01cf6743
Add forgotten to commit file.
2013-09-06 23:47:54 +02:00
Baozeng Ding
2224bba3a7
Synthesize throwing of exception to handle the null deref.
2013-09-06 23:47:54 +02:00
Philippe Canal
aa29aa9eb9
Remove dead code (coverity 52208)
2013-09-06 06:25:54 +02:00
Vassil Vassilev
8618646281
Copy the RuntimeExceptions.h over. Should fix the build.
2013-09-05 21:04:53 +02:00
Vassil Vassilev
342918a4b9
Adapt to _Bool -> bool Use reg expr, because when building cling standalone we should still get _Bool.
2013-09-05 19:08:56 +02:00
Baozeng Ding
927ecd4c53
If we know at compile time that something is wrong - throw without checks.
2013-09-05 19:08:56 +02:00
Vassil Vassilev
f282a9a7b9
Add proper handling of the runtime exception.
2013-09-05 19:08:56 +02:00
Vassil Vassilev
7e7951185b
Add special exception type for the null deref exceptions.
2013-09-05 19:08:55 +02:00
Baozeng Ding
6b560aadba
Implement the null deref checker on AST level.
...
We need to throw an exception if null deref is done. If we continued to do that
generating IR it would be too difficult to get the exception semantics and
cleanups right. Thus we decided to do it on AST level and delegate to codegen
generate the concrete IR that we need.
2013-09-05 19:08:55 +02:00
Philippe Canal
44891a9b46
Update doxygen doc
2013-09-05 13:52:52 +02:00
Philippe Canal
7f50f375ab
In ParseProto register the addresses after the array is completely resized
2013-09-04 23:01:54 +02:00
Philippe Canal
26a63ae38f
Add missing transaction (fix .class)
2013-09-04 18:32:55 +02:00