Commit Graph

96 Commits

Author SHA1 Message Date
Bob Pan
092b7b48ba merge code 2.x
--HG--
branch : 2.x
2014-07-21 22:11:55 +08:00
Bob Pan
6ad1e44d59 fix issue in ExceptionHandlerCurrectTransformer, add ExceptionRef if possible
--HG--
branch : 0.0.9.x
2013-07-05 18:56:59 +08:00
Panxiaobo
d3312344fb clean exec mode from file
--HG--
branch : 0.0.9.x
2013-06-05 19:10:04 +08:00
bob@bob-pc
ae5cd2f422 start work 0.0.9.14
--HG--
branch : 0.0.9.x
2013-02-03 23:11:34 +08:00
Bob Pan
5e261a4515 Fixes issue 154
--HG--
branch : 0.0.9.x
2012-12-31 18:26:46 +08:00
Panxiaobo
dda6b0bb50 Update issue 152
Status: Fixed
use iterator instead of recursion in BaseLiveAnalyze

--HG--
branch : 0.0.9.x
2012-12-13 13:22:10 +08:00
Panxiaobo
4f349ac68c not clean LabelStmt used by LocalVar
--HG--
branch : 0.0.9.x
2012-12-04 01:12:01 +08:00
Panxiaobo
26e0b94e6b start work 0.0.9.13
--HG--
branch : 0.0.9.x
2012-12-04 01:08:55 +08:00
Panxiaobo
bfea5940f2 1. not generate code for a1=a1;
2. replace GOTO stmt if its target is a return stmt
3. clean unused StmtLabel before LocalSplit
4. trim exception handler

--HG--
branch : 0.0.9.x
2012-12-04 00:38:28 +08:00
Panxiaobo
540126b4a2 use array to pass try-catch
--HG--
branch : 0.0.9.x
2012-12-03 22:17:10 +08:00
Panxiaobo
997cb1c1b7 Fix NPE in generat Asm Method
--HG--
branch : 0.0.9.x
2012-11-22 12:50:21 +08:00
Panxiaobo
7505ba9ad6 add junit tes case for ZERO test
--HG--
branch : 0.0.9.x
2012-11-08 11:15:14 +08:00
Panxiaobo
72b5089d54 merge LiveAnalyze to use BaseLiveAnalyze
--HG--
branch : 0.0.9.x
2012-11-07 23:50:04 +08:00
Panxiaobo
12873f296f reimplement ZeroAnalyze
--HG--
branch : 0.0.9.x
2012-11-07 23:49:44 +08:00
Panxiaobo
4a1ea6f793 improve ZeroTransformer to insert x=0 if a ZERO local is merged to a non-ZERO local
--HG--
branch : 0.0.9.x
2012-11-07 21:57:36 +08:00
Panxiaobo
a5acd1d5c8 clean _ls_forward_frame while init CFG
--HG--
branch : 0.0.9.x
2012-11-07 21:55:44 +08:00
Panxiaobo
8ee77c5f91 fix a spell mistack
--HG--
branch : 0.0.9.x
2012-11-07 20:06:08 +08:00
Panxiaobo
5b1543a240 start work 0.0.9.12
--HG--
branch : 0.0.9.x
2012-10-25 15:50:59 +08:00
Panxiaobo
3bc15fdae4 Fix NPE by r483
--HG--
branch : 0.0.9.x
2012-10-23 19:34:16 +08:00
Panxiaobo
b755ba117e Fix a bug in toplogicalsort
--HG--
branch : 0.0.9.x
2012-10-23 18:44:58 +08:00
Panxiaobo
754bf61820 fix Comparator in typeAnalyze
--HG--
branch : 0.0.9.x
2012-10-21 18:10:19 +08:00
Panxiaobo
e62d59f525 clean up code
--HG--
branch : 0.0.9.x
2012-10-21 17:26:43 +08:00
Panxiaobo
ec4c0ddaf4 add support to auto cast value from int to byte,short,char
--HG--
branch : 0.0.9.x
2012-10-21 17:21:15 +08:00
Panxiaobo
c887dda820 start work 0.0.9.11
--HG--
branch : 0.0.9.x
2012-10-21 13:42:07 +08:00
Panxiaobo
208c431a31 add support to do strict type analyze
--HG--
branch : 0.0.9.x
2012-10-20 21:28:43 +08:00
Panxiaobo
f00474ffd9 Fix a bug in ZeroTransformer
--HG--
branch : 0.0.9.x
2012-10-18 22:39:31 +08:00
Panxiaobo
02edfff1d5 Add support to null array initial to NPE
Fix issue 122

--HG--
branch : 0.0.9.x
2012-10-18 22:32:31 +08:00
Panxiaobo
0a2b662d8a 1. Not generate tryCatchBlock in IrMethod2AsmMethod
2. Add the ability to remove Trap if all Stmts are not throw
3. Check for empty TryCatchBlock in TestUtils

Thanks Henddher Pedroza for his test case and support.

--HG--
branch : 0.0.9.x
2012-10-13 21:47:35 +08:00
Panxiaobo
c99a302783 remove _ts_tos from Stmt as it is not needed.
--HG--
branch : 0.0.9.x
2012-09-20 15:44:08 +08:00
Panxiaobo
3449d7e41a re-implement the topologicalSort, use a customized stack to replace the recursive function.
add test case to test a large instruction method

Update issue 99
re-implement the topologicalSort, use a customized stack to replace the recursive function.
hope this can fix the issue

--HG--
branch : 0.0.9.x
2012-09-20 15:36:06 +08:00
yyjdelete
c315aaa0a3 1. Enable type merge for a special case, and add a test case.
2. v[int]: Merge type of v with type of Object.

--HG--
branch : 0.0.9.x
2012-09-11 22:12:39 +08:00
Panxiaobo
41b32da696 fix ArrayIndexOutOfBoundsException when zero-ops in FilledArrayExpr
--HG--
branch : 0.0.9.x
2012-08-15 14:55:33 +08:00
yyjdelete
26c9e0b6cc Fix Issue 124
Temporarily disable type merge when both not null

--HG--
branch : 0.0.9.x
2012-08-02 00:45:52 +08:00
yyjdelete
2941c97801 fix Issue 128
--HG--
branch : 0.0.9.x
2012-07-27 12:08:28 +08:00
Panxiaobo
f8d4ac31a8 make RETURN stmt throw because the contained expr may throw.
Fixes issue 121

--HG--
branch : 0.0.9.x
2012-06-12 21:28:15 +08:00
Panxiaobo
4cda0b365d type array reference as Object in local type.
Fixes issue 120

--HG--
branch : 0.0.9.x
2012-06-11 11:03:44 +08:00
Panxiaobo
bf58ed1e16 add switch -p to print ir to console
--HG--
branch : 0.0.9.x
2012-03-02 15:27:13 +08:00
Panxiaobo
fe7cf210d8 merge LOCALVARIABLE to IrMethod.vars
--HG--
branch : debug-support
2012-02-24 16:18:46 +08:00
Panxiaobo
a894b0d78b update NOTICE.txt to add contributors, Thanks for their great help.
--HG--
branch : debug-support
2012-02-24 13:55:34 +08:00
Panxiaobo
5c36f289c7 1. merge LineNumStmt to LabelStmt,
2. enable V3Test to process debug info

--HG--
branch : debug-support
2012-02-24 13:46:39 +08:00
yyjdelete
5ab114da09 support trans dubug info
--HG--
branch : debug-support
2012-02-18 16:26:31 +08:00
Panxiaobo
c53b8ba4b5 update project description
--HG--
branch : 0.0.9.x
2012-01-17 11:20:01 +08:00
Panxiaobo
b795b63545 clean the code
--HG--
branch : 0.0.9.x
2012-01-13 15:58:47 +08:00
Panxiaobo
1e6db92f13 move endremover/exceptionHanderCurrect to dex-ir
--HG--
branch : 0.0.9.x
2012-01-09 19:30:12 +08:00
Panxiaobo
c6e68489bf --HG--
branch : 0.0.9.x
2012-01-08 01:10:24 +08:00
Panxiaobo
b626ee0527 update NOTICE.txt
--HG--
branch : 0.0.9.x
2012-01-07 22:38:16 +08:00
Panxiaobo
89a3ea38bf fix a bug in generate asm code
--HG--
branch : 0.0.9.x
2012-01-03 14:28:01 +08:00
Panxiaobo
41f54dccb7 check dead code in zero transform
--HG--
branch : 0.0.9.x
2012-01-02 14:14:24 +08:00
Panxiaobo
30377462ad check dead code in zero transform
--HG--
branch : 0.0.9.x
2012-01-01 18:28:25 +08:00
Panxiaobo
ff6b2ec23a add ZERO transformer
Fixes issue 96

--HG--
branch : 0.0.9.x
2012-01-01 17:35:54 +08:00