JesusFreke@JesusFreke.com
67a4c3cbb2
Redid how instructions are handled
...
git-svn-id: https://smali.googlecode.com/svn/trunk@137 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-11 06:11:11 +00:00
JesusFreke@JesusFreke.com
0e91ee0cc2
Added various accessors
...
git-svn-id: https://smali.googlecode.com/svn/trunk@136 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-10 05:53:13 +00:00
JesusFreke@JesusFreke.com
2dd12d91e9
Added a TODO
...
git-svn-id: https://smali.googlecode.com/svn/trunk@135 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-10 05:51:49 +00:00
JesusFreke@JesusFreke.com
a72588321d
Changed util/AccessFlags to be an enum, and added a utility method to return a list of AccessFlags enum values for a given composite access flag int.
...
git-svn-id: https://smali.googlecode.com/svn/trunk@134 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-09 02:13:12 +00:00
JesusFreke@JesusFreke.com
34abe5bddf
remove duplicate method
...
git-svn-id: https://smali.googlecode.com/svn/trunk@133 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 06:36:25 +00:00
JesusFreke@JesusFreke.com
b09ba849b9
package rename from org.JesusFreke to org.jf
...
git-svn-id: https://smali.googlecode.com/svn/trunk@131 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 02:09:01 +00:00
JesusFreke@JesusFreke.com
34a4a30e34
misc TODO review/cleanup
...
git-svn-id: https://smali.googlecode.com/svn/trunk@130 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 01:24:40 +00:00
JesusFreke@JesusFreke.com
0fa57d3fe1
Removed TODO
...
git-svn-id: https://smali.googlecode.com/svn/trunk@129 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 01:16:50 +00:00
JesusFreke@JesusFreke.com
507c820ded
Added format51l
...
git-svn-id: https://smali.googlecode.com/svn/trunk@128 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 01:11:20 +00:00
JesusFreke@JesusFreke.com
638c1bbda1
added TODO for later
...
git-svn-id: https://smali.googlecode.com/svn/trunk@127 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 00:58:32 +00:00
JesusFreke@JesusFreke.com
ba3a836d6f
added tests for format 51l
...
git-svn-id: https://smali.googlecode.com/svn/trunk@126 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 00:53:56 +00:00
JesusFreke@JesusFreke.com
5ddd24fb34
added tests for format 31c (jumbo-string). Since having that many strings in a dex file necessitates changing most/all const-string opcodes to const-string/jumbo, I put this test in a separate folder. It shouldn't be included in the main dex file for all the other classes
...
git-svn-id: https://smali.googlecode.com/svn/trunk@125 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 00:49:13 +00:00
JesusFreke@JesusFreke.com
d5dd08259c
added tests for format 31t
...
git-svn-id: https://smali.googlecode.com/svn/trunk@124 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 00:19:33 +00:00
JesusFreke@JesusFreke.com
79e963c089
added tests for format 31i
...
git-svn-id: https://smali.googlecode.com/svn/trunk@123 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-08 00:02:40 +00:00
JesusFreke@JesusFreke.com
bc0e62e21e
added tests for format 32x
...
git-svn-id: https://smali.googlecode.com/svn/trunk@122 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 21:10:05 +00:00
JesusFreke@JesusFreke.com
b68b5792a9
added tests for format 22c
...
git-svn-id: https://smali.googlecode.com/svn/trunk@121 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 19:27:05 +00:00
JesusFreke@JesusFreke.com
8905a53868
updated the tests for format 22s to use larger literals, that don't fit in 8 bits
...
git-svn-id: https://smali.googlecode.com/svn/trunk@120 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 19:05:44 +00:00
JesusFreke@JesusFreke.com
e2678725b9
Added tests for format 22s
...
git-svn-id: https://smali.googlecode.com/svn/trunk@119 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 19:00:56 +00:00
JesusFreke@JesusFreke.com
220f601710
Fixed the string for the rsub-int opcode enum (it was incorrectly rsub-int/lit16)
...
git-svn-id: https://smali.googlecode.com/svn/trunk@118 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 19:00:37 +00:00
JesusFreke@JesusFreke.com
08b3684a3e
Added tests for format 22t
...
git-svn-id: https://smali.googlecode.com/svn/trunk@117 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 18:55:15 +00:00
JesusFreke@JesusFreke.com
438abbb4a4
Added tests for format 22b
...
git-svn-id: https://smali.googlecode.com/svn/trunk@116 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 18:45:51 +00:00
JesusFreke@JesusFreke.com
d088befaf6
Added tests for format 23x
...
git-svn-id: https://smali.googlecode.com/svn/trunk@115 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 18:34:32 +00:00
JesusFreke@JesusFreke.com
36c09cced8
- Added support for the filled-new-array/range opcode
...
- Added tests for Format3rc (including filled-new-array/range)
- Improved error reporting in the tree walker, to catch exceptions originating in dexlib (or elsewhere), and show the source/line/pos info
git-svn-id: https://smali.googlecode.com/svn/trunk@114 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 07:20:41 +00:00
JesusFreke@JesusFreke.com
fb48b03e50
Fixed a typo in the enum value for the filled-new-array/range opcode
...
git-svn-id: https://smali.googlecode.com/svn/trunk@113 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 07:18:21 +00:00
JesusFreke@JesusFreke.com
769b5ae5bf
- Added support for the filled-new-array opcode
...
- Added tests for Format35c (including filled-new-array)
git-svn-id: https://smali.googlecode.com/svn/trunk@112 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 06:09:46 +00:00
JesusFreke@JesusFreke.com
be0579b153
Added tests for format 21c
...
git-svn-id: https://smali.googlecode.com/svn/trunk@111 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-07 00:15:00 +00:00
JesusFreke@JesusFreke.com
e80e6a7eb7
Added tests for format 21h
...
git-svn-id: https://smali.googlecode.com/svn/trunk@110 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 22:37:31 +00:00
JesusFreke@JesusFreke.com
8eb97cdedc
Added tests for format 21s
...
git-svn-id: https://smali.googlecode.com/svn/trunk@109 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 22:31:26 +00:00
JesusFreke@JesusFreke.com
a387f058b1
Added tests for format 21t
...
git-svn-id: https://smali.googlecode.com/svn/trunk@108 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 22:28:37 +00:00
JesusFreke@JesusFreke.com
f532d97b54
Added tests for format 22x
...
git-svn-id: https://smali.googlecode.com/svn/trunk@107 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 21:44:29 +00:00
JesusFreke@JesusFreke.com
c90c00e136
Updated the goto* tests to test both backward and forward gotos
...
git-svn-id: https://smali.googlecode.com/svn/trunk@106 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 21:29:41 +00:00
JesusFreke@JesusFreke.com
27b56f85a9
Updated the emit methods to not set the text (causes issues with the rules that rewrite their tokens, like char/string
...
git-svn-id: https://smali.googlecode.com/svn/trunk@105 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 21:28:06 +00:00
JesusFreke@JesusFreke.com
1e457d8a9e
Fixed issue where the text for character literals with an escape sequence had 2 ending ' characters
...
git-svn-id: https://smali.googlecode.com/svn/trunk@104 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 21:03:40 +00:00
JesusFreke@JesusFreke.com
88ae58c222
Fixed typo in file name
...
git-svn-id: https://smali.googlecode.com/svn/trunk@103 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 21:01:20 +00:00
JesusFreke@JesusFreke.com
74f73e382d
Improved error handling
...
git-svn-id: https://smali.googlecode.com/svn/trunk@102 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 20:45:23 +00:00
JesusFreke@JesusFreke.com
c52343de98
Set the token stream on the tree stream object, so we can use the getSourceName() method to get the current source file
...
git-svn-id: https://smali.googlecode.com/svn/trunk@101 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 19:22:39 +00:00
JesusFreke@JesusFreke.com
e186646752
Updated the token emmission mechanism to include token line/column info
...
git-svn-id: https://smali.googlecode.com/svn/trunk@100 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-06 18:53:40 +00:00
JesusFreke@JesusFreke.com
9cbaa76e44
Added tests for format 30t
...
git-svn-id: https://smali.googlecode.com/svn/trunk@99 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 06:12:34 +00:00
JesusFreke@JesusFreke.com
5d738c6107
Added tests for format 20t
...
git-svn-id: https://smali.googlecode.com/svn/trunk@98 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 06:09:42 +00:00
JesusFreke@JesusFreke.com
b617a5f84b
Added tests for format 10t
...
git-svn-id: https://smali.googlecode.com/svn/trunk@97 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 06:05:26 +00:00
JesusFreke@JesusFreke.com
88ad74f2c2
Added tests for format 11x
...
git-svn-id: https://smali.googlecode.com/svn/trunk@96 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 05:58:16 +00:00
JesusFreke@JesusFreke.com
6af8f5f476
Added tests for format 11n
...
git-svn-id: https://smali.googlecode.com/svn/trunk@95 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 05:26:32 +00:00
JesusFreke@JesusFreke.com
b4949abb7b
Fixed the .source name for Format12x.smali
...
git-svn-id: https://smali.googlecode.com/svn/trunk@94 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 05:22:56 +00:00
JesusFreke@JesusFreke.com
0bc05441fb
- Added tests for all opcodes using format 10x and 12x
...
git-svn-id: https://smali.googlecode.com/svn/trunk@93 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 05:18:24 +00:00
JesusFreke@JesusFreke.com
2b4a7ca201
- Added an "Assert" helper class to the junit tests, to allow easier testing of various types
...
- Changed the relevent tests to use the new Assert helper
git-svn-id: https://smali.googlecode.com/svn/trunk@92 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 05:17:23 +00:00
JesusFreke@JesusFreke.com
b03e029611
added an example showing the creation and usage of an interface
...
git-svn-id: https://smali.googlecode.com/svn/trunk@91 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 05:15:24 +00:00
JesusFreke@JesusFreke.com
0900e0040e
- Added support for specifying a char literal for various types of instruction
...
- Fixed a bug preventing the usage of negative float/double literals
- Fixed escape sequences in character literals
- Added source file name to parser error messages
- Fixed an issue where the parser would exit without an error message, when it encountered a bad "top level" token (in the smali_file rule)
- Fixed an issue that prevented the usage of non long/double literals with the the const-wide instruction
- Fixed an issue with the invoke-static/range, where it wouldn't calculate the number of parameter registers correctly, and would erroneously generate an error message
git-svn-id: https://smali.googlecode.com/svn/trunk@90 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-05 05:14:26 +00:00
JesusFreke@JesusFreke.com
5dc3a8d75a
- Added a new "p0" style register reference, where p0 indicates the first parameter register, p1 the 2nd parameter register and so forth. This makes it less annoying when you are writing a method and have to add more registers, which would push the parameter registers back.
...
- Updated the the tests and examples with the new register format, where appropriate
git-svn-id: https://smali.googlecode.com/svn/trunk@89 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-04 06:44:10 +00:00
JesusFreke@JesusFreke.com
468e5d0d1b
moved examples
...
git-svn-id: https://smali.googlecode.com/svn/trunk@88 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-04 06:27:26 +00:00
JesusFreke@JesusFreke.com
b079ef4c2e
moved examples
...
git-svn-id: https://smali.googlecode.com/svn/trunk@87 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
2009-06-04 06:26:22 +00:00