Roman Shevchenko
03a6b01b83
[java decompiler] getting rid of deprecated API usage
...
GitOrigin-RevId: 4b575f5001e391224bd77fc71483ac0ab0c42787
3 years ago
Tagir Valeev
e16fb8ef1d
Avoid assignment used as condition
...
GitOrigin-RevId: 6eb52135a5bfdf772bb10d3120648500a95325a4
3 years ago
Tagir Valeev
56d2f5f887
Unused assignments removed, misc other fixes
...
GitOrigin-RevId: 9a18d056d33847d77a8ca2177567a6c5d5ec9d8b
3 years ago
Roman Shevchenko
f40b96ebcf
[java decompiler] minor refactoring + cleanup (duplicates; dependencies; test data layout; typos; formatting)
...
GitOrigin-RevId: 3589e4d8f2dfa8a5096fcf49070bc65ba6734482
3 years ago
Tagir Valeev
143e2396ae
Avoid set.removeAll(list)
...
GitOrigin-RevId: 6ed9b1ee1df87618c9b8c534e328ea89ead9fdc3
4 years ago
Vladimir Krivosheev
50691f39fb
cleanup (final)
...
GitOrigin-RevId: 69b73056f0c524ad7b6e7c5c2b3a4b58f64feed9
4 years ago
Graham
f11ed78169
Replace openrs2.dev with openrs2.org
4 years ago
Graham
d12a2dab06
Split custom merge logic into a separate shouldMerge function
4 years ago
covers1624
9e525f7aeb
Revert change to FieldExprent#getExprentUse
...
Revert part of a change introduced upstream. 81faff674c (diff-e057d0d70e5b15f5e12ec86ac46c85eeR57)
This upstream change causes local variables to not be inlined in many cases, and makes decomp very messy for the reason of 'thread safety'.
4 years ago
Graham
1f2ee3c81f
Inline assignments made before a return
...
Extracted from https://github.com/MinecraftForge/ForgeFlower/blob/master/FernFlower-Patches/0030-Improve-stack-var-processor-output.patch
4 years ago
Graham
74c7174bbf
Re-enable simpleMerge with additional scoping restrictions
...
I've changed it to only merge variables within the same basic block,
which improves the output significantly.
4 years ago
LexManos
fda8f42dd0
Fix local variables incorrectly merging.
4 years ago
malte0811
ab4a7ddd16
Fix incorrect decompilation of inverted floating point comparisons with NaN (IDEA-196302)
...
PR #845
GitOrigin-RevId: 611f4af224e68ff8167f2b62f8366a022adb2054
4 years ago
Graham
34110df5f4
Improve heuristic for converting while loops to for loops
...
We now only convert while loops to for loops if the same variable is
used in the initialisation statement, condition and increment statement.
4 years ago
Graham
49c640733c
Remove issingle condition in matchFor
...
It produces rather ugly output where a while loop is more appropriate.
4 years ago
Graham
7a34b8e85a
Add variable declaration support to iterateExprents
4 years ago
Graham
9addbd6349
Use names from OriginalPcTable earlier during the decompilation process
4 years ago
Graham
2bf9bb4e9b
Use mapped local variable names from the OriginalPcTable
4 years ago
Vladimir Krivosheev
1d63f7d447
cleanup (final)
...
GitOrigin-RevId: 93607e195763f2acf29ee0d7a280d7e07e8d2f14
4 years ago
Anna Kozlova
5f94a0d0d5
apply remove redundant cast
...
GitOrigin-RevId: 2bcbd253668f66ca2740074953cb661ebb6f3513
4 years ago
Tagir Valeev
8382c008b2
Fixed unnecessarily escaped character
...
GitOrigin-RevId: 9532833be54e94cfe74dee90f4ca815790d7f5be
4 years ago
Tagir Valeev
488da329f4
Fix warnings (redundant boolean operation and others)
...
GitOrigin-RevId: 115ba7dfd69a2b37963430aac7e979271c0331db
4 years ago
Graham
1526cea2a5
Annotate variables in catch statements with @Pc
4 years ago
Graham
d2718bd7b0
Improve code for setting the bytecodeOffset in VarDefinitionHelper
4 years ago
Graham
eb536c94d7
Add bytecodeOffset to stack variables where it is unique
4 years ago
Graham
35228e6d63
Populate bytecodeOffset of definitions created in VarDefinitionHelper
4 years ago
Graham
b4c1bab1b6
Add separate bytecodeOffset variable to VarExprent
...
I think it's best not to conflate this with visibleOffset, as
visibleOffset is not always set to bytecode_offset and it is also used
for other things (e.g. looking up debug variable names).
4 years ago
Justin
0d2a413b2a
Fix finally processor instruction comparison
4 years ago
Graham
a7f0e61c74
Revert "Relax operand equality condition in try/finally detection"
...
This reverts commit 7e2421df89
.
4 years ago
Graham
a6b6f0a54b
Set visibleOffset of IINC VarExprents
4 years ago
Graham
c7079537a3
Add @Pc annotations to local variable declarations
...
This isn't perfect. It doesn't handle stack variables yet. I think there
are also some places where Fernflower fiddles around with VarExprents
where we'll need to copy the bytecode offset.
4 years ago
Graham
19cae4fa08
Pass StructMethod to processBlock()
...
This will allow us to get at the OriginalPcTable.
4 years ago
Graham
391e495e5e
Sort imports in ExprProcessor
4 years ago
Vladimir Ilmov
e35da00aec
KT-25937 Decompilation to Java makes UI lag roughly every 2 seconds, and is not cancellable
...
GitOrigin-RevId: 58ce5d601bcebb5826cb938f6ea365fa245e7be1
4 years ago
Graham
317e26e299
Add char literal type inference to add/sub operators
4 years ago
Graham
404134cb5e
Remove VARTYPE_CHAR from guessType
...
This significantly reduces the number of integers that are incorrectly
converted to char literals.
4 years ago
Vladimir Krivosheev
246de918cc
remove author (only some, where it is ok)
...
GitOrigin-RevId: 7dbab7524fe4efc5d17a04b95dee88b6f80fbe8d
4 years ago
Graham
7e2421df89
Relax operand equality condition in try/finally detection
...
This isn't ideal and probably isn't safe in the general case, but it
does fix the only case where we couldn't deinline a finally block. (In
turn, this caused further problems because the SSA code is not aware of
the monitor variables inserted by Fernflower if it can't deinline a
finally block.)
5 years ago
Graham
4aa496dff8
Disable variable merging
...
This tightens the scope of variables, which is nicer for readability -
particularly as Fernflower likes sticking variable declarations in the
middle of long if/else chains.
5 years ago
Tagir Valeev
14255d2f89
Extract common parts from 'if'
...
GitOrigin-RevId: 60ebdfdb9588caf907ef111e3ed08e799c0a7d17
5 years ago
Sergey Ignatov
877b0bb707
there's no need to use <? extends String>, because String is final
...
sometimes it's necessary, e.g. when we're substituting any generic with the real type
GitOrigin-RevId: a8c453813b04213f7e24dd80bc7ccec4eb78efcb
5 years ago
Rustam Vishnyakov
e2d2701ca9
EditorConfig documentation test
...
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
5 years ago
Egor Zhdan
88db2ab37a
Cleanup: NotNull/Nullable
...
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
5 years ago
Anna Kozlova
a431a3c93e
constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
...
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
5 years ago
Egor Zhdan
20d0e0f1e5
Cleanup: NotNull/Nullable
...
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
5 years ago
Aleksey Rostovskiy
89e9a42b63
get rid of intellij.build.toolbox.litegen parameter and use BuildOptions.TOOLBOX_LITE_GEN_STEP to skip it instead
...
GitOrigin-RevId: 9aac8ee4ed1ebf2a29de18a238825fafb1ab88f9
5 years ago
Alexandr Suhinin
d05fff192f
[duplicates] enable duplicates analysis in PyCharm/WebStorm/PhpStorm/RubyMine
...
GitOrigin-RevId: 1545b79fdca4888f4b94f47f22703fd37694fa7a
5 years ago
Anton Makeev
24a695344e
Merge remote-tracking branch 'origin/master' into amakeev/gradle
...
GitOrigin-RevId: f9a633252daf311ecab19002c0f4757052eee9dc
5 years ago
Anton Makeev
c25785846b
Merge branch 'master' into amakeev/gradle
...
# Conflicts:
# community/plugins/gradle/src/org/jetbrains/plugins/gradle/service/settings/IdeaGradleProjectSettingsControlBuilder.java
GitOrigin-RevId: d931e798108685731bf185f7c2e3221680b8e5a2
5 years ago
Anton Makeev
c66c8fc54e
IDEA-210281 Cleanup Gradle settings: separate Runner configurable removed
...
GitOrigin-RevId: adbc39121fe91beb633e125b4cf39bfe0a422e4b
5 years ago